接口 PoweredMinecart

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

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

    • getFuel

      int getFuel()
      获取矿车燃料耗尽前的剩余 tick 数.

      原文:Get the number of ticks until the minecart runs out of fuel.

      返回:
      矿车燃料耗尽前的剩余 tick 数
    • setFuel

      void setFuel(int fuel)
      设置矿车燃料耗尽前的剩余 tick 数.

      原文:Set the number of ticks until the minecart runs out of fuel.

      参数:
      fuel - 矿车燃料耗尽前的剩余 tick 数