Package net.minecraft.world.debug.data
Record Class BeeHiveDebugData
java.lang.Object
java.lang.Record
net.minecraft.world.debug.data.BeeHiveDebugData
- Record Components:
type-occupantCount-honeyLevel-sedated-
public record BeeHiveDebugData(Block type, int occupantCount, int honeyLevel, boolean sedated)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/debug/data/BeeHiveDebugDataintermediary net/minecraft/class_12012official bvonamed typeintermediary comp_4858official bnamed occupantCountintermediary comp_4859official cnamed honeyLevelintermediary comp_4860official dnamed sedatedintermediary comp_4861official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thehoneyLevelrecord component.private final intThe field for theoccupantCountrecord component.static final PacketCodec<RegistryByteBuf, BeeHiveDebugData> private final booleanThe field for thesedatedrecord component.private final BlockThe field for thetyperecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static BeeHiveDebugDatafromBeehive(BeehiveBlockEntity beehive) 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
-
type
The field for thetyperecord component. -
occupantCount
private final int occupantCountThe field for theoccupantCountrecord component. -
honeyLevel
private final int honeyLevelThe field for thehoneyLevelrecord component. -
sedated
private final boolean sedatedThe field for thesedatedrecord component. -
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/world/debug/data/BeeHiveDebugData;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_62859Lnet/minecraft/class_12012;field_62859:Lnet/minecraft/class_9139;official aLbvo;a:Laae;
-
-
Constructor Details
-
BeeHiveDebugData
-
-
Method Details
-
fromBeehive
- Mappings:
Namespace Name Mixin selector named fromBeehiveLnet/minecraft/world/debug/data/BeeHiveDebugData;fromBeehive(Lnet/minecraft/block/entity/BeehiveBlockEntity;)Lnet/minecraft/world/debug/data/BeeHiveDebugData;intermediary method_74568Lnet/minecraft/class_12012;method_74568(Lnet/minecraft/class_4482;)Lnet/minecraft/class_12012;official aLbvo;a(Legd;)Lbvo;
-
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 '=='. -
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
-