@SubscribeEvent public void bonemealEvent(BonemealEvent event) { if (!event.world.isRemote) { if (event.block == BlockRegistry.CANOLA.getBlockInstance()) { World world = event.world; int x = event.x; int y = event.y; int z = event.z; event.setResult(Event.Result.DENY); } } }
@Override public Block getBlock() { return BlockRegistry.CANOLA.getBlockInstance(); }
@Override public IIcon getPlantIcon(int growthStage) { return BlockRegistry.CANOLA.getBlockInstance().getIcon(2, METADATA_CONVERSION[growthStage]); }