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 abm$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 Summary
Modifier and TypeFieldDescriptionprivate final String
The field for thehiveType
record component.private final int
The field for thehoneyLevel
record component.private final int
The field for theoccupantCount
record component.private final BlockPos
The field for thepos
record component.private final boolean
The field for thesedated
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.hiveType()
Returns the value of thehiveType
record component.int
Returns the value of thehoneyLevel
record component.int
Returns the value of theoccupantCount
record component.pos()
Returns the value of thepos
record component.boolean
sedated()
Returns the value of thesedated
record component.final String
toString()
Returns a string representation of this record class.void
write
(PacketByteBuf buf)
-
Field Details
-
pos
The field for thepos
record component. -
hiveType
The field for thehiveType
record component. -
occupantCount
private final int occupantCountThe field for theoccupantCount
record component. -
honeyLevel
private final int honeyLevelThe field for thehoneyLevel
record component. -
sedated
private final boolean sedatedThe field for thesedated
record 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>
Labm$a;<init>(Lws;)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
Labm$a;a(Lws;)V
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
pos
Returns the value of thepos
record component.- Returns:
- the value of the
pos
record component
-
hiveType
Returns the value of thehiveType
record component.- Returns:
- the value of the
hiveType
record component
-
occupantCount
public int occupantCount()Returns the value of theoccupantCount
record component.- Returns:
- the value of the
occupantCount
record component
-
honeyLevel
public int honeyLevel()Returns the value of thehoneyLevel
record component.- Returns:
- the value of the
honeyLevel
record component
-
sedated
public boolean sedated()Returns the value of thesedated
record component.- Returns:
- the value of the
sedated
record component
-