Record Class EndIslandFunction.Sampler
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.densityfunction.generator.EndIslandFunction.Sampler
- All Implemented Interfaces:
DensitySampler
- Enclosing class:
EndIslandFunction
private static record EndIslandFunction.Sampler(SimplexNoise islandNoise)
extends Record
implements DensitySampler
-
Nested Class Summary
Nested classes/interfaces inherited from interface DensitySampler
DensitySampler.Bound -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SimplexNoiseThe field for theislandNoiserecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSampler(SimplexNoise islandNoise) Creates an instance of aSamplerrecord 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 theislandNoiserecord component.floatsampleValue(SamplerContext context, int blockX, int blockY, int blockZ) voidsampleVolume(SamplerContext context, DensityBuffer outputBuffer, DensityVolume volume) final StringtoString()Returns a string representation of this record class.Methods inherited from interface DensitySampler
bind
-
Field Details
-
islandNoise
The field for theislandNoiserecord component.
-
-
Constructor Details
-
Sampler
Creates an instance of aSamplerrecord class.- Parameters:
islandNoise- the value for theislandNoiserecord component
-
-
Method Details
-
sampleVolume
- Specified by:
sampleVolumein interfaceDensitySampler
-
sampleValue
- Specified by:
sampleValuein interfaceDensitySampler
-
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). -
islandNoise
Returns the value of theislandNoiserecord component.- Returns:
- the value of the
islandNoiserecord component
-