All Implemented Interfaces:
Cloneable, Controllable

public class BikeSeat extends Seat implements Controllable
  • Constructor Details

    • BikeSeat

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

      public BikeSeat(double xOffset, double yOffset, double zOffset, boolean steer)
      Construct a new seat part
      Parameters:
      xOffset - The x-offset
      yOffset - The y-offset
      zOffset - The z-offset
      steer - Is this a steering seat?
    • BikeSeat

      public BikeSeat(double xOffset, double yOffset, double zOffset, int rotationOffset, boolean steer)
      Construct a new seat part
      Parameters:
      xOffset - The x-offset
      yOffset - The y-offset
      zOffset - The z-offset
      rotationOffset - The rotation offset
      steer - Is this a steering seat?
  • 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
    • 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.
      Overrides:
      getPartGUIItem in class Seat
      Returns:
      The item to display.
    • despawnStand

      public void despawnStand()
      Description copied from class: Part
      Despawn the stand for this part.
      Overrides:
      despawnStand in class Seat
    • isWheelie

      public boolean isWheelie()
      Is this seat doing a wheelie?
    • getExtraYOffset

      public float getExtraYOffset()
      The extra offset to apply (while doing the wheelie)
    • setExtraYOffset

      public void setExtraYOffset(float extraYOffset)
      The extra offset to apply (while doing the wheelie)