类 RidingValidator
java.lang.Object
top.r3944realms.superleadrope.util.riding.RidingValidator
The type Riding validator.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static booleanisIndirectPassenger(net.minecraft.world.entity.Entity target, net.minecraft.world.entity.Entity entity) 检查target是否是entity的间接乘客static booleanwouldCreateCycle(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.Entity vehicle) 检查骑乘是否会产生循环引用
-
构造器详细资料
-
RidingValidator
public RidingValidator()
-
-
方法详细资料
-
wouldCreateCycle
public static boolean wouldCreateCycle(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.Entity vehicle) 检查骑乘是否会产生循环引用- 参数:
entity- the entityvehicle- 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 targetentity- the entity- 返回:
- the boolean
-