Package net.minecraft.world.level.biome
Record Class Climate.Sampler
java.lang.Object
java.lang.Record
net.minecraft.world.level.biome.Climate.Sampler
- Enclosing class:
Climate
public static record Climate.Sampler(DensityFunction temperature, DensityFunction humidity, DensityFunction continentalness, DensityFunction erosion, DensityFunction depth, DensityFunction weirdness, List<Climate.ParameterPoint> spawnTarget)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DensityFunctionThe field for thecontinentalnessrecord component.private final DensityFunctionThe field for thedepthrecord component.private final DensityFunctionThe field for theerosionrecord component.private final DensityFunctionThe field for thehumidityrecord component.private final List<Climate.ParameterPoint> The field for thespawnTargetrecord component.private final DensityFunctionThe field for thetemperaturerecord component.private final DensityFunctionThe field for theweirdnessrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSampler(DensityFunction temperature, DensityFunction humidity, DensityFunction continentalness, DensityFunction erosion, DensityFunction depth, DensityFunction weirdness, List<Climate.ParameterPoint> spawnTarget) Creates an instance of aSamplerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontinentalnessrecord component.depth()Returns the value of thedepthrecord component.final booleanIndicates whether some other object is "equal to" this one.erosion()Returns the value of theerosionrecord component.final inthashCode()Returns a hash code value for this object.humidity()Returns the value of thehumidityrecord component.sample(int p_186975_, int p_186976_, int p_186977_) Returns the value of thespawnTargetrecord component.Returns the value of thetemperaturerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theweirdnessrecord component.
-
Field Details
-
temperature
The field for thetemperaturerecord component. -
humidity
The field for thehumidityrecord component. -
continentalness
The field for thecontinentalnessrecord component. -
erosion
The field for theerosionrecord component. -
depth
The field for thedepthrecord component. -
weirdness
The field for theweirdnessrecord component. -
spawnTarget
The field for thespawnTargetrecord component.
-
-
Constructor Details
-
Sampler
public Sampler(DensityFunction temperature, DensityFunction humidity, DensityFunction continentalness, DensityFunction erosion, DensityFunction depth, DensityFunction weirdness, List<Climate.ParameterPoint> spawnTarget) Creates an instance of aSamplerrecord class.- Parameters:
temperature- the value for thetemperaturerecord componenthumidity- the value for thehumidityrecord componentcontinentalness- the value for thecontinentalnessrecord componenterosion- the value for theerosionrecord componentdepth- the value for thedepthrecord componentweirdness- the value for theweirdnessrecord componentspawnTarget- the value for thespawnTargetrecord component
-
-
Method Details
-
sample
-
findSpawnPosition
-
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). -
temperature
Returns the value of thetemperaturerecord component.- Returns:
- the value of the
temperaturerecord component
-
humidity
Returns the value of thehumidityrecord component.- Returns:
- the value of the
humidityrecord component
-
continentalness
Returns the value of thecontinentalnessrecord component.- Returns:
- the value of the
continentalnessrecord component
-
erosion
Returns the value of theerosionrecord component.- Returns:
- the value of the
erosionrecord component
-
depth
Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-
weirdness
Returns the value of theweirdnessrecord component.- Returns:
- the value of the
weirdnessrecord component
-
spawnTarget
Returns the value of thespawnTargetrecord component.- Returns:
- the value of the
spawnTargetrecord component
-