DialUp

Ebony_Bonemeal_Event

Jan 2nd, 2015
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1. package net.brandoncow.mod.event;
  2.  
  3. import net.brandoncow.mod.BrandonCoW;
  4. import net.brandoncow.mod.block.SaplingEbony;
  5. import net.minecraftforge.event.ForgeSubscribe;
  6. import net.minecraftforge.event.entity.player.BonemealEvent;
  7.  
  8. public class Ebony_Bonemeal_Event {
  9.     @ForgeSubscribe
  10.     public void usedBonemeal(BonemealEvent event){
  11.         if(event.ID == BrandonCoW.ebonySapling.blockID){
  12.             if(!event.world.isRemote){
  13.                 ((SaplingEbony)BrandonCoW.ebonySapling).growTree(event.world, event.X, event.Y, event.Z, event.world.rand);
  14.             }
  15.         }
  16.     }
  17.    
  18. }
Advertisement
Add Comment
Please, Sign In to add comment