}
Object[] sections = ChunkRef.getSections(CommonNMS.getNative(chunk));
final int secIndex = y >> 4;
Object section = sections[secIndex];
if (section == null) {
section = sections[secIndex] = new ChunkSection(y >> 4 << 4, !CommonNMS.getNative(chunk.getWorld()).worldProvider.g);
}
ChunkSectionRef.setTypeId(section, x, y, z, typeId);
ChunkSectionRef.setData(section, x, y, z, data);
}