Package org.spout.vanilla.component.entity.living

Examples of org.spout.vanilla.component.entity.living.Human.dropItem()


        }
      }
    }

    if (state == PlayerDiggingMessage.STATE_DROP_ITEM && x == 0 && y == 0 && z == 0) {
      human.dropItem();
      return;
    }

    boolean isInteractable = true;
    if (blockMaterial == VanillaMaterials.AIR) {
View Full Code Here


            }
          }
        }
        break;
      case PlayerDiggingMessage.STATE_DROP_ITEM:
        human.dropItem();
        break;
      case PlayerDiggingMessage.STATE_SHOOT_ARROW_EAT_FOOD:
        if (heldItem.getMaterial() instanceof Food || heldItem.getMaterial() instanceof PotionItem) {
          player.add(Hunger.class).setEating(false, currentSlot);
        } else if (heldItem.getMaterial() instanceof Sword) {
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.