接口 PoweredMinecart

所有超级接口:
CommandSender, Entity, Metadatable, Minecart, Nameable, Permissible, PersistentDataHolder, ServerOperator, Vehicle

public interface PoweredMinecart extends Minecart
代表动力矿车.当玩家往动力矿车里放燃料后它就会自己移动.
  • 方法详细资料

    • getFuel

      int getFuel()
      Get the number of ticks until the minecart runs out of fuel.
      返回:
      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.
      参数:
      fuel - Number of ticks until the minecart runs out of fuel