类 RidingFinder
java.lang.Object
top.r3944realms.superleadrope.util.riding.RidingFinder
The type Riding finder.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static net.minecraft.world.entity.EntityfindRootVehicle(net.minecraft.world.entity.Entity entity) 查找根载具static List<net.minecraft.world.entity.Entity>getAllPassengers(net.minecraft.world.entity.Entity entity) 获取所有乘客(包括嵌套乘客)static List<net.minecraft.world.entity.Entity>getAllPassengers(net.minecraft.world.entity.Entity entity, boolean findRoot) 获取所有乘客(包括嵌套乘客)static List<net.minecraft.world.entity.Entity>getEntityFromRidingShip(RidingRelationship ship, Function<UUID, net.minecraft.world.entity.Entity> entityProvider) 从JSON字符串应用骑乘关系
-
构造器详细资料
-
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 shipentityProvider- 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 entityfindRoot- the find root- 返回:
- the all passengers
-