Record Class BlockColumnConfiguration
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.configurations.BlockColumnConfiguration
- All Implemented Interfaces:
FeatureConfiguration
public record BlockColumnConfiguration(List<BlockColumnConfiguration.Layer> layers, Direction direction, BlockPredicate allowedPlacement, boolean prioritizeTip)
extends Record
implements FeatureConfiguration
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BlockPredicate
The field for theallowedPlacement
record component.static final com.mojang.serialization.Codec<BlockColumnConfiguration>
private final Direction
The field for thedirection
record component.private final List<BlockColumnConfiguration.Layer>
The field for thelayers
record component.private final boolean
The field for theprioritizeTip
record component.Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE
-
Constructor Summary
ConstructorDescriptionBlockColumnConfiguration
(List<BlockColumnConfiguration.Layer> layers, Direction direction, BlockPredicate allowedPlacement, boolean prioritizeTip) Creates an instance of aBlockColumnConfiguration
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedPlacement
record component.Returns the value of thedirection
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.layer
(IntProvider p_191219_, BlockStateProvider p_191220_) layers()
Returns the value of thelayers
record component.boolean
Returns the value of theprioritizeTip
record component.static BlockColumnConfiguration
simple
(IntProvider p_191225_, BlockStateProvider p_191226_) final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
getFeatures
-
Field Details
-
layers
The field for thelayers
record component. -
direction
The field for thedirection
record component. -
allowedPlacement
The field for theallowedPlacement
record component. -
prioritizeTip
private final boolean prioritizeTipThe field for theprioritizeTip
record component. -
CODEC
-
-
Constructor Details
-
BlockColumnConfiguration
public BlockColumnConfiguration(List<BlockColumnConfiguration.Layer> layers, Direction direction, BlockPredicate allowedPlacement, boolean prioritizeTip) Creates an instance of aBlockColumnConfiguration
record class.- Parameters:
layers
- the value for thelayers
record componentdirection
- the value for thedirection
record componentallowedPlacement
- the value for theallowedPlacement
record componentprioritizeTip
- the value for theprioritizeTip
record component
-
-
Method Details
-
layer
public static BlockColumnConfiguration.Layer layer(IntProvider p_191219_, BlockStateProvider p_191220_) -
simple
-
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 '=='. -
layers
Returns the value of thelayers
record component.- Returns:
- the value of the
layers
record component
-
direction
Returns the value of thedirection
record component.- Returns:
- the value of the
direction
record component
-
allowedPlacement
Returns the value of theallowedPlacement
record component.- Returns:
- the value of the
allowedPlacement
record component
-
prioritizeTip
public boolean prioritizeTip()Returns the value of theprioritizeTip
record component.- Returns:
- the value of the
prioritizeTip
record component
-