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.LocationapplyExtraOffset(org.bukkit.Location loc) Override this method to apply extra offset.voidDespawn the stand for this part.floatThe extra offset to apply (while doing the wheelie)org.bukkit.inventory.ItemStackThe Configuration and Addon GUI will call this method to get the item to display.voidhandleInput(MovementInput input) Handle the input of the player.booleanIs this seat doing a wheelie?voidsetExtraYOffset(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, setSteerMethods 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:ControllableHandle the input of the player.- Specified by:
handleInputin interfaceControllable- Parameters:
input- The input of the player
-
applyExtraOffset
public org.bukkit.Location applyExtraOffset(org.bukkit.Location loc) Description copied from class:PartOverride this method to apply extra offset.- Overrides:
applyExtraOffsetin 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:PartThe Configuration and Addon GUI will call this method to get the item to display.- Overrides:
getPartGUIItemin classSeat- Returns:
- The item to display.
-
despawnStand
public void despawnStand()Description copied from class:PartDespawn the stand for this part.- Overrides:
despawnStandin 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)
-