All Implemented Interfaces:
Cloneable, Controllable

public class TurretSeat extends Seat implements Controllable
  • Constructor Details

    • TurretSeat

      public TurretSeat()
      Construct a new default TurretSeat part.
    • TurretSeat

      public TurretSeat(double xOffset, double yOffset, double zOffset, String controllingTurret)
      Construct a new TurretSeat part.
      Parameters:
      xOffset - The x-offset
      yOffset - The y-offset
      zOffset - The z-offset
      controllingTurret - The turret that this seat controls
    • TurretSeat

      public TurretSeat(double xOffset, double yOffset, double zOffset, int rotationOffset, String controllingTurret)
      Construct a new TurretSeat part.
      Parameters:
      xOffset - The x-offset
      yOffset - The y-offset
      zOffset - The z-offset
      rotationOffset - The rotation offset
      controllingTurret - The turret that this seat controls
  • Method Details

    • handleInput

      public void handleInput(MovementInput input)
      Description copied from interface: Controllable
      Handle the input of the player.
      Specified by:
      handleInput in interface Controllable
      Parameters:
      input - The input of the player
    • getPartGUIItem

      public org.bukkit.inventory.ItemStack getPartGUIItem()
      Description copied from class: Part
      The Configuration and Addon GUI will call this method to get the item to display.
      Overrides:
      getPartGUIItem in class Seat
      Returns:
      The item to display.
    • asString

      public String asString()
      Description copied from class: Part
      Get the part as string, for the info command.
      Overrides:
      asString in class Seat
      Returns:
      The part as string.
    • getControllingTurret

      public String getControllingTurret()
      The turret that this seat controls.