Class PortableFluidTank.Item
java.lang.Object
io.github.pylonmc.rebar.item.RebarItem
io.github.pylonmc.pylon.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.rebar.item.RebarItem
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.pylonmc.rebar.item.RebarItem
io.github.pylonmc.rebar.item.RebarItem.Companion -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.bukkit.NamespacedKeystatic final org.bukkit.NamespacedKeyFields inherited from class io.github.pylonmc.rebar.item.RebarItem
Companion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<io.github.pylonmc.rebar.fluid.tags.FluidTemperature> doubledouble@Nullable io.github.pylonmc.rebar.fluid.RebarFluidgetFluid()@NotNull List<io.github.pylonmc.rebar.i18n.RebarArgument> @NotNull io.github.pylonmc.rebar.block.RebarBlockplace(@NotNull io.github.pylonmc.rebar.block.context.BlockCreateContext context) voidsetAmount(double amount) voidsetFluid(@Nullable io.github.pylonmc.rebar.fluid.RebarFluid fluid) 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, prePlace, register, register, suppressNameWarningsMethods inherited from class 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.rebar.fluid.RebarFluid getFluid() -
getAmount
public double getAmount() -
setFluid
public void setFluid(@Nullable @Nullable io.github.pylonmc.rebar.fluid.RebarFluid fluid) -
setAmount
public void setAmount(double amount) -
place
@NotNull public @NotNull io.github.pylonmc.rebar.block.RebarBlock place(@NotNull @NotNull io.github.pylonmc.rebar.block.context.BlockCreateContext context) - Overrides:
placein classio.github.pylonmc.rebar.item.RebarItem
-
getPlaceholders
- Overrides:
getPlaceholdersin classio.github.pylonmc.rebar.item.RebarItem
-
getCapacity
public double getCapacity() -
getAllowedTemperatures
-