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/BeeHiveDebugData
intermediary net/minecraft/class_12012
official bvo
named type
intermediary comp_4858
official b
named occupantCount
intermediary comp_4859
official c
named honeyLevel
intermediary comp_4860
official d
named sedated
intermediary comp_4861
official e
  • Field Details

    • type

      private final Block type
      The field for the type record component.
    • occupantCount

      private final int occupantCount
      The field for the occupantCount record component.
    • honeyLevel

      private final int honeyLevel
      The field for the honeyLevel record component.
    • sedated

      private final boolean sedated
      The field for the sedated record component.
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,BeeHiveDebugData> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/world/debug/data/BeeHiveDebugData;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_62859 Lnet/minecraft/class_12012;field_62859:Lnet/minecraft/class_9139;
      official a Lbvo;a:Laae;
  • Constructor Details

    • BeeHiveDebugData

      public BeeHiveDebugData(Block block, int int2, int int3, boolean bool)
  • Method Details

    • fromBeehive

      public static BeeHiveDebugData fromBeehive(BeehiveBlockEntity beehive)
      Mappings:
      Namespace Name Mixin selector
      named fromBeehive Lnet/minecraft/world/debug/data/BeeHiveDebugData;fromBeehive(Lnet/minecraft/block/entity/BeehiveBlockEntity;)Lnet/minecraft/world/debug/data/BeeHiveDebugData;
      intermediary method_74568 Lnet/minecraft/class_12012;method_74568(Lnet/minecraft/class_4482;)Lnet/minecraft/class_12012;
      official a Lbvo;a(Legd;)Lbvo;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • type

      public Block type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • occupantCount

      public int occupantCount()
      Returns the value of the occupantCount record component.
      Returns:
      the value of the occupantCount record component
    • honeyLevel

      public int honeyLevel()
      Returns the value of the honeyLevel record component.
      Returns:
      the value of the honeyLevel record component
    • sedated

      public boolean sedated()
      Returns the value of the sedated record component.
      Returns:
      the value of the sedated record component