Class VacuumHopper

java.lang.Object
io.github.pylonmc.rebar.block.RebarBlock
io.github.pylonmc.pylon.content.machines.simple.VacuumHopper
All Implemented Interfaces:
io.github.pylonmc.rebar.block.base.RebarBreakHandler, io.github.pylonmc.rebar.block.base.RebarInventoryBlock, io.github.pylonmc.rebar.block.base.RebarNoVanillaInventoryBlock, io.github.pylonmc.rebar.block.base.RebarTickingBlock, io.github.pylonmc.rebar.block.base.RebarVanillaInventoryBlock, io.github.pylonmc.rebar.block.base.RebarVirtualInventoryBlock, net.kyori.adventure.key.Keyed, org.bukkit.Keyed

public class VacuumHopper extends io.github.pylonmc.rebar.block.RebarBlock implements io.github.pylonmc.rebar.block.base.RebarTickingBlock, io.github.pylonmc.rebar.block.base.RebarInventoryBlock, io.github.pylonmc.rebar.block.base.RebarVirtualInventoryBlock
  • Nested Class Summary

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

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

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

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

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

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

    Fields
    Modifier and Type
    Field
    Description
    final io.github.pylonmc.rebar.item.builder.ItemStackBuilder
     
    final int
     
    final int
     
    boolean
     
    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.RebarInventoryBlock

    Companion

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

    Companion

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

    Companion
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    @NotNull xyz.xenondevs.invui.gui.Gui
     
    @NotNull xyz.xenondevs.invui.inventory.VirtualInventory
     
    @NotNull xyz.xenondevs.invui.inventory.Inventory
     
    @NotNull Map<@NotNull String, @NotNull xyz.xenondevs.invui.inventory.VirtualInventory>
     
    boolean
    isFiltered(@NotNull org.bukkit.inventory.ItemStack item)
     
    void
    onBreak(@NotNull List<@NotNull org.bukkit.inventory.ItemStack> drops, @NotNull io.github.pylonmc.rebar.block.context.BlockBreakContext context)
     
    void
    onItemMoveFrom(@NotNull org.bukkit.event.inventory.InventoryMoveItemEvent event, @NotNull org.bukkit.event.EventPriority priority)
     
    void
    onItemMoveTo(@NotNull org.bukkit.event.inventory.InventoryMoveItemEvent event, @NotNull org.bukkit.event.EventPriority priority)
     
    void
     
    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, getDropItem, getKey, getLoreTranslationKey, getNameTranslationKey, getPickItem, getRebarBlock, getRebarBlockKeyKey, getRebarBlockPositionKey, getRebarBlockTextureEntityKey, getSchema, getSettings, getWaila, isVanillaBlock, postInitialise, 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.RebarBreakHandler

    postBreak, preBreak

    Methods inherited from interface io.github.pylonmc.rebar.block.base.RebarInventoryBlock

    getGuiTitle

    Methods inherited from interface io.github.pylonmc.rebar.block.base.RebarNoVanillaInventoryBlock

    onInventoryOpen

    Methods inherited from interface io.github.pylonmc.rebar.block.base.RebarTickingBlock

    getTickInterval, isAsync, setAsync, setTickInterval
  • Field Details

    • WHITELIST_KEY

      public static final org.bukkit.NamespacedKey WHITELIST_KEY
    • whitelist

      public boolean whitelist
    • radius

      public final int radius
    • tickInterval

      public final int tickInterval
    • filterGuiStack

      public final io.github.pylonmc.rebar.item.builder.ItemStackBuilder filterGuiStack
  • Constructor Details

    • VacuumHopper

      public VacuumHopper(@NotNull @NotNull org.bukkit.block.Block block, @NotNull @NotNull io.github.pylonmc.rebar.block.context.BlockCreateContext context)
    • VacuumHopper

      public VacuumHopper(@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
    • getVirtualInventories

      @NotNull public @NotNull Map<@NotNull String, @NotNull xyz.xenondevs.invui.inventory.VirtualInventory> getVirtualInventories()
      Specified by:
      getVirtualInventories in interface io.github.pylonmc.rebar.block.base.RebarVirtualInventoryBlock
    • onItemMoveTo

      public void onItemMoveTo(@NotNull @NotNull org.bukkit.event.inventory.InventoryMoveItemEvent event, @NotNull @NotNull org.bukkit.event.EventPriority priority)
      Specified by:
      onItemMoveTo in interface io.github.pylonmc.rebar.block.base.RebarNoVanillaInventoryBlock
      Specified by:
      onItemMoveTo in interface io.github.pylonmc.rebar.block.base.RebarVanillaInventoryBlock
    • onItemMoveFrom

      public void onItemMoveFrom(@NotNull @NotNull org.bukkit.event.inventory.InventoryMoveItemEvent event, @NotNull @NotNull org.bukkit.event.EventPriority priority)
      Specified by:
      onItemMoveFrom in interface io.github.pylonmc.rebar.block.base.RebarNoVanillaInventoryBlock
      Specified by:
      onItemMoveFrom in interface io.github.pylonmc.rebar.block.base.RebarVanillaInventoryBlock
    • onBreak

      public void onBreak(@NotNull @NotNull List<@NotNull org.bukkit.inventory.ItemStack> drops, @NotNull @NotNull io.github.pylonmc.rebar.block.context.BlockBreakContext context)
      Specified by:
      onBreak in interface io.github.pylonmc.rebar.block.base.RebarBreakHandler
      Specified by:
      onBreak in interface io.github.pylonmc.rebar.block.base.RebarVirtualInventoryBlock
    • createGui

      @NotNull public @NotNull xyz.xenondevs.invui.gui.Gui createGui()
      Specified by:
      createGui in interface io.github.pylonmc.rebar.block.base.RebarInventoryBlock
    • tick

      public void tick()
      Specified by:
      tick in interface io.github.pylonmc.rebar.block.base.RebarTickingBlock
    • isFiltered

      public boolean isFiltered(@NotNull @NotNull org.bukkit.inventory.ItemStack item)
    • getHopperInventory

      @NotNull public @NotNull xyz.xenondevs.invui.inventory.Inventory getHopperInventory()
    • getFilterInventory

      @NotNull public @NotNull xyz.xenondevs.invui.inventory.VirtualInventory getFilterInventory()