Class RimDesign
java.lang.Object
nl.sbdeveloper.vehiclesplus.api.vehicles.rims.RimDesign
- All Implemented Interfaces:
Savable
A rim design.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RimDesign
(String name, org.bukkit.inventory.ItemStack skin, HolderItemPosition position, float price) Creates a newRimDesign
instance. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
The name of the rim design.The position of the rim on the armorstand.float
getPrice()
The price of the rim.org.bukkit.inventory.ItemStack
getSkin()
The skin of the rim (applied to the wheels).void
save()
Save the rim design.void
The name of the rim design.void
setPosition
(HolderItemPosition position) The position of the rim on the armorstand.void
setPrice
(float price) The price of the rim.void
setSkin
(org.bukkit.inventory.ItemStack skin) The skin of the rim (applied to the wheels).
-
Constructor Details
-
RimDesign
public RimDesign(String name, org.bukkit.inventory.ItemStack skin, HolderItemPosition position, float price) Creates a newRimDesign
instance.- Parameters:
name
- The name of the rim design.skin
- The skin of the rim (applied to the wheels).position
- The position of the rim on the armorstand.price
- The price of the rim.
-
RimDesign
protected RimDesign()
-
-
Method Details
-
save
public void save()Save the rim design. -
getName
The name of the rim design. -
getSkin
public org.bukkit.inventory.ItemStack getSkin()The skin of the rim (applied to the wheels). -
getPosition
The position of the rim on the armorstand. -
getPrice
public float getPrice()The price of the rim. -
setName
The name of the rim design. -
setSkin
public void setSkin(org.bukkit.inventory.ItemStack skin) The skin of the rim (applied to the wheels). -
setPosition
The position of the rim on the armorstand. -
setPrice
public void setPrice(float price) The price of the rim.
-