@Override
public NBTTagCompound writeToNBT(NBTTagCompound tag)
{
super.writeToNBT(tag);
tag.setBoolean("hasBase", hasBase);
tag.setInteger("head", head);
tag.setBoolean("hasStand", hasStand);
tag.setBoolean("isOnFloor", isOnFloor);
tag.setInteger("orientation", orientation);
tag.setInteger("sideOn", sideOn);
tag.setString("hatName", hatName);
tag.setInteger("colourR", colourR);
tag.setInteger("colourG", colourG);
tag.setInteger("colourB", colourB);
tag.setInteger("alpha", alpha);
if (this.gameProfile != null)
{
NBTTagCompound nbttagcompound1 = new NBTTagCompound();
NBTUtil.writeGameProfile(nbttagcompound1, this.gameProfile);
tag.setTag("headNameProfile", nbttagcompound1);
}
return tag;
}
TileEntityHatStand.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:Hats
作者:
评论列表
文章目录