use of com.latmod.yabba.tile.TileBarrelBase in project YABBA by LatvianModder.
the class ItemBlockBarrel method addInformation.
@Override
@SideOnly(Side.CLIENT)
public void addInformation(ItemStack stack, @Nullable World world, List<String> tooltip, ITooltipFlag flag) {
if (stack.hasTagCompound() && stack.getTagCompound().hasKey("BlockEntityTag")) {
TileBarrelBase barrel = (TileBarrelBase) block.createTileEntity(world, block.getDefaultState());
barrel.readFromNBT(stack.getTagCompound().getCompoundTag("BlockEntityTag"));
if (block instanceof BlockAdvancedBarrelBase) {
BarrelLook look = barrel.getLook();
tooltip.add(ItemHammer.getModelTooltip(look.model));
tooltip.add(ItemPainter.getSkinTooltip(look.skin));
}
barrel.addInformation(tooltip, flag);
} else if (block instanceof BlockAdvancedBarrelBase) {
tooltip.add(ItemHammer.getModelTooltip(""));
tooltip.add(ItemPainter.getSkinTooltip(""));
}
}
Aggregations