classinternalSource
public class EntityData

Wraps 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
rootNbtCompound

Methods

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
entityDataNbtCompound
Returns
EntityEntity wrapped as an Entity or LivingEntity depending on whether it carries "Health".
public List<Entity> entities()
Returns
List<Entity>
public NbtCompound raw()

Used by

Methods of other types that accept or return EntityData.