예제 #1
0
 @Override
 public void load(GlowItem entity, CompoundTag compound) {
   if (compound.getValue().containsKey("Item")) {
     ItemStack stack = readItemStack((CompoundTag) compound.getValue().get("Item"));
     entity.setItemStack(stack);
   }
   if (compound.getValue().containsKey("Health")) {
     // item.setHealth(((IntTag)compound.getValue().get("Health")).getValue());
   }
   if (compound.getValue().containsKey("Age")) {
     // item.setAge(((IntTag)compound.getValue().get("Age")).getValue());
   }
 }