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 official dhs
intermediary net/minecraft/class_7399
named net/minecraft/world/gen/root/MangroveRootPlacement
official b
intermediary comp_719
named canGrowThrough
official c
intermediary comp_720
named muddyRootsIn
official d
intermediary comp_721
named muddyRootsProvider
official e
intermediary comp_722
named maxRootWidth
official f
intermediary comp_723
named maxRootLength
official g
intermediary comp_724
named randomSkewChance
-
Field Summary
Modifier and TypeFieldDescriptionprivate final RegistryEntryList<Block>
The field for thecanGrowThrough
record component.static final com.mojang.serialization.Codec<MangroveRootPlacement>
private final int
The field for themaxRootLength
record component.private final int
The field for themaxRootWidth
record component.private final RegistryEntryList<Block>
The field for themuddyRootsIn
record component.private final BlockStateProvider
The field for themuddyRootsProvider
record component.private final float
The field for therandomSkewChance
record component. -
Constructor Summary
ConstructorDescriptionMangroveRootPlacement
(RegistryEntryList<Block> registryEntryList, RegistryEntryList<Block> registryEntryList2, BlockStateProvider blockStateProvider, int int2, int int3, float float2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecanGrowThrough
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of themaxRootLength
record component.int
Returns the value of themaxRootWidth
record component.Returns the value of themuddyRootsIn
record component.Returns the value of themuddyRootsProvider
record component.float
Returns the value of therandomSkewChance
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
canGrowThrough
The field for thecanGrowThrough
record component. -
muddyRootsIn
The field for themuddyRootsIn
record component. -
muddyRootsProvider
The field for themuddyRootsProvider
record component. -
maxRootWidth
private final int maxRootWidthThe field for themaxRootWidth
record component. -
maxRootLength
private final int maxRootLengthThe field for themaxRootLength
record component. -
randomSkewChance
private final float randomSkewChanceThe field for therandomSkewChance
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector official a
Ldhs;a:Lcom/mojang/serialization/Codec;
intermediary field_38866
Lnet/minecraft/class_7399;field_38866:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/world/gen/root/MangroveRootPlacement;CODEC: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 thecanGrowThrough
record component.- Returns:
- the value of the
canGrowThrough
record component
-
muddyRootsIn
Returns the value of themuddyRootsIn
record component.- Returns:
- the value of the
muddyRootsIn
record component
-
muddyRootsProvider
Returns the value of themuddyRootsProvider
record component.- Returns:
- the value of the
muddyRootsProvider
record component
-
maxRootWidth
public int maxRootWidth()Returns the value of themaxRootWidth
record component.- Returns:
- the value of the
maxRootWidth
record component
-
maxRootLength
public int maxRootLength()Returns the value of themaxRootLength
record component.- Returns:
- the value of the
maxRootLength
record component
-
randomSkewChance
public float randomSkewChance()Returns the value of therandomSkewChance
record component.- Returns:
- the value of the
randomSkewChance
record component
-