@Override public void d(EntityHuman human) { if (human.locY < super.locY - 1.5 || human.locY > super.locY + 1.0) { // Too low or too high, it's a bit weird. return; } if (parentPiece.getPickupHandler() != null && human instanceof EntityPlayer) { itemPickupManager.handleItemLinePickup((Player) human.getBukkitEntity(), parentPiece.getPickupHandler(), parentPiece.getParent()); // It is never added to the inventory. } }
ItemLine icon = hologram.appendItemLine(new ItemStack(Material.SUGAR)); icon.setPickupHandler(new PickupHandler() {
@Override public void d(EntityHuman human) { if (human.locY < super.locY - 1.5 || human.locY > super.locY + 1.0) { // Too low or too high, it's a bit weird. return; } if (parentPiece.getPickupHandler() != null && human instanceof EntityPlayer) { itemPickupManager.handleItemLinePickup((Player) human.getBukkitEntity(), parentPiece.getPickupHandler(), parentPiece.getParent()); // It is never added to the inventory. } }
@Override public void d(EntityHuman human) { if (human.locY < this.locY - 1.5 || human.locY > this.locY + 1.0) { // Too low or too high, it's a bit weird. return; } if (parentPiece.getPickupHandler() != null && human instanceof EntityPlayer) { itemPickupManager.handleItemLinePickup((Player) human.getBukkitEntity(), parentPiece.getPickupHandler(), parentPiece.getParent()); // It is never added to the inventory. } }
@Override public void d(EntityHuman human) { if (human.locY < super.locY - 1.5 || human.locY > super.locY + 1.0) { // Too low or too high, it's a bit weird. return; } if (parentPiece.getPickupHandler() != null && human instanceof EntityPlayer) { itemPickupManager.handleItemLinePickup((Player) human.getBukkitEntity(), parentPiece.getPickupHandler(), parentPiece.getParent()); // It is never added to the inventory. } }
@Override public void d(EntityHuman human) { if (human.locY < this.locY - 1.5 || human.locY > this.locY + 1.0) { // Too low or too high, it's a bit weird. return; } if (parentPiece.getPickupHandler() != null && human instanceof EntityPlayer) { itemPickupManager.handleItemLinePickup((Player) human.getBukkitEntity(), parentPiece.getPickupHandler(), parentPiece.getParent()); // It is never added to the inventory. } }
@Override public void d(EntityHuman human) { if (human.locY < super.locY - 1.5 || human.locY > super.locY + 1.0) { // Too low or too high, it's a bit weird. return; } if (parentPiece.getPickupHandler() != null && human instanceof EntityPlayer) { itemPickupManager.handleItemLinePickup((Player) human.getBukkitEntity(), parentPiece.getPickupHandler(), parentPiece.getParent()); // It is never added to the inventory. } }
@Override public void d(EntityHuman human) { if (human.locY < super.locY - 1.5 || human.locY > super.locY + 1.0) { // Too low or too high, it's a bit weird. return; } if (parentPiece.getPickupHandler() != null && human instanceof EntityPlayer) { itemPickupManager.handleItemLinePickup((Player) human.getBukkitEntity(), parentPiece.getPickupHandler(), parentPiece.getParent()); // It is never added to the inventory. } }
@Override public void d(EntityHuman human) { if (human.locY < this.locY - 1.5 || human.locY > this.locY + 1.0) { // Too low or too high, it's a bit weird. return; } if (parentPiece.getPickupHandler() != null && human instanceof EntityPlayer) { itemPickupManager.handleItemLinePickup((Player) human.getBukkitEntity(), parentPiece.getPickupHandler(), parentPiece.getParent()); // It is never added to the inventory. } }
@Override public void d(EntityHuman human) { if (human.locY < super.locY - 1.5 || human.locY > super.locY + 1.0) { // Too low or too high, it's a bit weird. return; } if (parentPiece.getPickupHandler() != null && human instanceof EntityPlayer) { itemPickupManager.handleItemLinePickup((Player) human.getBukkitEntity(), parentPiece.getPickupHandler(), parentPiece.getParent()); // It is never added to the inventory. } }
@Override public void d(EntityHuman human) { if (human.locY < super.locY - 1.5 || human.locY > super.locY + 1.0) { // Too low or too high, it's a bit weird. return; } if (parentPiece.getPickupHandler() != null && human instanceof EntityPlayer) { itemPickupManager.handleItemLinePickup((Player) human.getBukkitEntity(), parentPiece.getPickupHandler(), parentPiece.getParent()); // It is never added to the inventory. } }