Record Class AmbianceConfiguration
java.lang.Object
java.lang.Record
com.blamejared.the_breach.world.level.levelgen.feature.configurations.AmbianceConfiguration
- All Implemented Interfaces:
net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
public record AmbianceConfiguration(List<AmbianceConfiguration.TargetBlockState> targetStates, List<Integer> searchAreas)
extends Record
implements net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<AmbianceConfiguration> Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionAmbianceConfiguration(List<AmbianceConfiguration.TargetBlockState> targetStates, List<Integer> searchAreas) Creates an instance of aAmbianceConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesearchAreasrecord component.target(net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest rule, net.minecraft.world.level.block.state.BlockState state) Returns the value of thetargetStatesrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
getSubFeatures
-
Field Details
-
CODEC
-
-
Constructor Details
-
AmbianceConfiguration
public AmbianceConfiguration(List<AmbianceConfiguration.TargetBlockState> targetStates, List<Integer> searchAreas) Creates an instance of aAmbianceConfigurationrecord class.- Parameters:
targetStates- the value for thetargetStatesrecord componentsearchAreas- the value for thesearchAreasrecord component
-
-
Method Details
-
target
public static AmbianceConfiguration.TargetBlockState target(net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest rule, net.minecraft.world.level.block.state.BlockState state) -
toString
-
hashCode
-
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). -
targetStates
Returns the value of thetargetStatesrecord component.- Returns:
- the value of the
targetStatesrecord component
-
searchAreas
-