Esempio n. 1
0
 @Override
 public void onBlockPlacedBy(
     World world, int x, int y, int z, EntityLivingBase entityLiving, ItemStack itemStack) {
   super.onBlockPlacedBy(world, x, y, z, entityLiving, itemStack);
   ((TileEntityTent) world.getBlockTileEntity(x, y, z))
       .setColor(itemStack.hasTagCompound() ? itemStack.getTagCompound().getInteger("color") : 15);
   ;
 }