Package net.minecraft.block.entity
Record Class BeehiveBlockEntity.BeeData
java.lang.Object
java.lang.Record
net.minecraft.block.entity.BeehiveBlockEntity.BeeData
- Record Components:
entityData-ticksInHive-minTicksInHive-
- Enclosing class:
BeehiveBlockEntity
public static record BeehiveBlockEntity.BeeData(NbtComponent entityData, int ticksInHive, int minTicksInHive)
extends Record
- Mappings:
Namespace Name named net/minecraft/block/entity/BeehiveBlockEntity$BeeDataintermediary net/minecraft/class_4482$class_9309official dqe$cnamed entityDataintermediary comp_2431official dnamed ticksInHiveintermediary comp_2432official enamed minTicksInHiveintermediary comp_2433official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BeehiveBlockEntity.BeeData> private final NbtComponentThe field for theentityDatarecord component.static final com.mojang.serialization.Codec<List<BeehiveBlockEntity.BeeData>> private final intThe field for theminTicksInHiverecord component.static final PacketCodec<ByteBuf, BeehiveBlockEntity.BeeData> private final intThe field for theticksInHiverecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BeehiveBlockEntity.BeeDatacreate(int ticksInHive) Returns 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.loadEntity(World world, BlockPos pos) intReturns the value of theminTicksInHiverecord component.static BeehiveBlockEntity.BeeDataprivate static voidtickEntity(int ticksInHive, BeeEntity beeEntity) intReturns the value of theticksInHiverecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
entityData
The field for theentityDatarecord component. -
ticksInHive
private final int ticksInHiveThe field for theticksInHiverecord component. -
minTicksInHive
private final int minTicksInHiveThe field for theminTicksInHiverecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/block/entity/BeehiveBlockEntity$BeeData;CODEC:Lcom/mojang/serialization/Codec;intermediary field_49411Lnet/minecraft/class_4482$class_9309;field_49411:Lcom/mojang/serialization/Codec;official aLdqe$c;a:Lcom/mojang/serialization/Codec;
-
LIST_CODEC
- Mappings:
Namespace Name Mixin selector named LIST_CODECLnet/minecraft/block/entity/BeehiveBlockEntity$BeeData;LIST_CODEC:Lcom/mojang/serialization/Codec;intermediary field_49412Lnet/minecraft/class_4482$class_9309;field_49412:Lcom/mojang/serialization/Codec;official bLdqe$c;b:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/block/entity/BeehiveBlockEntity$BeeData;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49413Lnet/minecraft/class_4482$class_9309;field_49413:Lnet/minecraft/class_9139;official cLdqe$c;c:Lyx;
-
-
Constructor Details
-
BeeData
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector named ofLnet/minecraft/block/entity/BeehiveBlockEntity$BeeData;of(Lnet/minecraft/entity/Entity;)Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeData;intermediary method_57586Lnet/minecraft/class_4482$class_9309;method_57586(Lnet/minecraft/class_1297;)Lnet/minecraft/class_4482$class_9309;official aLdqe$c;a(Lbsr;)Ldqe$c;
-
create
- Mappings:
Namespace Name Mixin selector named createLnet/minecraft/block/entity/BeehiveBlockEntity$BeeData;create(I)Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeData;intermediary method_57584Lnet/minecraft/class_4482$class_9309;method_57584(I)Lnet/minecraft/class_4482$class_9309;official aLdqe$c;a(I)Ldqe$c;
-
loadEntity
- Mappings:
Namespace Name Mixin selector named loadEntityLnet/minecraft/block/entity/BeehiveBlockEntity$BeeData;loadEntity(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/Entity;intermediary method_57588Lnet/minecraft/class_4482$class_9309;method_57588(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1297;official aLdqe$c;a(Ldcw;Ljd;)Lbsr;
-
tickEntity
- Mappings:
Namespace Name Mixin selector named tickEntityLnet/minecraft/block/entity/BeehiveBlockEntity$BeeData;tickEntity(ILnet/minecraft/entity/passive/BeeEntity;)Vintermediary method_57585Lnet/minecraft/class_4482$class_9309;method_57585(ILnet/minecraft/class_4466;)Vofficial aLdqe$c;a(ILcff;)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 '=='. -
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
-