Record Class DebugHiveInfo
java.lang.Object
java.lang.Record
net.minestom.server.network.debug.info.DebugHiveInfo
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDebugHiveInfo(Block type, int occupantCount, int honeyLevel, boolean sedated) Creates an instance of aDebugHiveInforecord 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 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.type()Returns the value of thetyperecord component.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
DebugHiveInfo
Creates an instance of aDebugHiveInforecord class.- Parameters:
type- the value for thetyperecord componentoccupantCount- the value for theoccupantCountrecord componenthoneyLevel- the value for thehoneyLevelrecord componentsedated- the value for thesedatedrecord 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. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord 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
-