Examples of dropItem()


Examples of npc.model.SquashInstance.dropItem()

      for(L2DropData d : _dropList)
      {
        GArray<ItemToDrop> itd = d.roll(null, dropMod, false);
        for(ItemToDrop i : itd)
        {
          actor.dropItem(actor.getSpawner(), i.itemId, i.count);
        }
      }
    }
  }
View Full Code Here

Examples of org.bukkit.World.dropItem()

        stack = ItemUtil.makeItemValid(stack);
        if(context.hasFlag('a'))
            stack.setAmount(stack.getAmount() * context.getFlagInteger('a', 1));

        world.dropItem(new Location(world, context.getInteger(1), context.getInteger(2), context.getInteger(3)), stack);

        if(!context.hasFlag('s'))
            sender.sendMessage(ChatColor.YELLOW + "Spawned CommandItem " + ChatColor.BLUE + def.getName() + ChatColor.YELLOW + " at " + new Location(world, context.getInteger(1), context.getInteger(2), context.getInteger(3)).toString());
    }

View Full Code Here

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

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

            }
          }
        }
        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.