/** * Returns the location of the ball. * * @return location */ @Override public Location getLocation() { return this.getHitBox().getLocation(); }
/** * Returns the location of the ball. * * @return location */ @Override public Location getLocation() { return this.getHitBox().getLocation(); }
/** * Returns the location of the ball. * * @return location */ @Override public Location getLocation() { return this.getHitBox().getLocation(); }
/** * Returns the location of the ball. * * @return location */ @Override public Location getLocation() { return this.getHitBox().getLocation(); }
/** * Returns the location of the ball. * * @return location */ @Override public Location getLocation() { return this.getHitBox().getLocation(); }
/** * Returns the location of the ball. * * @return location */ @Override public Location getLocation() { return this.getHitBox().getLocation(); }
/** * Returns the location of the ball. * * @return location */ @Override public Location getLocation() { return this.getHitBox().getLocation(); }
private Position getNewLinePosition() { if (this.spawnedEntities.isEmpty()) { return this.position; } else { // get the last entry ArmorStand last = this.spawnedEntities.get(this.spawnedEntities.size() - 1); return Position.of(last.getLocation()).subtract(0.0d, 0.25d, 0.0d); } }
private Position getNewLinePosition() { if (this.spawnedEntities.isEmpty()) { return this.position; } else { // get the last entry ArmorStand last = this.spawnedEntities.get(this.spawnedEntities.size() - 1); return Position.of(last.getLocation()).subtract(0.0d, 0.25d, 0.0d); } }
private Position getNewLinePosition() { if (this.spawnedEntities.isEmpty()) { return this.position; } else { // get the last entry ArmorStand last = this.spawnedEntities.get(this.spawnedEntities.size() - 1).getArmorStand(); return Position.of(last.getLocation()).subtract(0.0d, 0.25d, 0.0d); } }
public void onPlayerArmorStandManipulate(PlayerArmorStandManipulateEvent event) { if (protect && !arena.inEditMode() && region.contains(event.getRightClicked().getLocation())) { event.setCancelled(true); } }
@EventHandler public void onArmorStandManipulate(PlayerArmorStandManipulateEvent event) { Player player = event.getPlayer(); ArmorStand stand = event.getRightClicked(); if (!bitQuest.canBuild(stand.getLocation(), player)) { event.setCancelled(true); } }
private void teleportToHitBox() { final Location loc = this.hitBox.getSpigotEntity().getLocation(); if (this.isSmall()) { this.setPositionRotation(loc.getX(), loc.getY(), loc.getZ(), loc.getYaw(), loc.getPitch()); } else { this.setPositionRotation(loc.getX(), loc.getY() - 1.0, loc.getZ(), loc.getYaw(), loc.getPitch()); } }
private void teleportToHitBox() { final Location loc = this.hitBox.getSpigotEntity().getLocation(); if (this.isSmall()) { this.setPositionRotation(loc.getX(), loc.getY(), loc.getZ(), loc.getYaw(), loc.getPitch()); } else { this.setPositionRotation(loc.getX(), loc.getY() - 1.0, loc.getZ(), loc.getYaw(), loc.getPitch()); } }
private void teleportToHitBox() { final Location loc = this.hitBox.getSpigotEntity().getLocation(); if (this.isSmall()) { this.setPositionRotation(loc.getX(), loc.getY(), loc.getZ(), loc.getYaw(), loc.getPitch()); } else { this.setPositionRotation(loc.getX(), loc.getY() - 1.0, loc.getZ(), loc.getYaw(), loc.getPitch()); } }
private void teleportToHitBox() { final Location loc = this.hitBox.getSpigotEntity().getLocation(); if (this.isSmall()) { this.setPositionRotation(loc.getX(), loc.getY(), loc.getZ(), loc.getYaw(), loc.getPitch()); } else { this.setPositionRotation(loc.getX(), loc.getY() - 1.0, loc.getZ(), loc.getYaw(), loc.getPitch()); } }
private void teleportToHitBox() { final Location loc = this.hitBox.getSpigotEntity().getLocation(); if (this.isSmall()) { this.setPositionRotation(loc.getX(), loc.getY(), loc.getZ(), loc.getYaw(), loc.getPitch()); } else { this.setPositionRotation(loc.getX(), loc.getY() - 1.0, loc.getZ(), loc.getYaw(), loc.getPitch()); } }
private void teleportToHitBox() { final Location loc = this.hitBox.getSpigotEntity().getLocation(); if (this.isSmall()) { this.setPositionRotation(loc.getX(), loc.getY(), loc.getZ(), loc.getYaw(), loc.getPitch()); } else { this.setPositionRotation(loc.getX(), loc.getY() - 1.0, loc.getZ(), loc.getYaw(), loc.getPitch()); } }
private void teleportToHitBox() { final Location loc = this.hitBox.getSpigotEntity().getLocation(); if (this.isSmall()) { this.setPositionRotation(loc.getX(), loc.getY(), loc.getZ(), loc.getYaw(), loc.getPitch()); } else { this.setPositionRotation(loc.getX(), loc.getY() - 1.0, loc.getZ(), loc.getYaw(), loc.getPitch()); } }
private void teleportToHitBox() { final Location loc = this.hitBox.getSpigotEntity().getLocation(); if (this.isSmall()) { this.setPositionRotation(loc.getX(), loc.getY(), loc.getZ(), loc.getYaw(), loc.getPitch()); } else { this.setPositionRotation(loc.getX(), loc.getY() - 1.0, loc.getZ(), loc.getYaw(), loc.getPitch()); } }