类 RidingFinder

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

public class RidingFinder extends Object
The type Riding finder.
  • 构造器详细资料

    • RidingFinder

      public RidingFinder()
  • 方法详细资料

    • getEntityFromRidingShip

      public static List<net.minecraft.world.entity.Entity> getEntityFromRidingShip(RidingRelationship ship, Function<UUID,net.minecraft.world.entity.Entity> entityProvider)
      从JSON字符串应用骑乘关系
      参数:
      ship - the ship
      entityProvider - the entity provider
      返回:
      the entity from riding ship
    • findRootVehicle

      @Nullable public static net.minecraft.world.entity.Entity findRootVehicle(@Nullable net.minecraft.world.entity.Entity entity)
      查找根载具
      参数:
      entity - the entity
      返回:
      the entity
    • getAllPassengers

      public static List<net.minecraft.world.entity.Entity> getAllPassengers(@Nullable net.minecraft.world.entity.Entity entity)
      获取所有乘客(包括嵌套乘客)
      参数:
      entity - the entity
      返回:
      the all passengers
    • getAllPassengers

      public static List<net.minecraft.world.entity.Entity> getAllPassengers(@Nullable net.minecraft.world.entity.Entity entity, boolean findRoot)
      获取所有乘客(包括嵌套乘客)
      参数:
      entity - the entity
      findRoot - the find root
      返回:
      the all passengers