Package net.minecraft.entity
Class LazyEntityReference<StoredEntityType extends UniquelyIdentifiable>
java.lang.Object
net.minecraft.entity.LazyEntityReference<StoredEntityType>
- Mappings:
Namespace Name named net/minecraft/entity/LazyEntityReferenceintermediary net/minecraft/class_10583official bxt
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<? extends LazyEntityReference<?>> private static final PacketCodec<ByteBuf, ? extends LazyEntityReference<?>> private com.mojang.datafixers.util.Either<UUID, StoredEntityType> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StoredEntityTypecast(@Nullable UniquelyIdentifiable entity, Class<StoredEntityType> clazz) static <Type extends UniquelyIdentifiable>
com.mojang.serialization.Codec<LazyEntityReference<Type>> static <Type extends UniquelyIdentifiable>
PacketCodec<ByteBuf, LazyEntityReference<Type>> static <StoredEntityType extends UniquelyIdentifiable>
@Nullable LazyEntityReference<StoredEntityType> fromNbt(NbtCompound nbt, String key) static <StoredEntityType extends UniquelyIdentifiable>
@Nullable LazyEntityReference<StoredEntityType> fromNbtOrPlayerName(NbtCompound nbt, String key, World world) getUuid()static <StoredEntityType extends UniquelyIdentifiable>
StoredEntityTyperesolve(@Nullable LazyEntityReference<StoredEntityType> entity, EntityQueriable<? super StoredEntityType> world, Class<StoredEntityType> type) resolve(EntityQueriable<? super StoredEntityType> world, Class<StoredEntityType> type) booleanvoidwriteNbt(NbtCompound nbt, String key)
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/entity/LazyEntityReference;CODEC:Lcom/mojang/serialization/Codec;intermediary field_56632Lnet/minecraft/class_10583;field_56632:Lcom/mojang/serialization/Codec;official aLbxt;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/entity/LazyEntityReference;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_56633Lnet/minecraft/class_10583;field_56633:Lnet/minecraft/class_9139;official bLbxt;b:Lzg;
-
value
- Mappings:
Namespace Name Mixin selector named valueLnet/minecraft/entity/LazyEntityReference;value:Lcom/mojang/datafixers/util/Either;intermediary field_55661Lnet/minecraft/class_10583;field_55661:Lcom/mojang/datafixers/util/Either;official cLbxt;c:Lcom/mojang/datafixers/util/Either;
-
-
Constructor Details
-
LazyEntityReference
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/LazyEntityReference;<init>(Lnet/minecraft/world/entity/UniquelyIdentifiable;)Vintermediary <init>Lnet/minecraft/class_10583;<init>(Lnet/minecraft/class_10599;)Vofficial <init>Lbxt;<init>(Legv;)V
-
LazyEntityReference
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/LazyEntityReference;<init>(Ljava/util/UUID;)Vintermediary <init>Lnet/minecraft/class_10583;<init>(Ljava/util/UUID;)Vofficial <init>Lbxt;<init>(Ljava/util/UUID;)V
-
-
Method Details
-
createCodec
public static <Type extends UniquelyIdentifiable> com.mojang.serialization.Codec<LazyEntityReference<Type>> createCodec()- Mappings:
Namespace Name Mixin selector named createCodecLnet/minecraft/entity/LazyEntityReference;createCodec()Lcom/mojang/serialization/Codec;intermediary method_66253Lnet/minecraft/class_10583;method_66253()Lcom/mojang/serialization/Codec;official aLbxt;a()Lcom/mojang/serialization/Codec;
-
createPacketCodec
public static <Type extends UniquelyIdentifiable> PacketCodec<ByteBuf,LazyEntityReference<Type>> createPacketCodec()- Mappings:
Namespace Name Mixin selector named createPacketCodecLnet/minecraft/entity/LazyEntityReference;createPacketCodec()Lnet/minecraft/network/codec/PacketCodec;intermediary method_66261Lnet/minecraft/class_10583;method_66261()Lnet/minecraft/class_9139;official bLbxt;b()Lzg;
-
getUuid
- Mappings:
Namespace Name Mixin selector named getUuidLnet/minecraft/entity/LazyEntityReference;getUuid()Ljava/util/UUID;intermediary method_66263Lnet/minecraft/class_10583;method_66263()Ljava/util/UUID;official cLbxt;c()Ljava/util/UUID;
-
resolve
@Nullable public StoredEntityType resolve(EntityQueriable<? super StoredEntityType> world, Class<StoredEntityType> type) - Mappings:
Namespace Name Mixin selector named resolveLnet/minecraft/entity/LazyEntityReference;resolve(Lnet/minecraft/world/entity/EntityQueriable;Ljava/lang/Class;)Lnet/minecraft/world/entity/UniquelyIdentifiable;intermediary method_66255Lnet/minecraft/class_10583;method_66255(Lnet/minecraft/class_10598;Ljava/lang/Class;)Lnet/minecraft/class_10599;official aLbxt;a(Legu;Ljava/lang/Class;)Legv;
-
cast
@Nullable private StoredEntityType cast(@Nullable @Nullable UniquelyIdentifiable entity, Class<StoredEntityType> clazz) - Mappings:
Namespace Name Mixin selector named castLnet/minecraft/entity/LazyEntityReference;cast(Lnet/minecraft/world/entity/UniquelyIdentifiable;Ljava/lang/Class;)Lnet/minecraft/world/entity/UniquelyIdentifiable;intermediary method_66257Lnet/minecraft/class_10583;method_66257(Lnet/minecraft/class_10599;Ljava/lang/Class;)Lnet/minecraft/class_10599;official aLbxt;a(Legv;Ljava/lang/Class;)Legv;
-
uuidEquals
- Mappings:
Namespace Name Mixin selector named uuidEqualsLnet/minecraft/entity/LazyEntityReference;uuidEquals(Lnet/minecraft/world/entity/UniquelyIdentifiable;)Zintermediary method_66256Lnet/minecraft/class_10583;method_66256(Lnet/minecraft/class_10599;)Zofficial aLbxt;a(Legv;)Z
-
writeNbt
- Mappings:
Namespace Name Mixin selector named writeNbtLnet/minecraft/entity/LazyEntityReference;writeNbt(Lnet/minecraft/nbt/NbtCompound;Ljava/lang/String;)Vintermediary method_66259Lnet/minecraft/class_10583;method_66259(Lnet/minecraft/class_2487;Ljava/lang/String;)Vofficial aLbxt;a(Luc;Ljava/lang/String;)V
-
resolve
@Nullable public static <StoredEntityType extends UniquelyIdentifiable> StoredEntityType resolve(@Nullable @Nullable LazyEntityReference<StoredEntityType> entity, EntityQueriable<? super StoredEntityType> world, Class<StoredEntityType> type) - Mappings:
Namespace Name Mixin selector named resolveLnet/minecraft/entity/LazyEntityReference;resolve(Lnet/minecraft/entity/LazyEntityReference;Lnet/minecraft/world/entity/EntityQueriable;Ljava/lang/Class;)Lnet/minecraft/world/entity/UniquelyIdentifiable;intermediary method_66254Lnet/minecraft/class_10583;method_66254(Lnet/minecraft/class_10583;Lnet/minecraft/class_10598;Ljava/lang/Class;)Lnet/minecraft/class_10599;official aLbxt;a(Lbxt;Legu;Ljava/lang/Class;)Legv;
-
fromNbt
@Nullable public static <StoredEntityType extends UniquelyIdentifiable> @Nullable LazyEntityReference<StoredEntityType> fromNbt(NbtCompound nbt, String key) - Mappings:
Namespace Name Mixin selector named fromNbtLnet/minecraft/entity/LazyEntityReference;fromNbt(Lnet/minecraft/nbt/NbtCompound;Ljava/lang/String;)Lnet/minecraft/entity/LazyEntityReference;intermediary method_66262Lnet/minecraft/class_10583;method_66262(Lnet/minecraft/class_2487;Ljava/lang/String;)Lnet/minecraft/class_10583;official bLbxt;b(Luc;Ljava/lang/String;)Lbxt;
-
fromNbtOrPlayerName
@Nullable public static <StoredEntityType extends UniquelyIdentifiable> @Nullable LazyEntityReference<StoredEntityType> fromNbtOrPlayerName(NbtCompound nbt, String key, World world) - Mappings:
Namespace Name Mixin selector named fromNbtOrPlayerNameLnet/minecraft/entity/LazyEntityReference;fromNbtOrPlayerName(Lnet/minecraft/nbt/NbtCompound;Ljava/lang/String;Lnet/minecraft/world/World;)Lnet/minecraft/entity/LazyEntityReference;intermediary method_66260Lnet/minecraft/class_10583;method_66260(Lnet/minecraft/class_2487;Ljava/lang/String;Lnet/minecraft/class_1937;)Lnet/minecraft/class_10583;official aLbxt;a(Luc;Ljava/lang/String;Ldkv;)Lbxt;
-