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 Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class io.github.pylonmc.rebar.block.RebarBlock

    io.github.pylonmc.rebar.block.RebarBlock.Companion

    Nested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarInteractBlock

    io.github.pylonmc.rebar.block.base.RebarInteractBlock.Companion

    Nested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarLogisticBlock

    io.github.pylonmc.rebar.block.base.RebarLogisticBlock.Companion
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.bukkit.NamespacedKey
     
    final long
     
    static final org.bukkit.NamespacedKey
     

    Fields inherited from class io.github.pylonmc.rebar.block.RebarBlock

    Companion

    Fields inherited from interface io.github.pylonmc.rebar.block.base.RebarInteractBlock

    Companion

    Fields inherited from interface io.github.pylonmc.rebar.block.base.RebarLogisticBlock

    Companion
  • Constructor Summary

    Constructors
    Constructor
    Description
    Silo(@NotNull org.bukkit.block.Block block, @NotNull io.github.pylonmc.rebar.block.context.BlockCreateContext context)
     
    Silo(@NotNull org.bukkit.block.Block block, @NotNull org.bukkit.persistence.PersistentDataContainer pdc)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    long
     
    @Nullable org.bukkit.inventory.ItemStack
    getDropItem(@NotNull io.github.pylonmc.rebar.block.context.BlockBreakContext context)
     
    @Nullable org.bukkit.inventory.ItemStack
     
    @Nullable io.github.pylonmc.rebar.waila.WailaDisplay
    getWaila(@NotNull org.bukkit.entity.Player player)
     
    void
    onInteract(@NotNull org.bukkit.event.player.PlayerInteractEvent event, @NotNull org.bukkit.event.EventPriority priority)
     
    void
     
    void
    setAmount(long amount)
     
    void
    setStack(@Nullable org.bukkit.inventory.ItemStack stack)
     
    void
    write(@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, writeDebugInfo

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.bukkit.Keyed

    key

    Methods 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:
      write in class io.github.pylonmc.rebar.block.RebarBlock
    • postInitialise

      public void postInitialise()
      Overrides:
      postInitialise in class io.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:
      onInteract in interface io.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:
      getDropItem in class io.github.pylonmc.rebar.block.RebarBlock
    • getWaila

      @Nullable public @Nullable io.github.pylonmc.rebar.waila.WailaDisplay getWaila(@NotNull @NotNull org.bukkit.entity.Player player)
      Overrides:
      getWaila in class io.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)