/** * Closes the inventory view. */ public final void close() { getPlayer().closeInventory(); }
@Override public void run() { player.closeInventory(); } }.runTask(plugin);
@Override public void closeInventory() { he.closeInventory(); }
public void close() { if (transaction.size() > 0) { for (HumanEntity humanEntity : new ArrayList<>(transaction)) { humanEntity.closeInventory(); } } }
@Override public SpellResult perform(CastContext castContext) { Entity targetEntity = castContext.getTargetEntity(); if (!(targetEntity instanceof HumanEntity)) { return SpellResult.NO_TARGET; } ((HumanEntity) targetEntity).closeInventory(); return SpellResult.CAST; } }
@Override public void close() { List<HumanEntity> viewers = new ArrayList<>(getViewers()); for (HumanEntity viewer : viewers) { viewer.closeInventory(); } minecraftInventory = null; }
/** * Closes the inventory view. */ public final void close() { getPlayer().closeInventory(); }
public void closeAll() { for (HumanEntity entity : ImmutableList.copyOf(inventory.getViewers())) { entity.closeInventory(); } }
public void close() { for(HumanEntity human: new ArrayList<>(toInventory().getViewers())) { human.closeInventory(); } }
public void close() { for(HumanEntity human: new ArrayList<>(toInventory().getViewers())) { human.closeInventory(); } }
public void clearInventory(Location l) { BlockMenu menu = getInventory(l); for (HumanEntity human: new ArrayList<>(menu.toInventory().getViewers())) { human.closeInventory(); } inventories.get(l).delete(l); inventories.remove(l); }
/** * Drops the ball on inventory click. * * @param event event */ @EventHandler public void onInventoryOpen(InventoryClickEvent event) { for (final Ball ball : this.ballController.getAll()) { if (ball.isGrabbed() && ball.getLastInteractionEntity() != null && ball.getLastInteractionEntity().equals(event.getWhoClicked())) { ball.deGrab(); event.setCancelled(true); ((Player) event.getWhoClicked()).updateInventory(); event.getWhoClicked().closeInventory(); } } }
event.getWhoClicked().closeInventory(); return;
event.getWhoClicked().closeInventory(); return;
HumanEntity he = event.getWhoClicked(); if (he.getInventory().firstEmpty() < 0) { he.closeInventory(); he.getWorld().dropItem(he.getEyeLocation(), result); break;