Record Class DebugHiveCustomPayload.HiveInfo
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.custom.DebugHiveCustomPayload.HiveInfo
- Record Components:
- pos-
- hiveType-
- occupantCount-
- honeyLevel-
- sedated-
- Enclosing class:
- DebugHiveCustomPayload
public static record DebugHiveCustomPayload.HiveInfo(BlockPos pos, String hiveType, int occupantCount, int honeyLevel, boolean sedated)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/network/packet/s2c/custom/DebugHiveCustomPayload$HiveInfo- intermediary - net/minecraft/class_8718$class_8719- official - aag$a- named - pos- intermediary - comp_1694- official - a- named - hiveType- intermediary - comp_1695- official - b- named - occupantCount- intermediary - comp_1696- official - c- named - honeyLevel- intermediary - comp_1697- official - d- named - sedated- intermediary - comp_1698- official - e
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final StringThe field for thehiveTyperecord component.private final intThe field for thehoneyLevelrecord component.private final intThe field for theoccupantCountrecord component.private final BlockPosThe field for theposrecord component.private final booleanThe field for thesedatedrecord component.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hiveType()Returns the value of thehiveTyperecord component.intReturns the value of thehoneyLevelrecord component.intReturns the value of theoccupantCountrecord component.pos()Returns the value of theposrecord component.booleansedated()Returns the value of thesedatedrecord component.final StringtoString()Returns a string representation of this record class.voidwrite(PacketByteBuf buf) 
- 
Field Details- 
posThe field for theposrecord component.
- 
hiveTypeThe field for thehiveTyperecord component.
- 
occupantCountprivate final int occupantCountThe field for theoccupantCountrecord component.
- 
honeyLevelprivate final int honeyLevelThe field for thehoneyLevelrecord component.
- 
sedatedprivate final boolean sedatedThe field for thesedatedrecord component.
 
- 
- 
Constructor Details- 
HiveInfo- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/network/packet/s2c/custom/DebugHiveCustomPayload$HiveInfo;<init>(Lnet/minecraft/network/PacketByteBuf;)V- intermediary - <init>- Lnet/minecraft/class_8718$class_8719;<init>(Lnet/minecraft/class_2540;)V- official - <init>- Laag$a;<init>(Lvl;)V
 
- 
HiveInfo
 
- 
- 
Method Details- 
write- Mappings:
- Namespace - Name - Mixin selector - named - write- Lnet/minecraft/network/packet/s2c/custom/DebugHiveCustomPayload$HiveInfo;write(Lnet/minecraft/network/PacketByteBuf;)V- intermediary - method_53036- Lnet/minecraft/class_8718$class_8719;method_53036(Lnet/minecraft/class_2540;)V- official - a- Laag$a;a(Lvl;)V
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
posReturns the value of theposrecord component.- Returns:
- the value of the posrecord component
 
- 
hiveTypeReturns the value of thehiveTyperecord component.- Returns:
- the value of the hiveTyperecord component
 
- 
occupantCountpublic int occupantCount()Returns the value of theoccupantCountrecord component.- Returns:
- the value of the occupantCountrecord component
 
- 
honeyLevelpublic int honeyLevel()Returns the value of thehoneyLevelrecord component.- Returns:
- the value of the honeyLevelrecord component
 
- 
sedatedpublic boolean sedated()Returns the value of thesedatedrecord component.- Returns:
- the value of the sedatedrecord component
 
 
-