Interface PoweredMinecart

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

public interface PoweredMinecart extends Minecart
Represents a powered minecart. A powered minecart moves on its own when a player deposits fuel.
  • Method Details

    • getFuel

      int getFuel()
      Get the number of ticks until the minecart runs out of fuel.
      Returns:
      Number of ticks until the minecart runs out of fuel
    • setFuel

      void setFuel(int fuel)
      Set the number of ticks until the minecart runs out of fuel.
      Parameters:
      fuel - Number of ticks until the minecart runs out of fuel