Record Class DensitySampler.Bound
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.densityfunction.DensitySampler.Bound
- Enclosing interface:
DensitySampler
public static record DensitySampler.Bound(DensitySampler sampler, SamplerContext context)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SamplerContextThe field for thecontextrecord component.private final DensitySamplerThe field for thesamplerrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBound(DensitySampler sampler, SamplerContext context) Creates an instance of aBoundrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontext()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sampler()Returns the value of thesamplerrecord component.floatsampleValue(int blockX, int blockY, int blockZ) voidsampleVolume(DensityBuffer outputBuffer, DensityVolume volume) sampleVolume(DensityVolume volume) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
sampler
The field for thesamplerrecord component. -
context
The field for thecontextrecord component.
-
-
Constructor Details
-
Bound
Creates an instance of aBoundrecord class.- Parameters:
sampler- the value for thesamplerrecord componentcontext- the value for thecontextrecord component
-
-
Method Details
-
sampleValue
public float sampleValue(int blockX, int blockY, int blockZ) -
sampleVolume
-
sampleVolume
-
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). -
sampler
Returns the value of thesamplerrecord component.- Returns:
- the value of the
samplerrecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-