Record Class GeodeBlockSettings
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.GeodeBlockSettings
public record GeodeBlockSettings(BlockStateProvider fillingProvider, BlockStateProvider innerLayerProvider, BlockStateProvider alternateInnerLayerProvider, BlockStateProvider middleLayerProvider, BlockStateProvider outerLayerProvider, List<BlockState> innerPlacements, HolderSet<Block> cannotReplace, HolderSet<Block> invalidBlocks)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockStateProviderThe field for thealternateInnerLayerProviderrecord component.The field for thecannotReplacerecord component.static final com.mojang.serialization.Codec<GeodeBlockSettings> private final BlockStateProviderThe field for thefillingProviderrecord component.private final BlockStateProviderThe field for theinnerLayerProviderrecord component.private final List<BlockState> The field for theinnerPlacementsrecord component.The field for theinvalidBlocksrecord component.private final BlockStateProviderThe field for themiddleLayerProviderrecord component.private final BlockStateProviderThe field for theouterLayerProviderrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGeodeBlockSettings(BlockStateProvider fillingProvider, BlockStateProvider innerLayerProvider, BlockStateProvider alternateInnerLayerProvider, BlockStateProvider middleLayerProvider, BlockStateProvider outerLayerProvider, List<BlockState> innerPlacements, HolderSet<Block> cannotReplace, HolderSet<Block> invalidBlocks) Creates an instance of aGeodeBlockSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealternateInnerLayerProviderrecord component.Returns the value of thecannotReplacerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefillingProviderrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinnerLayerProviderrecord component.Returns the value of theinnerPlacementsrecord component.Returns the value of theinvalidBlocksrecord component.Returns the value of themiddleLayerProviderrecord component.Returns the value of theouterLayerProviderrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
fillingProvider
The field for thefillingProviderrecord component. -
innerLayerProvider
The field for theinnerLayerProviderrecord component. -
alternateInnerLayerProvider
The field for thealternateInnerLayerProviderrecord component. -
middleLayerProvider
The field for themiddleLayerProviderrecord component. -
outerLayerProvider
The field for theouterLayerProviderrecord component. -
innerPlacements
The field for theinnerPlacementsrecord component. -
cannotReplace
-
invalidBlocks
-
CODEC
-
-
Constructor Details
-
GeodeBlockSettings
public GeodeBlockSettings(BlockStateProvider fillingProvider, BlockStateProvider innerLayerProvider, BlockStateProvider alternateInnerLayerProvider, BlockStateProvider middleLayerProvider, BlockStateProvider outerLayerProvider, List<BlockState> innerPlacements, HolderSet<Block> cannotReplace, HolderSet<Block> invalidBlocks) Creates an instance of aGeodeBlockSettingsrecord class.- Parameters:
fillingProvider- the value for thefillingProviderrecord componentinnerLayerProvider- the value for theinnerLayerProviderrecord componentalternateInnerLayerProvider- the value for thealternateInnerLayerProviderrecord componentmiddleLayerProvider- the value for themiddleLayerProviderrecord componentouterLayerProvider- the value for theouterLayerProviderrecord componentinnerPlacements- the value for theinnerPlacementsrecord componentcannotReplace- the value for thecannotReplacerecord componentinvalidBlocks- the value for theinvalidBlocksrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
fillingProvider
Returns the value of thefillingProviderrecord component.- Returns:
- the value of the
fillingProviderrecord component
-
innerLayerProvider
Returns the value of theinnerLayerProviderrecord component.- Returns:
- the value of the
innerLayerProviderrecord component
-
alternateInnerLayerProvider
Returns the value of thealternateInnerLayerProviderrecord component.- Returns:
- the value of the
alternateInnerLayerProviderrecord component
-
middleLayerProvider
Returns the value of themiddleLayerProviderrecord component.- Returns:
- the value of the
middleLayerProviderrecord component
-
outerLayerProvider
Returns the value of theouterLayerProviderrecord component.- Returns:
- the value of the
outerLayerProviderrecord component
-
innerPlacements
Returns the value of theinnerPlacementsrecord component.- Returns:
- the value of the
innerPlacementsrecord component
-
cannotReplace
-
invalidBlocks
-