All Implemented Interfaces:
Cloneable

public class Rotor extends EquipablePart
The Rotor part, used for helicopters.
  • Constructor Details

    • Rotor

      public Rotor()
      Construct a new default Rotor part
    • Rotor

      public Rotor(double xOffset, double yOffset, double zOffset, org.bukkit.inventory.ItemStack skin, HolderItemPosition position)
      Construct a new Rotor part
      Parameters:
      xOffset - The x-offset
      yOffset - The y-offset
      zOffset - The z-offset
      skin - The skin of the rotor
  • Method Details

    • applyExtraOffset

      public org.bukkit.Location applyExtraOffset(org.bukkit.Location loc)
      Description copied from class: Part
      Override this method to apply extra offset.
      Overrides:
      applyExtraOffset in class Part
      Parameters:
      loc - The input location.
      Returns:
      The output location, with the extra offset applied.
    • 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.
      Specified by:
      getPartGUIItem in class Part
      Returns:
      The item to display.
    • asString

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