Package net.minecraft.world.gen.root
Record Class MangroveRootPlacement
java.lang.Object
java.lang.Record
net.minecraft.world.gen.root.MangroveRootPlacement
- Record Components:
canGrowThrough-muddyRootsIn-muddyRootsProvider-maxRootWidth-maxRootLength-randomSkewChance-
public record MangroveRootPlacement(RegistryEntryList<Block> canGrowThrough, RegistryEntryList<Block> muddyRootsIn, BlockStateProvider muddyRootsProvider, int maxRootWidth, int maxRootLength, float randomSkewChance)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/gen/root/MangroveRootPlacementintermediary net/minecraft/class_7399official egenamed canGrowThroughintermediary comp_719official bnamed muddyRootsInintermediary comp_720official cnamed muddyRootsProviderintermediary comp_721official dnamed maxRootWidthintermediary comp_722official enamed maxRootLengthintermediary comp_723official fnamed randomSkewChanceintermediary comp_724official g
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryEntryList<Block> The 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.private final RegistryEntryList<Block> The field for themuddyRootsInrecord component.private final BlockStateProviderThe field for themuddyRootsProviderrecord component.private final floatThe field for therandomSkewChancerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMangroveRootPlacement(RegistryEntryList<Block> registryEntryList, RegistryEntryList<Block> registryEntryList2, BlockStateProvider blockStateProvider, int int2, int int3, float float2) -
Method Summary
Modifier 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
-
canGrowThrough
The field for thecanGrowThroughrecord component. -
muddyRootsIn
The field for themuddyRootsInrecord component. -
muddyRootsProvider
The field for themuddyRootsProviderrecord component. -
maxRootWidth
private final int maxRootWidthThe field for themaxRootWidthrecord component. -
maxRootLength
private final int maxRootLengthThe field for themaxRootLengthrecord component. -
randomSkewChance
private final float randomSkewChanceThe field for therandomSkewChancerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/gen/root/MangroveRootPlacement;CODEC:Lcom/mojang/serialization/Codec;intermediary field_38866Lnet/minecraft/class_7399;field_38866:Lcom/mojang/serialization/Codec;official aLege;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
MangroveRootPlacement
public MangroveRootPlacement(RegistryEntryList<Block> registryEntryList, RegistryEntryList<Block> registryEntryList2, BlockStateProvider blockStateProvider, int int2, int int3, float float2)
-
-
Method Details
-
toString
Returns 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. -
hashCode
public 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. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
canGrowThrough
Returns the value of thecanGrowThroughrecord component.- Returns:
- the value of the
canGrowThroughrecord component
-
muddyRootsIn
Returns the value of themuddyRootsInrecord component.- Returns:
- the value of the
muddyRootsInrecord component
-
muddyRootsProvider
Returns the value of themuddyRootsProviderrecord component.- Returns:
- the value of the
muddyRootsProviderrecord component
-
maxRootWidth
public int maxRootWidth()Returns the value of themaxRootWidthrecord component.- Returns:
- the value of the
maxRootWidthrecord component
-
maxRootLength
public int maxRootLength()Returns the value of themaxRootLengthrecord component.- Returns:
- the value of the
maxRootLengthrecord component
-
randomSkewChance
public float randomSkewChance()Returns the value of therandomSkewChancerecord component.- Returns:
- the value of the
randomSkewChancerecord component
-