net.minecraft.entity

public final class LazyEntityReference<StoredEntityType extends UniquelyIdentifiable>

net.minecraft.world.entity.EntityReference
net.minecraft.class_10583
net.minecraft.entity.LazyEntityReference

Field summary

Modifier and TypeField
private static final com.mojang.serialization.Codec<? extends LazyEntityReference<?>>
CODEC
field_56632
CODEC
private static final PacketCodec<io.netty.buffer.ByteBuf, ? extends LazyEntityReference<?>>
STREAM_CODEC
field_56633
PACKET_CODEC
private com.mojang.datafixers.util.Either<UUID, StoredEntityType>
entity
field_55661
value

Constructor summary

ModifierConstructor
private (StoredEntityType value)
private (UUID value)

Method summary

Modifier and TypeMethod
public static <Type extends UniquelyIdentifiable> com.mojang.serialization.Codec<LazyEntityReference<Type>>
codec()
method_66253()
createCodec()
public static <Type extends UniquelyIdentifiable> PacketCodec<io.netty.buffer.ByteBuf, LazyEntityReference<Type>>
streamCodec()
method_66261()
createPacketCodec()
public static <T extends UniquelyIdentifiable> LazyEntityReference<T>
of(T entity)
method_73299(T arg0)
of(T object)
public static <T extends UniquelyIdentifiable> LazyEntityReference<T>
of(UUID uuid)
method_73300(UUID arg0)
ofUUID(UUID uuid)
public UUID
getUUID()
method_66263()
getUuid()
public StoredEntityType
getEntity(UUIDLookup<? extends UniquelyIdentifyable> lookup, Class<StoredEntityType> clazz)
method_66255(class_10598<? extends class_10599> arg0, Class<StoredEntityType> arg1)
resolve(EntityQueriable<? extends UniquelyIdentifiable> world, Class<StoredEntityType> type)
public StoredEntityType
getEntity(Level level, Class<StoredEntityType> clazz)
method_73298(class_1937 arg0, Class<StoredEntityType> arg1)
getEntityByClass(World world, Class<StoredEntityType> clazz)
private StoredEntityType
resolve(UniquelyIdentifyable entity, Class<StoredEntityType> clazz)
method_66257(class_10599 arg0, Class<StoredEntityType> arg1)
cast(UniquelyIdentifiable entity, Class<StoredEntityType> clazz)
public boolean
matches(StoredEntityType entity)
method_66256(StoredEntityType arg0)
uuidEquals(StoredEntityType o)
public void
store(ValueOutput output, String key)
method_66259(class_11372 arg0, String arg1)
writeData(WriteView view, String key)
public static void
store(EntityReference<?> reference, ValueOutput output, String key)
method_71612(class_10583<?> arg0, class_11372 arg1, String arg2)
writeData(LazyEntityReference<?> entityRef, WriteView view, String key)
public static <StoredEntityType extends UniquelyIdentifiable> StoredEntityType
get(EntityReference<StoredEntityType> reference, Level level, Class<StoredEntityType> clazz)
method_66254(class_10583<StoredEntityType> arg0, class_1937 arg1, Class<StoredEntityType> arg2)
resolve(LazyEntityReference<StoredEntityType> entity, World world, Class<StoredEntityType> type)
public static Entity
getEntity(EntityReference<Entity> reference, Level level)
method_73297(class_10583<class_1297> arg0, class_1937 arg1)
getEntity(LazyEntityReference<Entity> entityReference, World world)
public static LivingEntity
getLivingEntity(EntityReference<LivingEntity> reference, Level level)
method_73301(class_10583<class_1309> arg0, class_1937 arg1)
getLivingEntity(LazyEntityReference<LivingEntity> livingReference, World world)
public static PlayerEntity
getPlayer(EntityReference<Player> reference, Level level)
method_73302(class_10583<class_1657> arg0, class_1937 arg1)
getPlayerEntity(LazyEntityReference<PlayerEntity> playerReference, World world)
public static <StoredEntityType extends UniquelyIdentifiable> LazyEntityReference<StoredEntityType>
read(ValueInput input, String key)
method_66262(class_11368 arg0, String arg1)
fromData(ReadView view, String key)
public static <StoredEntityType extends UniquelyIdentifiable> LazyEntityReference<StoredEntityType>
readWithOldOwnerConversion(ValueInput input, String key, Level level)
method_66260(class_11368 arg0, String arg1, class_1937 arg2)
fromDataOrPlayerName(ReadView view, String key, World world)
private static UUID
lambda$readWithOldOwnerConversion$1(Level arg0, String arg1)
method_68262(class_1937 arg0, String arg1)
method_68262(World arg0, String name)
private static UUID
lambda$getUUID$0(UUID arg0)
method_66258(UUID arg0)
method_66258(UUID uuid)