Record Class EnvironmentScanDecoratorConfig
java.lang.Object
java.lang.Record
net.minecraft.world.gen.decorator.EnvironmentScanDecoratorConfig
- Record Components:
directionOfSearch-targetCondition-maxSteps-
- All Implemented Interfaces:
DecoratorConfig
public record EnvironmentScanDecoratorConfig(Direction directionOfSearch, BlockPredicate targetCondition, int maxSteps)
extends Record
implements DecoratorConfig
- Mappings:
Namespace Name official dczintermediary net/minecraft/class_6659named net/minecraft/world/gen/decorator/EnvironmentScanDecoratorConfigofficial cintermediary comp_157named directionOfSearchofficial dintermediary comp_158named targetConditionofficial eintermediary comp_159named maxSteps
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EnvironmentScanDecoratorConfig>private final DirectionThe field for thedirectionOfSearchrecord component.private final intThe field for themaxStepsrecord component.private final BlockPredicateThe field for thetargetConditionrecord component.Fields inherited from interface net.minecraft.world.gen.decorator.DecoratorConfig
DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionEnvironmentScanDecoratorConfig(Direction direction, BlockPredicate blockPredicate, int int2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectionOfSearchrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmaxSteps()Returns the value of themaxStepsrecord component.Returns the value of thetargetConditionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
directionOfSearch
The field for thedirectionOfSearchrecord component. -
targetCondition
The field for thetargetConditionrecord component. -
maxSteps
private final int maxStepsThe field for themaxStepsrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLdcz;a:Lcom/mojang/serialization/Codec;intermediary field_35077Lnet/minecraft/class_6659;field_35077:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/decorator/EnvironmentScanDecoratorConfig;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
EnvironmentScanDecoratorConfig
-
-
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 '=='. -
directionOfSearch
Returns the value of thedirectionOfSearchrecord component.- Returns:
- the value of the
directionOfSearchrecord component
-
targetCondition
Returns the value of thetargetConditionrecord component.- Returns:
- the value of the
targetConditionrecord component
-
maxSteps
public int maxSteps()Returns the value of themaxStepsrecord component.- Returns:
- the value of the
maxStepsrecord component
-