Interface PoweredMinecart

All Superinterfaces:
Audience, CommandSender, Entity, Frictional, HoverEventSource<HoverEvent.ShowEntity>, Metadatable, Minecart, Nameable, Permissible, PersistentDataHolder, PersistentDataViewHolder, Pointered, ServerOperator, Sound.Emitter, 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
    • getPushX

      double getPushX()
      Get the x push of the minecart.
      Returns:
      The x push of the minecart
    • getPushZ

      double getPushZ()
      Get the z push of the minecart.
      Returns:
      The z push of the minecart
    • setPushX

      void setPushX(double xPush)
      Set the x push of the minecart.
      Parameters:
      xPush - The new x push of the minecart
    • setPushZ

      void setPushZ(double zPush)
      Set the z push of the minecart.
      Parameters:
      zPush - The new z push of the minecart