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$BeeData
intermediary net/minecraft/class_4482$class_9309
official dpg$c
named entityData
intermediary comp_2431
official d
named ticksInHive
intermediary comp_2432
official e
named minTicksInHive
intermediary comp_2433
official f
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<BeehiveBlockEntity.BeeData> private final NbtComponent
The field for theentityData
record component.static final com.mojang.serialization.Codec
<List<BeehiveBlockEntity.BeeData>> private final int
The field for theminTicksInHive
record component.static final PacketCodec
<ByteBuf, BeehiveBlockEntity.BeeData> private final int
The field for theticksInHive
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BeehiveBlockEntity.BeeData
create
(int ticksInHive) Returns the value of theentityData
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.loadEntity
(World world, BlockPos pos) int
Returns the value of theminTicksInHive
record component.static BeehiveBlockEntity.BeeData
private static void
tickEntity
(int ticksInHive, BeeEntity beeEntity) int
Returns the value of theticksInHive
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
entityData
The field for theentityData
record component. -
ticksInHive
private final int ticksInHiveThe field for theticksInHive
record component. -
minTicksInHive
private final int minTicksInHiveThe field for theminTicksInHive
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeData;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_49411
Lnet/minecraft/class_4482$class_9309;field_49411:Lcom/mojang/serialization/Codec;
official a
Ldpg$c;a:Lcom/mojang/serialization/Codec;
-
LIST_CODEC
- Mappings:
Namespace Name Mixin selector named LIST_CODEC
Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeData;LIST_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_49412
Lnet/minecraft/class_4482$class_9309;field_49412:Lcom/mojang/serialization/Codec;
official b
Ldpg$c;b:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeData;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_49413
Lnet/minecraft/class_4482$class_9309;field_49413:Lnet/minecraft/class_9139;
official c
Ldpg$c;c:Lzn;
-
-
Constructor Details
-
BeeData
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector named of
Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeData;of(Lnet/minecraft/entity/Entity;)Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeData;
intermediary method_57586
Lnet/minecraft/class_4482$class_9309;method_57586(Lnet/minecraft/class_1297;)Lnet/minecraft/class_4482$class_9309;
official a
Ldpg$c;a(Lbsw;)Ldpg$c;
-
create
- Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeData;create(I)Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeData;
intermediary method_57584
Lnet/minecraft/class_4482$class_9309;method_57584(I)Lnet/minecraft/class_4482$class_9309;
official a
Ldpg$c;a(I)Ldpg$c;
-
loadEntity
- Mappings:
Namespace Name Mixin selector named loadEntity
Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeData;loadEntity(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/Entity;
intermediary method_57588
Lnet/minecraft/class_4482$class_9309;method_57588(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1297;
official a
Ldpg$c;a(Ldca;Liz;)Lbsw;
-
tickEntity
- Mappings:
Namespace Name Mixin selector named tickEntity
Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeData;tickEntity(ILnet/minecraft/entity/passive/BeeEntity;)V
intermediary method_57585
Lnet/minecraft/class_4482$class_9309;method_57585(ILnet/minecraft/class_4466;)V
official a
Ldpg$c;a(ILcfi;)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 theentityData
record component.- Returns:
- the value of the
entityData
record component
-
ticksInHive
public int ticksInHive()Returns the value of theticksInHive
record component.- Returns:
- the value of the
ticksInHive
record component
-
minTicksInHive
public int minTicksInHive()Returns the value of theminTicksInHive
record component.- Returns:
- the value of the
minTicksInHive
record component
-