Class Rotor
java.lang.Object
nl.sbdeveloper.vehiclesplus.api.vehicles.parts.Part
nl.sbdeveloper.vehiclesplus.api.vehicles.parts.EquipablePart
nl.sbdeveloper.vehiclesplus.api.vehicles.parts.impl.skin.Rotor
- All Implemented Interfaces:
Cloneable
The Rotor part, used for helicopters.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionRotor()
Construct a new default Rotor partRotor
(double xOffset, double yOffset, double zOffset, org.bukkit.inventory.ItemStack skin, HolderItemPosition position) Construct a new Rotor part -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.Location
applyExtraOffset
(org.bukkit.Location loc) Override this method to apply extra offset.asString()
Get the part as string, for the info command.org.bukkit.inventory.ItemStack
The Configuration and Addon GUI will call this method to get the item to display.Methods inherited from class nl.sbdeveloper.vehiclesplus.api.vehicles.parts.EquipablePart
canEqual, clone, equals, getColor, getItem, getPosition, hashCode, isColorable, setColor, setItem, spawnStand, toString, updateHolder
Methods inherited from class nl.sbdeveloper.vehiclesplus.api.vehicles.parts.Part
despawnStand, getHolder, getOwningVehicle, getRotationOffset, getXOffset, getYOffset, getZOffset, isAddon, isSpawned, refresh, setAddon, setRotationOffset, setXOffset, setYOffset, setZOffset
-
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-offsetyOffset
- The y-offsetzOffset
- The z-offsetskin
- 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 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.- Specified by:
getPartGUIItem
in classPart
- Returns:
- The item to display.
-
asString
Description copied from class:Part
Get the part as string, for the info command.
-