Package net.minecraftforge.event.entity.player

Examples of net.minecraftforge.event.entity.player.ArrowNockEvent


  }

  @Override
  public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {

    ArrowNockEvent event = new ArrowNockEvent(player, stack);
    MinecraftForge.EVENT_BUS.post(event);
    if (event.isCanceled()) {
      return event.result;
    }
    if (player.capabilities.isCreativeMode || player.inventory.hasItem(Items.arrow)) {
      player.setItemInUse(stack, this.getMaxItemUseDuration(stack));
    }
View Full Code Here

TOP

Related Classes of net.minecraftforge.event.entity.player.ArrowNockEvent

Copyright © 2018 www.massapicom. 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.