Record Class SpawnTargetPoint
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.SpawnTargetPoint
public record SpawnTargetPoint(Map<Holder<DensityFunction>, Climate.Parameter> parameters)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SpawnTargetPoint> private final Map<Holder<DensityFunction>, Climate.Parameter> The field for theparametersrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSpawnTargetPoint(Map<Holder<DensityFunction>, Climate.Parameter> parameters) Creates an instance of aSpawnTargetPointrecord 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 theparametersrecord component.longsampleFitness(DensitySamplerSet samplers, int blockX, int blockY, int blockZ) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
parameters
The field for theparametersrecord component. -
CODEC
-
-
Constructor Details
-
SpawnTargetPoint
Creates an instance of aSpawnTargetPointrecord class.- Parameters:
parameters- the value for theparametersrecord component
-
-
Method Details
-
sampleFitness
-
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). -
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-