Package ac.boar.anticheat.util.geyser
Record Class BoarChunkSection
java.lang.Object
java.lang.Record
ac.boar.anticheat.util.geyser.BoarChunkSection
-
Constructor Summary
ConstructorsConstructorDescriptionBoarChunkSection(int initialBlockId) BoarChunkSection(BlockStorage[] storage) Creates an instance of aBoarChunkSectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intgetFullBlock(int x, int y, int z, int layer) final inthashCode()Returns a hash code value for this object.voidsetFullBlock(int x, int y, int z, int layer, int block) storage()Returns the value of thestoragerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BoarChunkSection
public BoarChunkSection(int initialBlockId) -
BoarChunkSection
Creates an instance of aBoarChunkSectionrecord class.- Parameters:
storage- the value for thestoragerecord component
-
-
Method Details
-
getFullBlock
public int getFullBlock(int x, int y, int z, int layer) -
setFullBlock
public void setFullBlock(int x, int y, int z, int layer, int block) -
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). -
storage
Returns the value of thestoragerecord component.- Returns:
- the value of the
storagerecord component
-