Interface HopperMinecart

All Superinterfaces:
net.kyori.adventure.audience.Audience, CommandSender, Entity, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, InventoryHolder, Lootable, LootableEntityInventory, LootableInventory, Metadatable, Minecart, Nameable, Permissible, PersistentDataHolder, net.kyori.adventure.pointer.Pointered, ServerOperator, Vehicle

public interface HopperMinecart extends Minecart, InventoryHolder, LootableEntityInventory
Represents a Minecart with a Hopper inside it
  • Method Details

    • isEnabled

      boolean isEnabled()
      Checks whether or not this Minecart will pick up items into its inventory.
      Returns:
      true if the Minecart will pick up items
    • setEnabled

      void setEnabled(boolean enabled)
      Sets whether this Minecart will pick up items.
      Parameters:
      enabled - new enabled state