Class DieselBooster
java.lang.Object
io.github.pylonmc.rebar.item.RebarItem
io.github.pylonmc.pylon.content.tools.DieselBooster
- All Implemented Interfaces:
DieselRefuelable, io.github.pylonmc.rebar.item.base.RebarCooldownable, io.github.pylonmc.rebar.item.base.RebarInteractor, net.kyori.adventure.key.Keyed, org.bukkit.Keyed
public class DieselBooster
extends io.github.pylonmc.rebar.item.RebarItem
implements io.github.pylonmc.rebar.item.base.RebarInteractor, DieselRefuelable
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.pylonmc.rebar.item.RebarItem
io.github.pylonmc.rebar.item.RebarItem.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.rebar.item.base.RebarInteractor
io.github.pylonmc.rebar.item.base.RebarInteractor.Companion -
Field Summary
FieldsFields inherited from class io.github.pylonmc.rebar.item.RebarItem
CompanionFields inherited from interface io.github.pylonmc.rebar.item.base.RebarInteractor
Companion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubledouble@NotNull List<@NotNull io.github.pylonmc.rebar.i18n.RebarArgument> voidonUsedToClick(@NotNull org.bukkit.event.player.PlayerInteractEvent event, @NotNull org.bukkit.event.EventPriority priority) voidsetDiesel(double amount) Methods inherited from class io.github.pylonmc.rebar.item.RebarItem
equals, fromStack, fromStack, getAddon, getKey, getRebarBlock, getResearch, getResearchBypassPermission, getSchema, getSettings, getSettings, getStack, hashCode, isDisabled, isRebarItem, isRebarItem, place, prePlace, register, register, suppressNameWarningsMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DieselRefuelable
getDieselFluidSpaceMethods inherited from interface org.bukkit.Keyed
keyMethods inherited from interface io.github.pylonmc.rebar.item.base.RebarCooldownable
respectCooldown
-
Field Details
-
DIESEL_CAPACITY
public static final double DIESEL_CAPACITY -
dieselPerBoost
public final double dieselPerBoost
-
-
Constructor Details
-
DieselBooster
public DieselBooster(@NotNull @NotNull org.bukkit.inventory.ItemStack stack)
-
-
Method Details
-
getPlaceholders
@NotNull public @NotNull List<@NotNull io.github.pylonmc.rebar.i18n.RebarArgument> getPlaceholders()- Overrides:
getPlaceholdersin classio.github.pylonmc.rebar.item.RebarItem
-
onUsedToClick
public void onUsedToClick(@NotNull @NotNull org.bukkit.event.player.PlayerInteractEvent event, @NotNull @NotNull org.bukkit.event.EventPriority priority) - Specified by:
onUsedToClickin interfaceio.github.pylonmc.rebar.item.base.RebarInteractor
-
getDiesel
public double getDiesel()- Specified by:
getDieselin interfaceDieselRefuelable
-
setDiesel
public void setDiesel(double amount) - Specified by:
setDieselin interfaceDieselRefuelable
-
getDieselCapacity
public double getDieselCapacity()- Specified by:
getDieselCapacityin interfaceDieselRefuelable
-