类 EntityReference<StoredEntityType extends UniquelyIdentifyable>
java.lang.Object
net.minecraft.world.entity.EntityReference<StoredEntityType>
-
字段概要
字段修饰符和类型字段说明private static final com.mojang.serialization.Codec
<? extends EntityReference<?>> private com.mojang.datafixers.util.Either
<UUID, StoredEntityType> private static final StreamCodec
<io.netty.buffer.ByteBuf, ? extends EntityReference<?>> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static <Type extends UniquelyIdentifyable>
com.mojang.serialization.Codec<EntityReference<Type>> codec()
boolean
static <StoredEntityType extends UniquelyIdentifyable>
StoredEntityTypeget
(EntityReference<StoredEntityType> p_393467_, UUIDLookup<? super StoredEntityType> p_393924_, Class<StoredEntityType> p_394473_) getEntity
(UUIDLookup<? super StoredEntityType> p_394375_, Class<StoredEntityType> p_394097_) getUUID()
int
hashCode()
boolean
matches
(StoredEntityType p_394272_) static <StoredEntityType extends UniquelyIdentifyable>
EntityReference<StoredEntityType> read
(ValueInput p_421654_, String p_394012_) static <StoredEntityType extends UniquelyIdentifyable>
EntityReference<StoredEntityType> readWithOldOwnerConversion
(ValueInput p_422383_, String p_394543_, Level p_393661_) private StoredEntityType
resolve
(UniquelyIdentifyable p_394069_, Class<StoredEntityType> p_394131_) static void
store
(EntityReference<?> p_423520_, ValueOutput p_423510_, String p_423668_) void
store
(ValueOutput p_422692_, String p_393486_) static <Type extends UniquelyIdentifyable>
StreamCodec<io.netty.buffer.ByteBuf, EntityReference<Type>>
-
字段详细资料
-
CODEC
-
STREAM_CODEC
-
entity
private com.mojang.datafixers.util.Either<UUID,StoredEntityType extends UniquelyIdentifyable> entity
-
-
构造器详细资料
-
EntityReference
-
EntityReference
-
-
方法详细资料
-
codec
public static <Type extends UniquelyIdentifyable> com.mojang.serialization.Codec<EntityReference<Type>> codec() -
streamCodec
public static <Type extends UniquelyIdentifyable> StreamCodec<io.netty.buffer.ByteBuf,EntityReference<Type>> streamCodec() -
getUUID
-
getEntity
@Nullable public StoredEntityType getEntity(UUIDLookup<? super StoredEntityType> p_394375_, Class<StoredEntityType> p_394097_) -
resolve
@Nullable private StoredEntityType resolve(@Nullable UniquelyIdentifyable p_394069_, Class<StoredEntityType> p_394131_) -
matches
-
store
-
store
public static void store(@Nullable EntityReference<?> p_423520_, ValueOutput p_423510_, String p_423668_) -
get
@Nullable public static <StoredEntityType extends UniquelyIdentifyable> StoredEntityType get(@Nullable EntityReference<StoredEntityType> p_393467_, UUIDLookup<? super StoredEntityType> p_393924_, Class<StoredEntityType> p_394473_) -
read
@Nullable public static <StoredEntityType extends UniquelyIdentifyable> EntityReference<StoredEntityType> read(ValueInput p_421654_, String p_394012_) -
readWithOldOwnerConversion
@Nullable public static <StoredEntityType extends UniquelyIdentifyable> EntityReference<StoredEntityType> readWithOldOwnerConversion(ValueInput p_422383_, String p_394543_, Level p_393661_) -
equals
-
hashCode
public int hashCode()
-