Package net.minecraft.entity
Class TypedEntityData<IdType>
java.lang.Object
net.minecraft.entity.TypedEntityData<IdType>
- All Implemented Interfaces:
TooltipAppender
- Mappings:
Namespace Name named net/minecraft/entity/TypedEntityDataintermediary net/minecraft/class_11580official dkw
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, ComponentsAccess components) booleanapplyToBlockEntity(BlockEntity blockEntity, RegistryWrapper.WrapperLookup registryLookup) voidapplyToEntity(Entity entity) booleanstatic <T> TypedEntityData<T> create(T type, NbtCompound nbt) static <T> com.mojang.serialization.Codec<TypedEntityData<T>> createCodec(com.mojang.serialization.Codec<T> typeCodec) static <B extends ByteBuf,T>
PacketCodec<B, TypedEntityData<T>> createPacketCodec(PacketCodec<B, T> typePacketCodec) booleanDeprecated.private NbtCompoundgetType()inthashCode()private static NbtCompoundstripId(NbtCompound nbt) toString()
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/entity/TypedEntityData;LOGGER:Lorg/slf4j/Logger;intermediary field_61360Lnet/minecraft/class_11580;field_61360:Lorg/slf4j/Logger;official aLdkw;a:Lorg/slf4j/Logger;
-
ID_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named ID_KEYLnet/minecraft/entity/TypedEntityData;ID_KEY:Ljava/lang/String;intermediary field_61361Lnet/minecraft/class_11580;field_61361:Ljava/lang/String;official bLdkw;b:Ljava/lang/String;
-
type
- Mappings:
Namespace Name Mixin selector named typeLnet/minecraft/entity/TypedEntityData;type:Ljava/lang/Object;intermediary field_61362Lnet/minecraft/class_11580;field_61362:Ljava/lang/Object;official cLdkw;c:Ljava/lang/Object;
-
nbt
- Mappings:
Namespace Name Mixin selector named nbtLnet/minecraft/entity/TypedEntityData;nbt:Lnet/minecraft/nbt/NbtCompound;intermediary field_61363Lnet/minecraft/class_11580;field_61363:Lnet/minecraft/class_2487;official dLdkw;d:Lup;
-
-
Constructor Details
-
TypedEntityData
TypedEntityData(IdType type, NbtCompound nbt) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/TypedEntityData;<init>(Ljava/lang/Object;Lnet/minecraft/nbt/NbtCompound;)Vintermediary <init>Lnet/minecraft/class_11580;<init>(Ljava/lang/Object;Lnet/minecraft/class_2487;)Vofficial <init>Ldkw;<init>(Ljava/lang/Object;Lup;)V
-
-
Method Details
-
createCodec
public static <T> com.mojang.serialization.Codec<TypedEntityData<T>> createCodec(com.mojang.serialization.Codec<T> typeCodec) - Mappings:
Namespace Name Mixin selector named createCodecLnet/minecraft/entity/TypedEntityData;createCodec(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;intermediary method_72532Lnet/minecraft/class_11580;method_72532(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;official aLdkw;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-
createPacketCodec
public static <B extends ByteBuf,T> PacketCodec<B,TypedEntityData<T>> createPacketCodec(PacketCodec<B, T> typePacketCodec) - Mappings:
Namespace Name Mixin selector named createPacketCodecLnet/minecraft/entity/TypedEntityData;createPacketCodec(Lnet/minecraft/network/codec/PacketCodec;)Lnet/minecraft/network/codec/PacketCodec;intermediary method_72538Lnet/minecraft/class_11580;method_72538(Lnet/minecraft/class_9139;)Lnet/minecraft/class_9139;official aLdkw;a(Laae;)Laae;
-
create
- Mappings:
Namespace Name Mixin selector named createLnet/minecraft/entity/TypedEntityData;create(Ljava/lang/Object;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/entity/TypedEntityData;intermediary method_72535Lnet/minecraft/class_11580;method_72535(Ljava/lang/Object;Lnet/minecraft/class_2487;)Lnet/minecraft/class_11580;official aLdkw;a(Ljava/lang/Object;Lup;)Ldkw;
-
stripId
- Mappings:
Namespace Name Mixin selector named stripIdLnet/minecraft/entity/TypedEntityData;stripId(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;intermediary method_72537Lnet/minecraft/class_11580;method_72537(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;official aLdkw;a(Lup;)Lup;
-
getType
- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/entity/TypedEntityData;getType()Ljava/lang/Object;intermediary method_72530Lnet/minecraft/class_11580;method_72530()Ljava/lang/Object;official aLdkw;a()Ljava/lang/Object;
-
contains
- Mappings:
Namespace Name Mixin selector named containsLnet/minecraft/entity/TypedEntityData;contains(Ljava/lang/String;)Zintermediary method_72536Lnet/minecraft/class_11580;method_72536(Ljava/lang/String;)Zofficial aLdkw;a(Ljava/lang/String;)Z
-
equals
-
hashCode
public int hashCode() -
toString
-
applyToEntity
- Mappings:
Namespace Name Mixin selector named applyToEntityLnet/minecraft/entity/TypedEntityData;applyToEntity(Lnet/minecraft/entity/Entity;)Vintermediary method_72531Lnet/minecraft/class_11580;method_72531(Lnet/minecraft/class_1297;)Vofficial aLdkw;a(Lcdv;)V
-
applyToBlockEntity
public boolean applyToBlockEntity(BlockEntity blockEntity, RegistryWrapper.WrapperLookup registryLookup) - Mappings:
Namespace Name Mixin selector named applyToBlockEntityLnet/minecraft/entity/TypedEntityData;applyToBlockEntity(Lnet/minecraft/block/entity/BlockEntity;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Zintermediary method_72534Lnet/minecraft/class_11580;method_72534(Lnet/minecraft/class_2586;Lnet/minecraft/class_7225$class_7874;)Zofficial aLdkw;a(Legg;Ljm$a;)Z
-
getNbtWithoutIdInternal
- Mappings:
Namespace Name Mixin selector named getNbtWithoutIdInternalLnet/minecraft/entity/TypedEntityData;getNbtWithoutIdInternal()Lnet/minecraft/nbt/NbtCompound;intermediary method_72541Lnet/minecraft/class_11580;method_72541()Lnet/minecraft/class_2487;official dLdkw;d()Lup;
-
getNbtWithoutId
Deprecated.UsecopyNbtWithoutId()instead.j- Mappings:
Namespace Name Mixin selector named getNbtWithoutIdLnet/minecraft/entity/TypedEntityData;getNbtWithoutId()Lnet/minecraft/nbt/NbtCompound;intermediary method_72539Lnet/minecraft/class_11580;method_72539()Lnet/minecraft/class_2487;official bLdkw;b()Lup;
-
copyNbtWithoutId
- Mappings:
Namespace Name Mixin selector named copyNbtWithoutIdLnet/minecraft/entity/TypedEntityData;copyNbtWithoutId()Lnet/minecraft/nbt/NbtCompound;intermediary method_72540Lnet/minecraft/class_11580;method_72540()Lnet/minecraft/class_2487;official cLdkw;c()Lup;
-
appendTooltip
public void appendTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, ComponentsAccess components) - Specified by:
appendTooltipin interfaceTooltipAppender- Mappings:
Namespace Name Mixin selector named appendTooltipLnet/minecraft/item/tooltip/TooltipAppender;appendTooltip(Lnet/minecraft/item/Item$TooltipContext;Ljava/util/function/Consumer;Lnet/minecraft/item/tooltip/TooltipType;Lnet/minecraft/component/ComponentsAccess;)Vintermediary method_57409Lnet/minecraft/class_9299;method_57409(Lnet/minecraft/class_1792$class_9635;Ljava/util/function/Consumer;Lnet/minecraft/class_1836;Lnet/minecraft/class_9473;)Vofficial aLdkv;a(Ldhl$b;Ljava/util/function/Consumer;Ldje;Lkk;)V
-
copyNbtWithoutId()instead.j