Examples of PlayerDamageBlockEvent


Examples of keepcalm.mods.events.events.PlayerDamageBlockEvent

    // mcp has ridiculously long names
    if (man.curblockDamage % 2 == 1) {
      return false;
    }
   
    PlayerDamageBlockEvent ev = new PlayerDamageBlockEvent(man.thisPlayerMP, man.partiallyDestroyedBlockX,
        man.partiallyDestroyedBlockY, man.partiallyDestroyedBlockZ,
        man.theWorld, man.curblockDamage, man.durabilityRemainingOnBlock);
   
    MinecraftForge.EVENT_BUS.post(ev);
   
    if (ev.isCanceled()) {
      return true;
    }
    return false;
   
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.