TileEntityEnderThermicLavaPump.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:ExtraUtilities 作者:
public void readFromNBT(final NBTTagCompound par1NBTTagCompound) {
    super.readFromNBT(par1NBTTagCompound);
    if (par1NBTTagCompound.hasKey("block_no") && par1NBTTagCompound.getTag("block_no") instanceof NBTTagInt) {
        this.b = par1NBTTagCompound.getInteger("block_no");
    }
    else {
        LogHelper.info("Extra Utilities: Problem loading EnderPump TileEntity Tag (block_no)", new Object[0]);
    }
    if (par1NBTTagCompound.hasKey("chunk_no") && par1NBTTagCompound.getTag("chunk_no") instanceof NBTTagByte) {
        this.chunk_no = par1NBTTagCompound.getByte("chunk_no");
    }
    else {
        LogHelper.info("Extra Utilities: Problem loading EnderPump TileEntity Tag (chunk_no)", new Object[0]);
    }
    if (this.chunk_no == -128) {
        this.finished = true;
    }
    else {
        this.setChunk(this.chunk_no);
    }
    this.tank.readFromNBT(par1NBTTagCompound.getCompoundTag("tank"));
    this.init = true;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号