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 ClassesModifier and TypeClassDescriptionstatic classfinal classNested 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.RebarInventoryBlock
io.github.pylonmc.rebar.block.base.RebarInventoryBlock.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarTickingBlock
io.github.pylonmc.rebar.block.base.RebarTickingBlock.CompanionNested classes/interfaces inherited from interface io.github.pylonmc.rebar.block.base.RebarVirtualInventoryBlock
io.github.pylonmc.rebar.block.base.RebarVirtualInventoryBlock.Companion -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal io.github.pylonmc.rebar.item.builder.ItemStackBuilderfinal intfinal intbooleanstatic final org.bukkit.NamespacedKeyFields inherited from class io.github.pylonmc.rebar.block.RebarBlock
CompanionFields inherited from interface io.github.pylonmc.rebar.block.base.RebarInventoryBlock
CompanionFields inherited from interface io.github.pylonmc.rebar.block.base.RebarTickingBlock
CompanionFields inherited from interface io.github.pylonmc.rebar.block.base.RebarVirtualInventoryBlock
Companion -
Constructor Summary
ConstructorsConstructorDescriptionVacuumHopper(@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 TypeMethodDescription@NotNull xyz.xenondevs.invui.gui.Gui@NotNull xyz.xenondevs.invui.inventory.VirtualInventory@NotNull xyz.xenondevs.invui.inventory.InventorybooleanisFiltered(@NotNull org.bukkit.inventory.ItemStack item) voidonBreak(@NotNull List<@NotNull org.bukkit.inventory.ItemStack> drops, @NotNull io.github.pylonmc.rebar.block.context.BlockBreakContext context) voidonItemMoveFrom(@NotNull org.bukkit.event.inventory.InventoryMoveItemEvent event, @NotNull org.bukkit.event.EventPriority priority) voidonItemMoveTo(@NotNull org.bukkit.event.inventory.InventoryMoveItemEvent event, @NotNull org.bukkit.event.EventPriority priority) voidtick()voidwrite(@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, 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.RebarBreakHandler
postBreak, preBreakMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarInventoryBlock
getGuiTitleMethods inherited from interface io.github.pylonmc.rebar.block.base.RebarNoVanillaInventoryBlock
onInventoryOpenMethods 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:
writein classio.github.pylonmc.rebar.block.RebarBlock
-
getVirtualInventories
-
onItemMoveTo
public void onItemMoveTo(@NotNull @NotNull org.bukkit.event.inventory.InventoryMoveItemEvent event, @NotNull @NotNull org.bukkit.event.EventPriority priority) - Specified by:
onItemMoveToin interfaceio.github.pylonmc.rebar.block.base.RebarNoVanillaInventoryBlock- Specified by:
onItemMoveToin interfaceio.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:
onItemMoveFromin interfaceio.github.pylonmc.rebar.block.base.RebarNoVanillaInventoryBlock- Specified by:
onItemMoveFromin interfaceio.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:
onBreakin interfaceio.github.pylonmc.rebar.block.base.RebarBreakHandler- Specified by:
onBreakin interfaceio.github.pylonmc.rebar.block.base.RebarVirtualInventoryBlock
-
createGui
@NotNull public @NotNull xyz.xenondevs.invui.gui.Gui createGui()- Specified by:
createGuiin interfaceio.github.pylonmc.rebar.block.base.RebarInventoryBlock
-
tick
public void tick()- Specified by:
tickin interfaceio.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()
-