Class TurretSeat
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.TurretSeat
- All Implemented Interfaces:
Cloneable,Controllable
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new default TurretSeat part.TurretSeat(double xOffset, double yOffset, double zOffset, int rotationOffset, String controllingTurret) Construct a new TurretSeat part.TurretSeat(double xOffset, double yOffset, double zOffset, String controllingTurret) Construct a new TurretSeat part. -
Method Summary
Modifier and TypeMethodDescriptionasString()Get the part as string, for the info command.The turret that this seat controls.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.Methods inherited from class nl.sbdeveloper.vehiclesplus.api.vehicles.parts.impl.seat.Seat
despawnStand, enter, getGUIItem, getPassenger, isOccupied, isSteer, setGUIItem, setOccupied, setSteerMethods inherited from class nl.sbdeveloper.vehiclesplus.api.vehicles.parts.Part
applyExtraOffset, canEqual, clone, equals, getHolder, getOwningVehicle, getRotationOffset, getXOffset, getYOffset, getZOffset, hashCode, isAddon, isSpawned, refresh, setAddon, setRotationOffset, setXOffset, setYOffset, setZOffset, spawnStand, toString
-
Constructor Details
-
TurretSeat
public TurretSeat()Construct a new default TurretSeat part. -
TurretSeat
Construct a new TurretSeat part.- Parameters:
xOffset- The x-offsetyOffset- The y-offsetzOffset- The z-offsetcontrollingTurret- 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-offsetyOffset- The y-offsetzOffset- The z-offsetrotationOffset- The rotation offsetcontrollingTurret- The turret that this seat controls
-
-
Method Details
-
handleInput
Description copied from interface:ControllableHandle the input of the player.- Specified by:
handleInputin interfaceControllable- Parameters:
input- The input of the player
-
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.
-
asString
Description copied from class:PartGet the part as string, for the info command. -
getControllingTurret
The turret that this seat controls.
-