类 RidingDismounts

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

public class RidingDismounts extends Object
The type Riding dismounts.
  • 构造器概要

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

    修饰符和类型
    方法
    说明
    static void
    dismountAllPassengers(net.minecraft.world.entity.Entity entity)
    解除实体及其所有乘客的骑乘关系(非递归)
    static void
    dismountByRelationship(RidingRelationship relationship, Function<UUID,net.minecraft.world.entity.Entity> entityProvider)
    根据骑乘关系数据结构解除骑乘
    static void
    dismountEntities(Collection<net.minecraft.world.entity.Entity> entities)
    批量解除多个实体的骑乘关系
    static void
    dismountEntity(net.minecraft.world.entity.Entity entity)
    解除单个实体的骑乘关系
    static void
    dismountRootEntity(net.minecraft.world.entity.Entity entity)
    解除根实体的骑乘关系(包括从载具下车)
    static void
    forceDismountAll(net.minecraft.world.entity.Entity entity)
    立即解除所有骑乘关系(强制方式)
    static boolean
    safeDismountAll(net.minecraft.world.entity.Entity entity, int maxIterations)
    安全解除骑乘关系(带超时保护)

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

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

    • RidingDismounts

      public RidingDismounts()
  • 方法详细资料

    • dismountEntity

      public static void dismountEntity(net.minecraft.world.entity.Entity entity)
      解除单个实体的骑乘关系
      参数:
      entity - the entity
    • dismountAllPassengers

      public static void dismountAllPassengers(net.minecraft.world.entity.Entity entity)
      解除实体及其所有乘客的骑乘关系(非递归)
      参数:
      entity - the entity
    • dismountRootEntity

      public static void dismountRootEntity(net.minecraft.world.entity.Entity entity)
      解除根实体的骑乘关系(包括从载具下车)
      参数:
      entity - the entity
    • safeDismountAll

      public static boolean safeDismountAll(net.minecraft.world.entity.Entity entity, int maxIterations)
      安全解除骑乘关系(带超时保护)
      参数:
      entity - the entity
      maxIterations - the max iterations
      返回:
      the boolean
    • dismountEntities

      public static void dismountEntities(Collection<net.minecraft.world.entity.Entity> entities)
      批量解除多个实体的骑乘关系
      参数:
      entities - the entities
    • dismountByRelationship

      public static void dismountByRelationship(RidingRelationship relationship, Function<UUID,net.minecraft.world.entity.Entity> entityProvider)
      根据骑乘关系数据结构解除骑乘
      参数:
      relationship - the relationship
      entityProvider - the entity provider
    • forceDismountAll

      public static void forceDismountAll(net.minecraft.world.entity.Entity entity)
      立即解除所有骑乘关系(强制方式)
      参数:
      entity - the entity