net.minecraft.world.entity

public final class EntityReference<StoredEntityType extends UniquelyIdentifyable>

ceb
net.minecraft.world.entity.EntityReference
net.minecraft.class_10583
net.minecraft.entity.LazyEntityReference
net.minecraft.src.C_379042_
net.minecraft.world.entity.EntityReference

Field summary

Modifier and TypeField
private static final com.mojang.serialization.Codec<? extends EntityReference<?>>
a
CODEC
field_56632
CODEC
f_381887_
private static final StreamCodec<io.netty.buffer.ByteBuf, ? extends EntityReference<?>>
b
STREAM_CODEC
field_56633
PACKET_CODEC
f_379574_
private com.mojang.datafixers.util.Either<UUID, StoredEntityType>
c
entity
field_55661
value
f_381735_

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()
m_385061_()
public static <Type extends UniquelyIdentifyable> StreamCodec<io.netty.buffer.ByteBuf, EntityReference<Type>>
b()
streamCodec()
method_66261()
createPacketCodec()
m_384723_()
public static <T extends UniquelyIdentifyable> EntityReference<T>
a(T arg0)
of(T arg0)
method_73299(T arg0)
of(T object)
m_418295_(T p_430144_)
public static <T extends UniquelyIdentifyable> EntityReference<T>
a(UUID arg0)
of(UUID arg0)
method_73300(UUID arg0)
ofUUID(UUID uuid)
m_419117_(UUID p_426905_)
public UUID
c()
getUUID()
method_66263()
getUuid()
m_386316_()
public StoredEntityType
a(eoi<? extends eoj> 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)
m_386587_(C_379332_<? extends C_379323_> p_396644_, Class<StoredEntityType> arg1)
public StoredEntityType
a(drq arg0, Class<StoredEntityType> arg1)
getEntity(Level arg0, Class<StoredEntityType> arg1)
method_73298(class_1937 arg0, Class<StoredEntityType> arg1)
getEntityByClass(World world, Class<StoredEntityType> clazz)
m_415218_(C_1596_ p_426851_, Class<StoredEntityType> arg1)
private StoredEntityType
a(eoj arg0, Class<StoredEntityType> arg1)
resolve(UniquelyIdentifyable arg0, Class<StoredEntityType> arg1)
method_66257(class_10599 arg0, Class<StoredEntityType> arg1)
cast(UniquelyIdentifiable entity, Class<StoredEntityType> clazz)
m_386584_(C_379323_ p_391245_, Class<StoredEntityType> arg1)
public boolean
b(StoredEntityType arg0)
matches(StoredEntityType arg0)
method_66256(StoredEntityType arg0)
uuidEquals(StoredEntityType o)
m_385779_(StoredEntityType arg0)
public void
a(fir arg0, String arg1)
store(ValueOutput arg0, String arg1)
method_66259(class_11372 arg0, String arg1)
writeData(WriteView view, String key)
m_385512_(C_398537_ p_396728_, String arg1)
public static void
a(ceb<?> arg0, fir 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)
m_403739_(C_379042_<?> p_409297_, C_398537_ p_406877_, String p_406736_)
public static <StoredEntityType extends UniquelyIdentifyable> StoredEntityType
a(ceb<StoredEntityType> arg0, drq 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)
m_385388_(C_379042_<StoredEntityType> p_392004_, C_1596_ p_423373_, Class<StoredEntityType> p_397380_)
public static Entity
a(ceb<cdv> arg0, drq arg1)
getEntity(EntityReference<Entity> arg0, Level arg1)
method_73297(class_10583<class_1297> arg0, class_1937 arg1)
getEntity(LazyEntityReference<Entity> entityReference, World world)
m_416684_(C_379042_<C_507_> p_430343_, C_1596_ p_426440_)
public static LivingEntity
b(ceb<cew> arg0, drq arg1)
getLivingEntity(EntityReference<LivingEntity> arg0, Level arg1)
method_73301(class_10583<class_1309> arg0, class_1937 arg1)
getLivingEntity(LazyEntityReference<LivingEntity> livingReference, World world)
m_419640_(C_379042_<C_524_> p_423502_, C_1596_ p_424628_)
public static Player
c(ceb<czl> arg0, drq arg1)
getPlayer(EntityReference<Player> arg0, Level arg1)
method_73302(class_10583<class_1657> arg0, class_1937 arg1)
getPlayerEntity(LazyEntityReference<PlayerEntity> playerReference, World world)
m_417562_(C_379042_<C_1141_> p_424138_, C_1596_ p_431512_)
public static <StoredEntityType extends UniquelyIdentifyable> EntityReference<StoredEntityType>
a(fip arg0, String arg1)
read(ValueInput arg0, String arg1)
method_66262(class_11368 arg0, String arg1)
fromData(ReadView view, String key)
m_386625_(C_398549_ p_407277_, String p_393635_)
public static <StoredEntityType extends UniquelyIdentifyable> EntityReference<StoredEntityType>
a(fip arg0, String arg1, drq 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)
m_387613_(C_398549_ p_407222_, String p_395953_, C_1596_ p_395721_)