Package net.minecraft.world.gen.feature
Record Class BlockColumnFeatureConfig
java.lang.Object
java.lang.Record
net.minecraft.world.gen.feature.BlockColumnFeatureConfig
- Record Components:
layers-direction-allowedPlacement-prioritizeTip-
- All Implemented Interfaces:
FeatureConfig
public record BlockColumnFeatureConfig(List<BlockColumnFeatureConfig.Layer> layers, Direction direction, BlockPredicate allowedPlacement, boolean prioritizeTip)
extends Record
implements FeatureConfig
- Mappings:
Namespace Name official dmgintermediary net/minecraft/class_6655named net/minecraft/world/gen/feature/BlockColumnFeatureConfigofficial bintermediary comp_143named layersofficial cintermediary comp_144named directionofficial dintermediary comp_168named allowedPlacementofficial eintermediary comp_146named prioritizeTip
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockPredicateThe field for theallowedPlacementrecord component.static final com.mojang.serialization.Codec<BlockColumnFeatureConfig>private final DirectionThe field for thedirectionrecord component.private final List<BlockColumnFeatureConfig.Layer>The field for thelayersrecord component.private final booleanThe field for theprioritizeTiprecord component.Fields inherited from interface net.minecraft.world.gen.feature.FeatureConfig
DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionBlockColumnFeatureConfig(List<BlockColumnFeatureConfig.Layer> list, Direction direction, BlockPredicate blockPredicate, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedPlacementrecord component.static BlockColumnFeatureConfigcreate(IntProvider height, BlockStateProvider state) createLayer(IntProvider height, BlockStateProvider state) 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.layers()Returns the value of thelayersrecord component.booleanReturns the value of theprioritizeTiprecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.gen.feature.FeatureConfig
getDecoratedFeatures
-
Field Details
-
layers
The field for thelayersrecord component. -
direction
The field for thedirectionrecord component. -
allowedPlacement
The field for theallowedPlacementrecord component. -
prioritizeTip
private final boolean prioritizeTipThe field for theprioritizeTiprecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLdmg;a:Lcom/mojang/serialization/Codec;intermediary field_35073Lnet/minecraft/class_6655;field_35073:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/feature/BlockColumnFeatureConfig;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
BlockColumnFeatureConfig
public BlockColumnFeatureConfig(List<BlockColumnFeatureConfig.Layer> list, Direction direction, BlockPredicate blockPredicate, boolean bool)
-
-
Method Details
-
createLayer
public static BlockColumnFeatureConfig.Layer createLayer(IntProvider height, BlockStateProvider state) - Mappings:
Namespace Name Mixin selector official aLdmg;a(Lbdb;Ldoq;)Ldmg$a;intermediary method_38908Lnet/minecraft/class_6655;method_38908(Lnet/minecraft/class_6017;Lnet/minecraft/class_4651;)Lnet/minecraft/class_6655$class_6656;named createLayerLnet/minecraft/world/gen/feature/BlockColumnFeatureConfig;createLayer(Lnet/minecraft/util/math/intprovider/IntProvider;Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;)Lnet/minecraft/world/gen/feature/BlockColumnFeatureConfig$Layer;
-
create
- Mappings:
Namespace Name Mixin selector official bLdmg;b(Lbdb;Ldoq;)Ldmg;intermediary method_38910Lnet/minecraft/class_6655;method_38910(Lnet/minecraft/class_6017;Lnet/minecraft/class_4651;)Lnet/minecraft/class_6655;named createLnet/minecraft/world/gen/feature/BlockColumnFeatureConfig;create(Lnet/minecraft/util/math/intprovider/IntProvider;Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;)Lnet/minecraft/world/gen/feature/BlockColumnFeatureConfig;
-
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 thelayersrecord component.- Returns:
- the value of the
layersrecord component
-
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
allowedPlacement
Returns the value of theallowedPlacementrecord component.- Returns:
- the value of the
allowedPlacementrecord component
-
prioritizeTip
public boolean prioritizeTip()Returns the value of theprioritizeTiprecord component.- Returns:
- the value of the
prioritizeTiprecord component
-