classinternalSource
public class PoiData

Wraps a poi/*.mca chunk's raw NBT

Constructors

public PoiData(NbtCompound root)
Parameters
rootNbtCompound

Methods

public PoiRecord addRecord(int sectionY, int x, int y, int z, String type, int freeTickets)
Adds a new POI record to the given section y, creating that section (with Valid=true) if it doesn't exist in this chunk. Links the POI to both in memory list and to the NBT.
Parameters
sectionYint
xint
yint
zint
typeString
freeTicketsint
Returns
PoiRecord
public NbtCompound raw()
public List<PoiRecord> records()
All POI records across every section in this chunk.
Returns
List<PoiRecord>
public List<PoiRecord> records(int sectionY)
POI records within just one section Y, or an empty list if that section has none
Parameters
sectionYint
Returns
List<PoiRecord>

Used by

Methods of other types that accept or return PoiData.