Class HydraulicCannon
java.lang.Object
io.github.pylonmc.pylon.core.item.PylonItem
io.github.pylonmc.pylon.base.content.tools.HydraulicCannon
- All Implemented Interfaces:
HydraulicRefuelable,io.github.pylonmc.pylon.core.item.base.PylonCooldownable,io.github.pylonmc.pylon.core.item.base.PylonInteractor,net.kyori.adventure.key.Keyed,org.bukkit.Keyed
public class HydraulicCannon
extends io.github.pylonmc.pylon.core.item.PylonItem
implements io.github.pylonmc.pylon.core.item.base.PylonInteractor, HydraulicRefuelable
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.pylonmc.pylon.core.item.PylonItem
io.github.pylonmc.pylon.core.item.PylonItem.Companion -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final doublestatic final doublestatic final doublestatic final doublestatic final floatstatic final intstatic final org.bukkit.Materialstatic final floatstatic final floatstatic final intFields inherited from class io.github.pylonmc.pylon.core.item.PylonItem
Companion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubledoubledoubledouble@NotNull List<@NotNull io.github.pylonmc.pylon.core.i18n.PylonArgument> voidonUsedToRightClick(@NotNull org.bukkit.event.player.PlayerInteractEvent event) voidsetDirtyHydraulicFluid(double amount) voidsetHydraulicFluid(double amount) Methods inherited from class io.github.pylonmc.pylon.core.item.PylonItem
equals, fromStack, getAddon, getKey, getPylonBlock, getResearch, getResearchBypassPermission, getSchema, getSettings, getSettings, getStack, hashCode, isDisabled, isPylonItem, place, register, register, suppressNameWarningsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.pylonmc.pylon.base.content.machines.hydraulics.HydraulicRefuelable
getDirtyHydraulicFluidSpace, getHydraulicFluidSpaceMethods inherited from interface org.bukkit.Keyed
keyMethods inherited from interface io.github.pylonmc.pylon.core.item.base.PylonCooldownable
respectCooldown
-
Field Details
-
COOLDOWN_TICKS
public static final int COOLDOWN_TICKS -
HYDRAULIC_FLUID_CAPACITY
public static final double HYDRAULIC_FLUID_CAPACITY -
DIRTY_HYDRAULIC_FLUID_CAPACITY
public static final double DIRTY_HYDRAULIC_FLUID_CAPACITY -
HYDRAULIC_FLUID_PER_SHOT
public static final double HYDRAULIC_FLUID_PER_SHOT -
PROJECTILE_MATERIAL
public static final org.bukkit.Material PROJECTILE_MATERIAL -
PROJECTILE_THICKNESS
public static final float PROJECTILE_THICKNESS -
PROJECTILE_LENGTH
public static final float PROJECTILE_LENGTH -
PROJECTILE_SPEED_BLOCKS_PER_SECOND
public static final float PROJECTILE_SPEED_BLOCKS_PER_SECOND -
PROJECTILE_DAMAGE
public static final double PROJECTILE_DAMAGE -
PROJECTILE_TICK_INTERVAL
public static final int PROJECTILE_TICK_INTERVAL -
PROJECTILE_LIFETIME_TICKS
public static final int PROJECTILE_LIFETIME_TICKS
-
-
Constructor Details
-
HydraulicCannon
public HydraulicCannon(@NotNull @NotNull org.bukkit.inventory.ItemStack stack)
-
-
Method Details
-
getPlaceholders
@NotNull public @NotNull List<@NotNull io.github.pylonmc.pylon.core.i18n.PylonArgument> getPlaceholders()- Overrides:
getPlaceholdersin classio.github.pylonmc.pylon.core.item.PylonItem
-
onUsedToRightClick
public void onUsedToRightClick(@NotNull @NotNull org.bukkit.event.player.PlayerInteractEvent event) - Specified by:
onUsedToRightClickin interfaceio.github.pylonmc.pylon.core.item.base.PylonInteractor
-
getHydraulicFluid
public double getHydraulicFluid()- Specified by:
getHydraulicFluidin interfaceHydraulicRefuelable
-
getDirtyHydraulicFluid
public double getDirtyHydraulicFluid()- Specified by:
getDirtyHydraulicFluidin interfaceHydraulicRefuelable
-
setHydraulicFluid
public void setHydraulicFluid(double amount) - Specified by:
setHydraulicFluidin interfaceHydraulicRefuelable
-
setDirtyHydraulicFluid
public void setDirtyHydraulicFluid(double amount) - Specified by:
setDirtyHydraulicFluidin interfaceHydraulicRefuelable
-
getHydraulicFluidCapacity
public double getHydraulicFluidCapacity()- Specified by:
getHydraulicFluidCapacityin interfaceHydraulicRefuelable
-
getDirtyHydraulicFluidCapacity
public double getDirtyHydraulicFluidCapacity()- Specified by:
getDirtyHydraulicFluidCapacityin interfaceHydraulicRefuelable
-