Record Class LightingChunk.OcclusionData
java.lang.Object
java.lang.Record
net.minestom.server.instance.LightingChunk.OcclusionData
- Enclosing class:
LightingChunk
protected static record LightingChunk.OcclusionData(int highestBlock, int[] occlusionMap)
extends Record
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOcclusionData(int highestBlock, int[] occlusionMap) Creates an instance of aOcclusionDatarecord 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.intReturns the value of thehighestBlockrecord component.int[]Returns the value of theocclusionMaprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OcclusionData
protected OcclusionData(int highestBlock, int[] occlusionMap) Creates an instance of aOcclusionDatarecord class.- Parameters:
highestBlock- the value for thehighestBlockrecord componentocclusionMap- the value for theocclusionMaprecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
highestBlock
public int highestBlock()Returns the value of thehighestBlockrecord component.- Returns:
- the value of the
highestBlockrecord component
-
occlusionMap
public int[] occlusionMap()Returns the value of theocclusionMaprecord component.- Returns:
- the value of the
occlusionMaprecord component
-