IDyeableItem dyeable = (((holding != null) && (holding.getItem() instanceof IDyeableItem))
? (IDyeableItem)holding.getItem() : null);
if ((dyeable != null) && (dyeable.canDye(holding))) {
StackUtils.remove(holding, "display", "color");
world.setBlockMetadataWithNotify(x, y, z, metadata - 1, 2);
world.func_147453_f(x, y, z, block);
event.useBlock = Result.DENY;
event.useItem = Result.DENY;
}
}