Class PortableFluidTank.Item
java.lang.Object
io.github.pylonmc.pylon.core.item.PylonItem
io.github.pylonmc.pylon.base.content.machines.fluid.PortableFluidTank.Item
- All Implemented Interfaces:
net.kyori.adventure.key.Keyed,org.bukkit.Keyed
- Enclosing class:
PortableFluidTank
public static class PortableFluidTank.Item
extends io.github.pylonmc.pylon.core.item.PylonItem
-
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 org.bukkit.NamespacedKeystatic final org.bukkit.NamespacedKeyFields inherited from class io.github.pylonmc.pylon.core.item.PylonItem
Companion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<io.github.pylonmc.pylon.core.fluid.tags.FluidTemperature> doubledouble@Nullable io.github.pylonmc.pylon.core.fluid.PylonFluidgetFluid()@NotNull List<io.github.pylonmc.pylon.core.i18n.PylonArgument> @Nullable io.github.pylonmc.pylon.core.block.PylonBlockplace(@NotNull io.github.pylonmc.pylon.core.block.context.BlockCreateContext context) voidsetAmount(double amount) voidsetFluid(@Nullable io.github.pylonmc.pylon.core.fluid.PylonFluid fluid) 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, register, register, suppressNameWarningsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.Keyed
key
-
Field Details
-
FLUID_AMOUNT_KEY
public static final org.bukkit.NamespacedKey FLUID_AMOUNT_KEY -
FLUID_TYPE_KEY
public static final org.bukkit.NamespacedKey FLUID_TYPE_KEY
-
-
Constructor Details
-
Item
public Item(@NotNull @NotNull org.bukkit.inventory.ItemStack stack)
-
-
Method Details
-
getFluid
@Nullable public @Nullable io.github.pylonmc.pylon.core.fluid.PylonFluid getFluid() -
getAmount
public double getAmount() -
setFluid
public void setFluid(@Nullable @Nullable io.github.pylonmc.pylon.core.fluid.PylonFluid fluid) -
setAmount
public void setAmount(double amount) -
place
@Nullable public @Nullable io.github.pylonmc.pylon.core.block.PylonBlock place(@NotNull @NotNull io.github.pylonmc.pylon.core.block.context.BlockCreateContext context) - Overrides:
placein classio.github.pylonmc.pylon.core.item.PylonItem
-
getPlaceholders
- Overrides:
getPlaceholdersin classio.github.pylonmc.pylon.core.item.PylonItem
-
getCapacity
public double getCapacity() -
getAllowedTemperatures
-