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 SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final BlockPredicateThe field for theallowedPlacementrecord component.static final com.mojang.serialization.Codec<BlockColumnConfiguration>private final DirectionThe field for thedirectionrecord component.private final List<BlockColumnConfiguration.Layer>The field for thelayersrecord component.private final booleanThe field for theprioritizeTiprecord component.Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfigurationNONE
- 
Constructor SummaryConstructorsConstructorDescriptionBlockColumnConfiguration(List<BlockColumnConfiguration.Layer> layers, Direction direction, BlockPredicate allowedPlacement, boolean prioritizeTip) Creates an instance of aBlockColumnConfigurationrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of theallowedPlacementrecord component.Returns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.layer(IntProvider p_191219_, BlockStateProvider p_191220_) layers()Returns the value of thelayersrecord component.booleanReturns the value of theprioritizeTiprecord component.static BlockColumnConfigurationsimple(IntProvider p_191225_, BlockStateProvider p_191226_) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfigurationgetFeatures
- 
Field Details- 
layersThe field for thelayersrecord component.
- 
directionThe field for thedirectionrecord component.
- 
allowedPlacementThe field for theallowedPlacementrecord component.
- 
prioritizeTipprivate final boolean prioritizeTipThe field for theprioritizeTiprecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
BlockColumnConfigurationpublic BlockColumnConfiguration(List<BlockColumnConfiguration.Layer> layers, Direction direction, BlockPredicate allowedPlacement, boolean prioritizeTip) Creates an instance of aBlockColumnConfigurationrecord class.- Parameters:
- layers- the value for the- layersrecord component
- direction- the value for the- directionrecord component
- allowedPlacement- the value for the- allowedPlacementrecord component
- prioritizeTip- the value for the- prioritizeTiprecord component
 
 
- 
- 
Method Details- 
layerpublic static BlockColumnConfiguration.Layer layer(IntProvider p_191219_, BlockStateProvider p_191220_) 
- 
simple
- 
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 '=='.
- 
layersReturns the value of thelayersrecord component.- Returns:
- the value of the layersrecord component
 
- 
directionReturns the value of thedirectionrecord component.- Returns:
- the value of the directionrecord component
 
- 
allowedPlacementReturns the value of theallowedPlacementrecord component.- Returns:
- the value of the allowedPlacementrecord component
 
- 
prioritizeTippublic boolean prioritizeTip()Returns the value of theprioritizeTiprecord component.- Returns:
- the value of the prioritizeTiprecord component
 
 
-