类 RidingValidator

java.lang.Object
top.r3944realms.superleadrope.util.riding.RidingValidator

public class RidingValidator extends Object
The type Riding validator.
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static boolean
    isIndirectPassenger(net.minecraft.world.entity.Entity target, net.minecraft.world.entity.Entity entity)
    检查target是否是entity的间接乘客
    static boolean
    wouldCreateCycle(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.Entity vehicle)
    检查骑乘是否会产生循环引用

    从类继承的方法 java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • RidingValidator

      public RidingValidator()
  • 方法详细资料

    • wouldCreateCycle

      public static boolean wouldCreateCycle(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.Entity vehicle)
      检查骑乘是否会产生循环引用
      参数:
      entity - the entity
      vehicle - the vehicle
      返回:
      the boolean
    • isIndirectPassenger

      public static boolean isIndirectPassenger(net.minecraft.world.entity.Entity target, net.minecraft.world.entity.Entity entity)
      检查target是否是entity的间接乘客
      参数:
      target - the target
      entity - the entity
      返回:
      the boolean