public class EntityDataWraps an entities/*.mca chunk's raw NBT
Each element of Entities is wrapped as a LivingEntity if it carries the
"Health" field (the simplest reliable marker that separates living entities from
items/minecarts/...), or a plain Entity otherwise.
Constructors
public EntityData(NbtCompound root)| Parameters | ||
|---|---|---|
root | NbtCompound | |
Methods
Entity addEntity(NbtCompound)Adds a new entity to this chunk's entity list, wiring it into
both the in-memory list and the underlying NBT.List<Entity> entities()NbtCompound raw()public Entity addEntity(NbtCompound entityData)Adds a new entity to this chunk's entity list, wiring it into
both the in-memory list and the underlying NBT.
| Parameters | ||
|---|---|---|
entityData | NbtCompound | |
| Returns | ||
Entity | Entity wrapped as an Entity or LivingEntity depending on whether it carries "Health". | |
public List<Entity> entities()public NbtCompound raw()| Returns | ||
|---|---|---|
NbtCompound | ||
Used by
Methods of other types that accept or return EntityData.