Record Class DebugHiveInfo
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.debug.DebugHiveInfo
- All Implemented Interfaces:
DebugInfo
-
Constructor Summary
ConstructorsConstructorDescriptionDebugHiveInfo(int blockType, int occupantCount, int honeyLevel, boolean sedated) Creates an instance of aDebugHiveInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theblockTyperecord component.final booleanIndicates whether some other object is "equal to" this one.getType()final inthashCode()Returns a hash code value for this object.intReturns the value of thehoneyLevelrecord component.intReturns the value of theoccupantCountrecord component.booleansedated()Returns the value of thesedatedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DebugHiveInfo
public DebugHiveInfo(int blockType, int occupantCount, int honeyLevel, boolean sedated) Creates an instance of aDebugHiveInforecord class.- Parameters:
blockType- the value for theblockTyperecord componentoccupantCount- the value for theoccupantCountrecord componenthoneyLevel- the value for thehoneyLevelrecord componentsedated- the value for thesedatedrecord component
-
-
Method Details
-
getType
-
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 with '=='. -
blockType
public int blockType()Returns the value of theblockTyperecord component.- Returns:
- the value of the
blockTyperecord component
-
occupantCount
public int occupantCount()Returns the value of theoccupantCountrecord component.- Returns:
- the value of the
occupantCountrecord component
-
honeyLevel
public int honeyLevel()Returns the value of thehoneyLevelrecord component.- Returns:
- the value of the
honeyLevelrecord component
-
sedated
public boolean sedated()Returns the value of thesedatedrecord component.- Returns:
- the value of the
sedatedrecord component
-