Record Class MangroveRootPlacement
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.rootplacers.MangroveRootPlacement
- 
Field SummaryFieldsModifier and TypeFieldDescriptionThe field for thecanGrowThroughrecord component.static final com.mojang.serialization.Codec<MangroveRootPlacement>private final intThe field for themaxRootLengthrecord component.private final intThe field for themaxRootWidthrecord component.The field for themuddyRootsInrecord component.private final BlockStateProviderThe field for themuddyRootsProviderrecord component.private final floatThe field for therandomSkewChancerecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionMangroveRootPlacement(HolderSet<Block> canGrowThrough, HolderSet<Block> muddyRootsIn, BlockStateProvider muddyRootsProvider, int maxRootWidth, int maxRootLength, float randomSkewChance) Creates an instance of aMangroveRootPlacementrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thecanGrowThroughrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxRootLengthrecord component.intReturns the value of themaxRootWidthrecord component.Returns the value of themuddyRootsInrecord component.Returns the value of themuddyRootsProviderrecord component.floatReturns the value of therandomSkewChancerecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
canGrowThroughThe field for thecanGrowThroughrecord component.
- 
muddyRootsInThe field for themuddyRootsInrecord component.
- 
muddyRootsProviderThe field for themuddyRootsProviderrecord component.
- 
maxRootWidthprivate final int maxRootWidthThe field for themaxRootWidthrecord component.
- 
maxRootLengthprivate final int maxRootLengthThe field for themaxRootLengthrecord component.
- 
randomSkewChanceprivate final float randomSkewChanceThe field for therandomSkewChancerecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
MangroveRootPlacementpublic MangroveRootPlacement(HolderSet<Block> canGrowThrough, HolderSet<Block> muddyRootsIn, BlockStateProvider muddyRootsProvider, int maxRootWidth, int maxRootLength, float randomSkewChance) Creates an instance of aMangroveRootPlacementrecord class.- Parameters:
- canGrowThrough- the value for the- canGrowThroughrecord component
- muddyRootsIn- the value for the- muddyRootsInrecord component
- muddyRootsProvider- the value for the- muddyRootsProviderrecord component
- maxRootWidth- the value for the- maxRootWidthrecord component
- maxRootLength- the value for the- maxRootLengthrecord component
- randomSkewChance- the value for the- randomSkewChancerecord component
 
 
- 
- 
Method Details- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
canGrowThroughReturns the value of thecanGrowThroughrecord component.- Returns:
- the value of the canGrowThroughrecord component
 
- 
muddyRootsInReturns the value of themuddyRootsInrecord component.- Returns:
- the value of the muddyRootsInrecord component
 
- 
muddyRootsProviderReturns the value of themuddyRootsProviderrecord component.- Returns:
- the value of the muddyRootsProviderrecord component
 
- 
maxRootWidthpublic int maxRootWidth()Returns the value of themaxRootWidthrecord component.- Returns:
- the value of the maxRootWidthrecord component
 
- 
maxRootLengthpublic int maxRootLength()Returns the value of themaxRootLengthrecord component.- Returns:
- the value of the maxRootLengthrecord component
 
- 
randomSkewChancepublic float randomSkewChance()Returns the value of therandomSkewChancerecord component.- Returns:
- the value of the randomSkewChancerecord component
 
 
-