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
Modifier and TypeFieldDescriptionprivate final DensityFunction
The field for thecontinentalness
record component.private final DensityFunction
The field for thedepth
record component.private final DensityFunction
The field for theerosion
record component.private final DensityFunction
The field for thehumidity
record component.private final List
<Climate.ParameterPoint> The field for thespawnTarget
record component.private final DensityFunction
The field for thetemperature
record component.private final DensityFunction
The field for theweirdness
record component. -
Constructor Summary
ConstructorDescriptionSampler
(DensityFunction temperature, DensityFunction humidity, DensityFunction continentalness, DensityFunction erosion, DensityFunction depth, DensityFunction weirdness, List<Climate.ParameterPoint> spawnTarget) Creates an instance of aSampler
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontinentalness
record component.depth()
Returns the value of thedepth
record component.final boolean
Indicates whether some other object is "equal to" this one.erosion()
Returns the value of theerosion
record component.final int
hashCode()
Returns a hash code value for this object.humidity()
Returns the value of thehumidity
record component.sample
(int p_186975_, int p_186976_, int p_186977_) Returns the value of thespawnTarget
record component.Returns the value of thetemperature
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theweirdness
record component.
-
Field Details
-
temperature
The field for thetemperature
record component. -
humidity
The field for thehumidity
record component. -
continentalness
The field for thecontinentalness
record component. -
erosion
The field for theerosion
record component. -
depth
The field for thedepth
record component. -
weirdness
The field for theweirdness
record component. -
spawnTarget
The field for thespawnTarget
record 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 aSampler
record class.- Parameters:
temperature
- the value for thetemperature
record componenthumidity
- the value for thehumidity
record componentcontinentalness
- the value for thecontinentalness
record componenterosion
- the value for theerosion
record componentdepth
- the value for thedepth
record componentweirdness
- the value for theweirdness
record componentspawnTarget
- the value for thespawnTarget
record 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 thetemperature
record component.- Returns:
- the value of the
temperature
record component
-
humidity
Returns the value of thehumidity
record component.- Returns:
- the value of the
humidity
record component
-
continentalness
Returns the value of thecontinentalness
record component.- Returns:
- the value of the
continentalness
record component
-
erosion
Returns the value of theerosion
record component.- Returns:
- the value of the
erosion
record component
-
depth
Returns the value of thedepth
record component.- Returns:
- the value of the
depth
record component
-
weirdness
Returns the value of theweirdness
record component.- Returns:
- the value of the
weirdness
record component
-
spawnTarget
Returns the value of thespawnTarget
record component.- Returns:
- the value of the
spawnTarget
record component
-