Class Silo
java.lang.Object
io.github.pylonmc.rebar.block.RebarBlock
io.github.pylonmc.pylon.content.machines.storage.Silo
- All Implemented Interfaces:
io.github.pylonmc.rebar.block.base.RebarInteractBlock, io.github.pylonmc.rebar.block.base.RebarLogisticBlock, net.kyori.adventure.key.Keyed, org.bukkit.Keyed
public class Silo
extends io.github.pylonmc.rebar.block.RebarBlock
implements io.github.pylonmc.rebar.block.base.RebarLogisticBlock, io.github.pylonmc.rebar.block.base.RebarInteractBlock
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.github.pylonmc.rebar.block.RebarBlock
io.github.pylonmc.rebar.block.RebarBlock.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarInteractBlock
io.github.pylonmc.rebar.block.base.RebarInteractBlock.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarLogisticBlock
io.github.pylonmc.rebar.block.base.RebarLogisticBlock.Companion -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.bukkit.NamespacedKeyfinal longstatic final org.bukkit.NamespacedKeyFields inherited from class io.github.pylonmc.rebar.block.RebarBlock
CompanionFields inherited from interface io.github.pylonmc.rebar.block.base.RebarInteractBlock
CompanionFields inherited from interface io.github.pylonmc.rebar.block.base.RebarLogisticBlock
Companion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglong@Nullable org.bukkit.inventory.ItemStackgetDropItem(@NotNull io.github.pylonmc.rebar.block.context.BlockBreakContext context) @Nullable org.bukkit.inventory.ItemStackgetStack()@Nullable io.github.pylonmc.rebar.waila.WailaDisplaygetWaila(@NotNull org.bukkit.entity.Player player) voidonInteract(@NotNull org.bukkit.event.player.PlayerInteractEvent event, @NotNull org.bukkit.event.EventPriority priority) voidvoidsetAmount(long amount) voidsetStack(@Nullable org.bukkit.inventory.ItemStack stack) voidwrite(@NotNull org.bukkit.persistence.PersistentDataContainer pdc) Methods inherited from class io.github.pylonmc.rebar.block.RebarBlock
getBlock, getBlockTextureEntity, getBlockTextureItem, getBlockTextureProperties, getDefaultItem, getDefaultWailaTranslationKey, getDisableBlockTextureEntity, getKey, getLoreTranslationKey, getNameTranslationKey, getPickItem, getRebarBlock, getRebarBlockKeyKey, getRebarBlockPositionKey, getRebarBlockTextureEntityKey, getSchema, getSettings, isVanillaBlock, postLoad, refreshBlockTextureItem, register, scheduleBlockTextureItemRefresh, setDisableBlockTextureEntity, setupBlockTexture, writeDebugInfoMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.Keyed
keyMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarLogisticBlock
createLogisticGroup, createLogisticGroup, createLogisticGroup, createLogisticGroup, getBlock, getLogisticGroup, getLogisticGroupOrThrow, getLogisticGroups
-
Field Details
-
STACK_KEY
public static final org.bukkit.NamespacedKey STACK_KEY -
AMOUNT_KEY
public static final org.bukkit.NamespacedKey AMOUNT_KEY -
capacityStacks
public final long capacityStacks
-
-
Constructor Details
-
Silo
public Silo(@NotNull @NotNull org.bukkit.block.Block block, @NotNull @NotNull io.github.pylonmc.rebar.block.context.BlockCreateContext context) -
Silo
public Silo(@NotNull @NotNull org.bukkit.block.Block block, @NotNull @NotNull org.bukkit.persistence.PersistentDataContainer pdc)
-
-
Method Details
-
write
public void write(@NotNull @NotNull org.bukkit.persistence.PersistentDataContainer pdc) - Overrides:
writein classio.github.pylonmc.rebar.block.RebarBlock
-
postInitialise
public void postInitialise()- Overrides:
postInitialisein classio.github.pylonmc.rebar.block.RebarBlock
-
onInteract
public void onInteract(@NotNull @NotNull org.bukkit.event.player.PlayerInteractEvent event, @NotNull @NotNull org.bukkit.event.EventPriority priority) - Specified by:
onInteractin interfaceio.github.pylonmc.rebar.block.base.RebarInteractBlock
-
getDropItem
@Nullable public @Nullable org.bukkit.inventory.ItemStack getDropItem(@NotNull @NotNull io.github.pylonmc.rebar.block.context.BlockBreakContext context) - Overrides:
getDropItemin classio.github.pylonmc.rebar.block.RebarBlock
-
getWaila
@Nullable public @Nullable io.github.pylonmc.rebar.waila.WailaDisplay getWaila(@NotNull @NotNull org.bukkit.entity.Player player) - Overrides:
getWailain classio.github.pylonmc.rebar.block.RebarBlock
-
getCapacityItems
public long getCapacityItems() -
getStack
@Nullable public @Nullable org.bukkit.inventory.ItemStack getStack() -
setStack
public void setStack(@Nullable @Nullable org.bukkit.inventory.ItemStack stack) -
getAmount
public long getAmount() -
setAmount
public void setAmount(long amount)
-