Record Class BlockFilterDecoratorConfig
java.lang.Object
java.lang.Record
net.minecraft.world.gen.decorator.BlockFilterDecoratorConfig
- Record Components:
allowed-disallowed-offset-
- All Implemented Interfaces:
DecoratorConfig
public record BlockFilterDecoratorConfig(List<Block> allowed, List<Block> disallowed, BlockPos offset)
extends Record
implements DecoratorConfig
- Mappings:
Namespace Name official dbiintermediary net/minecraft/class_6618named net/minecraft/world/gen/decorator/BlockFilterDecoratorConfigofficial cintermediary comp_121named allowedofficial dintermediary comp_122named disallowedofficial eintermediary comp_123named offset
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theallowedrecord component.static final com.mojang.serialization.Codec<BlockFilterDecoratorConfig>The field for thedisallowedrecord component.private final BlockPosThe field for theoffsetrecord component.Fields inherited from interface net.minecraft.world.gen.decorator.DecoratorConfig
DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowed()Returns the value of theallowedrecord component.Returns the value of thedisallowedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.offset()Returns the value of theoffsetrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
allowed
The field for theallowedrecord component. -
disallowed
The field for thedisallowedrecord component. -
offset
The field for theoffsetrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLdbi;a:Lcom/mojang/serialization/Codec;intermediary field_34935Lnet/minecraft/class_6618;field_34935:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/decorator/BlockFilterDecoratorConfig;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
BlockFilterDecoratorConfig
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
allowed
Returns the value of theallowedrecord component.- Returns:
- the value of the
allowedrecord component
-
disallowed
Returns the value of thedisallowedrecord component.- Returns:
- the value of the
disallowedrecord component
-
offset
Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-