예제 #1
0
 @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);
     }
   }
 }
예제 #2
0
 @Override
 public Block getBlock() {
   return BlockRegistry.CANOLA.getBlockInstance();
 }
예제 #3
0
 @Override
 public IIcon getPlantIcon(int growthStage) {
   return BlockRegistry.CANOLA.getBlockInstance().getIcon(2, METADATA_CONVERSION[growthStage]);
 }