Available Methods

MethodReturnsDescription
getHopper(Location location)Optional<VHopper>Returns a read-only snapshot of the VHopper at that block location.
getHoppers()Collection<VHopper>Returns snapshots for every loaded VHopper.
isVHopper(Location location)booleanCheap existence check for a VHopper location.
getPlacedHopperCount()intReturns the current count of placed VHoppers.
getHopperLimit(Player player)intReturns the player's effective limit, including permission limits.
getStorageBackend()StringReturns the active backend name such as LOCAL, MYSQL, MARIADB, or H2.
getModuleItem(Location location, int slot)Optional<ItemStack>Returns a cloned module item from the requested slot.
setModuleEnabled(Location location, int slot, boolean enabled)CompletableFuture<Boolean>Toggles a module through the Folia-safe hopper location scheduler.

Snapshot Objects

VHopper:
Location location();
UUID owner();
Map<UUID, VHopperTrustedAccess> trustedPlayers();
Map<String, Integer> upgrades();
List<VHopperModule> modules();
VHopperStats stats();

VHopperModule:
int slot();
String type();
boolean enabled();
ItemStack item();

VHopperStats:
long collectedItems();
long movedItems();
long soldItems();
double earnedMoney();
long lastActiveAt();
String lastStatus();
Map<String, Long> moduleActivity();

VHopperTrustedAccess:
boolean canUpgrade();
boolean canModuleInsert();
boolean canModuleRemove();
boolean canPickup();

Developer Events

  • VHopperPlaceEvent
  • VHopperPickupEvent
  • VHopperModuleInstallEvent
  • VHopperModuleRemoveEvent
  • VHopperModuleToggleEvent
  • VHopperUpgradeEvent
  • VHopperCollectEvent
  • VHopperMoveEvent
  • VHopperSellEvent