Record Class BiomeModifiers.FeatureEntry
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.data.helper.BiomeModifiers.FeatureEntry
- Enclosing class:
BiomeModifiers
public static record BiomeModifiers.FeatureEntry(net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.placement.PlacedFeature> feature, net.minecraft.world.level.levelgen.GenerationStep.Decoration step)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BiomeModifiers.FeatureEntry> -
Constructor Summary
ConstructorsConstructorDescriptionFeatureEntry(net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.placement.PlacedFeature> feature, net.minecraft.world.level.levelgen.GenerationStep.Decoration step) Creates an instance of aFeatureEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.placement.PlacedFeature> feature()Returns the value of thefeaturerecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.world.level.levelgen.GenerationStep.Decorationstep()Returns the value of thesteprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
FeatureEntry
public FeatureEntry(net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.placement.PlacedFeature> feature, net.minecraft.world.level.levelgen.GenerationStep.Decoration step) Creates an instance of aFeatureEntryrecord class.- Parameters:
feature- the value for thefeaturerecord componentstep- the value for thesteprecord component
-
-
Method Details
-
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). -
feature
public net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.placement.PlacedFeature> feature()Returns the value of thefeaturerecord component.- Returns:
- the value of the
featurerecord component
-
step
public net.minecraft.world.level.levelgen.GenerationStep.Decoration step()Returns the value of thesteprecord component.- Returns:
- the value of the
steprecord component
-