Class BikeSkin
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.Skin
nl.sbdeveloper.vehiclesplus.api.vehicles.parts.impl.skin.BikeSkin
- All Implemented Interfaces:
Cloneable
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBikeSkin()
Construct a new default BikeSkin part.BikeSkin
(double xOffset, double yOffset, double zOffset, org.bukkit.inventory.ItemStack skin, HolderItemPosition position) Construct a new Skin part -
Method Summary
Modifier and TypeMethodDescriptionvoid
Updates the position of the skin based on the wheelie offsetorg.bukkit.inventory.ItemStack
The Configuration and Addon GUI will call this method to get the item to display.int
The wheelie offset of the skinvoid
setWheelieOffset
(int wheelieOffset) The wheelie offset of the skintoString()
Methods inherited from class nl.sbdeveloper.vehiclesplus.api.vehicles.parts.EquipablePart
canEqual, clone, equals, getColor, getItem, getPosition, hashCode, isColorable, setColor, setItem, spawnStand, updateHolder
Methods inherited from class nl.sbdeveloper.vehiclesplus.api.vehicles.parts.Part
applyExtraOffset, despawnStand, getHolder, getOwningVehicle, getRotationOffset, getXOffset, getYOffset, getZOffset, isAddon, isSpawned, refresh, setAddon, setRotationOffset, setXOffset, setYOffset, setZOffset
-
Constructor Details
-
BikeSkin
public BikeSkin()Construct a new default BikeSkin part. -
BikeSkin
public BikeSkin(double xOffset, double yOffset, double zOffset, org.bukkit.inventory.ItemStack skin, HolderItemPosition position) Construct a new Skin part- Parameters:
xOffset
- The x-offsetyOffset
- The y-offsetzOffset
- The z-offsetskin
- The skin of the rotor
-
-
Method Details
-
applyWheelieOffset
public void applyWheelieOffset()Updates the position of the skin based on the wheelie offset -
toString
- Overrides:
toString
in classEquipablePart
-
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 classSkin
- Returns:
- The item to display.
-
getWheelieOffset
public int getWheelieOffset()The wheelie offset of the skin -
setWheelieOffset
public void setWheelieOffset(int wheelieOffset) The wheelie offset of the skin
-