public static IBlockState Block$getBlockFromItem_stack$getItem___$getStateFromMeta_stack$getMetadata___(ItemStack paintSource, Block paintBlock) { if (paintSource.getItem().getClass() == ItemPiston.class) { // Vanilla bug. ItemPiston returns an invalid block meta. return paintBlock.getDefaultState(); } return paintBlock.getStateFromMeta(paintSource.getItem().getMetadata(paintSource.getMetadata())); }
@Override public ItemStack getIconItemStack() { return new ItemStack(new ItemPiston(Blocks.sticky_piston)); }