net.minecraft.world.entity

public final class EntityReference<StoredEntityType extends UniquelyIdentifyable>

cgp
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 EntityReference<?>>
a
CODEC
field_56632
CODEC
private static final StreamCodec<io.netty.buffer.ByteBuf, ? extends EntityReference<?>>
b
STREAM_CODEC
field_56633
PACKET_CODEC
private com.mojang.datafixers.util.Either<UUID, StoredEntityType>
c
entity
field_55661
value

Constructor summary

ModifierConstructor
private (StoredEntityType value)
private (UUID value)

Method summary

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