Interface EntityLoadData
- All Known Implementing Classes:
net.minecraft.world.entity.Avatar, net.minecraft.world.entity.Entity, FakePlayer, net.minecraft.world.entity.LivingEntity, net.minecraft.world.entity.player.Player, net.minecraft.server.level.ServerPlayer
public interface EntityLoadData
Represents extra load data for an
Entity.-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault @Nullable net.minecraft.world.entity.EntitySpawnReason
-
Method Details
-
spawnReason
default @Nullable net.minecraft.world.entity.EntitySpawnReason spawnReason()- Returns:
- The
EntitySpawnReason, which can be null. On the client, this is almost alwaysEntitySpawnReason.LOAD.
-
isLoadedFromDisk
default boolean isLoadedFromDisk()- Returns:
- true if the entity was loaded from disk. On the client, this is always false.
-