Record Class DensityFunction.SinglePointContext
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.DensityFunction.SinglePointContext
- All Implemented Interfaces:
- DensityFunction.FunctionContext
- Enclosing interface:
- DensityFunction
public static record DensityFunction.SinglePointContext(int blockX, int blockY, int blockZ)
extends Record
implements DensityFunction.FunctionContext
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionSinglePointContext(int blockX, int blockY, int blockZ) Creates an instance of aSinglePointContextrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionintblockX()Returns the value of theblockXrecord component.intblockY()Returns the value of theblockYrecord component.intblockZ()Returns the value of theblockZrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.levelgen.DensityFunction.FunctionContextgetBlender
- 
Field Details- 
blockXprivate final int blockXThe field for theblockXrecord component.
- 
blockYprivate final int blockYThe field for theblockYrecord component.
- 
blockZprivate final int blockZThe field for theblockZrecord component.
 
- 
- 
Constructor Details- 
SinglePointContextpublic SinglePointContext(int blockX, int blockY, int blockZ) Creates an instance of aSinglePointContextrecord class.- Parameters:
- blockX- the value for the- blockXrecord component
- blockY- the value for the- blockYrecord component
- blockZ- the value for the- blockZrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 with '=='.
- 
blockXpublic int blockX()Returns the value of theblockXrecord component.- Specified by:
- blockXin interface- DensityFunction.FunctionContext
- Returns:
- the value of the blockXrecord component
 
- 
blockYpublic int blockY()Returns the value of theblockYrecord component.- Specified by:
- blockYin interface- DensityFunction.FunctionContext
- Returns:
- the value of the blockYrecord component
 
- 
blockZpublic int blockZ()Returns the value of theblockZrecord component.- Specified by:
- blockZin interface- DensityFunction.FunctionContext
- Returns:
- the value of the blockZrecord component
 
 
-