Record Class Bee
java.lang.Object
java.lang.Record
net.minestom.server.item.component.Bee
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBee(CustomData entityData, int ticksInHive, int minTicksInHive) Creates an instance of aBeerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theentityDatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theminTicksInHiverecord component.intReturns the value of theticksInHiverecord component.final StringtoString()Returns a string representation of this record class.withEntityData(CustomData entityData) withMinTicksInHive(int minTicksInHive) withTicksInHive(int ticksInHive)
-
Field Details
-
NETWORK_TYPE
-
CODEC
-
-
Constructor Details
-
Bee
Creates an instance of aBeerecord class.- Parameters:
entityData- the value for theentityDatarecord componentticksInHive- the value for theticksInHiverecord componentminTicksInHive- the value for theminTicksInHiverecord component
-
-
Method Details
-
withEntityData
-
withTicksInHive
-
withMinTicksInHive
-
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. -
entityData
Returns the value of theentityDatarecord component.- Returns:
- the value of the
entityDatarecord component
-
ticksInHive
public int ticksInHive()Returns the value of theticksInHiverecord component.- Returns:
- the value of the
ticksInHiverecord component
-
minTicksInHive
public int minTicksInHive()Returns the value of theminTicksInHiverecord component.- Returns:
- the value of the
minTicksInHiverecord component
-