@Override
public NBTTagCompound writeToNBT(NBTTagCompound tagCompound) {
tagCompound = super.writeToNBT(tagCompound);
tagCompound.setBoolean(IS_MASTER, isMaster);
NBTTagList slaveList = new NBTTagList();
for (BlockPos slavePos : slaves) {
slaveList.appendTag(new NBTTagLong(slavePos.toLong()));
}
tagCompound.setTag(SLAVES, slaveList);
return tagCompound;
}
ModMultiblockInventoryTileEntity.java 文件源码
java
阅读 15
收藏 0
点赞 0
评论 0
项目:MobTotems
作者:
评论列表
文章目录