Class BikeSeat
java.lang.Object
nl.sbdeveloper.vehiclesplus.api.vehicles.parts.Part
nl.sbdeveloper.vehiclesplus.api.vehicles.parts.impl.seat.Seat
nl.sbdeveloper.vehiclesplus.api.vehicles.parts.impl.seat.BikeSeat
- All Implemented Interfaces:
Cloneable
,Controllable
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.Location
applyExtraOffset
(org.bukkit.Location loc) Override this method to apply extra offset.void
Despawn the stand for this part.float
The extra offset to apply (while doing the wheelie)org.bukkit.inventory.ItemStack
The Configuration and Addon GUI will call this method to get the item to display.void
handleInput
(MovementInput input) Handle the input of the player.boolean
Is this seat doing a wheelie?void
setExtraYOffset
(float extraYOffset) The extra offset to apply (while doing the wheelie)Methods inherited from class nl.sbdeveloper.vehiclesplus.api.vehicles.parts.impl.seat.Seat
asString, enter, getGUIItem, getPassenger, isOccupied, isSteer, setGUIItem, setOccupied, setSteer
Methods inherited from class nl.sbdeveloper.vehiclesplus.api.vehicles.parts.Part
canEqual, clone, equals, getHolder, getOwningVehicle, getRotationOffset, getXOffset, getYOffset, getZOffset, hashCode, isAddon, isSpawned, refresh, setAddon, setRotationOffset, setXOffset, setYOffset, setZOffset, spawnStand, toString
-
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-offsetyOffset
- The y-offsetzOffset
- The z-offsetsteer
- 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-offsetyOffset
- The y-offsetzOffset
- The z-offsetrotationOffset
- The rotation offsetsteer
- Is this a steering seat?
-
-
Method Details
-
handleInput
Description copied from interface:Controllable
Handle the input of the player.- Specified by:
handleInput
in interfaceControllable
- 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 classPart
- 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 classSeat
- Returns:
- The item to display.
-
despawnStand
public void despawnStand()Description copied from class:Part
Despawn the stand for this part.- Overrides:
despawnStand
in classSeat
-
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)
-