Interface EntityLoadData
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.
-