mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-10 04:08:34 +00:00
Updated foundation classes a bit and added raw access for NBT. This release marks experimental support for custom blocks, and nearly all future Minecraft blocks, and is also the beginning of the gradual transition to the new foundation classes as a replacement of the current BaseBlock, etc. classes.
This commit is contained in:
@ -182,12 +182,12 @@ public class AnvilChunk implements Chunk {
|
||||
* @return
|
||||
* @throws DataException
|
||||
*/
|
||||
private Map<String, Tag> getBlockTileEntity(Vector pos) throws DataException {
|
||||
private CompoundTag getBlockTileEntity(Vector pos) throws DataException {
|
||||
if (tileEntities == null) {
|
||||
populateTileEntities();
|
||||
}
|
||||
|
||||
return tileEntities.get(new BlockVector(pos));
|
||||
return new CompoundTag("", tileEntities.get(new BlockVector(pos)));
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -213,8 +213,8 @@ public class AnvilChunk implements Chunk {
|
||||
}
|
||||
|
||||
if (block instanceof TileEntityBlock) {
|
||||
Map<String, Tag> tileEntity = getBlockTileEntity(pos);
|
||||
((TileEntityBlock) block).fromTileEntityNBT(tileEntity);
|
||||
CompoundTag tileEntity = getBlockTileEntity(pos);
|
||||
((TileEntityBlock) block).setNbtData(tileEntity);
|
||||
}
|
||||
|
||||
return block;
|
||||
|
Reference in New Issue
Block a user