Interface PoweredMinecart

All Superinterfaces:
Audience, CommandSender, Entity, HoverEventSource<HoverEvent.ShowEntity>, Metadatable, Minecart, Nameable, Permissible, PersistentDataHolder, 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