@Override
public void readNBT(Capability<IAnimaStorage> capability, IAnimaStorage instance, EnumFacing side, NBTBase nbt)
{
if(!(instance instanceof AnimaStorage))
throw new IllegalArgumentException("Can not deserialize to an instance that isn't the default implementation");
((AnimaStorage) instance).energy = ((NBTTagInt) nbt).getInt();
}
CapabilityAnima.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:Anima-Mundi
作者:
评论列表
文章目录