类 RidingApplier
java.lang.Object
top.r3944realms.superleadrope.util.riding.RidingApplier
The type Riding applier.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static intapplyRidingRelationship(RidingRelationship relationship, Function<UUID, net.minecraft.world.entity.Entity> entityProvider) 应用骑乘关系(在服务器端调用)static intapplyRidingRelationshipFromJson(String json, Function<UUID, net.minecraft.world.entity.Entity> entityProvider) 从JSON字符串应用骑乘关系static voidapplyRidingRelationships(Collection<RidingRelationship> relationships, Function<UUID, net.minecraft.world.entity.Entity> entityProvider) 批量应用骑乘关系(适用于世界加载时)
-
构造器详细资料
-
RidingApplier
public RidingApplier()
-
-
方法详细资料
-
applyRidingRelationship
public static int applyRidingRelationship(RidingRelationship relationship, Function<UUID, net.minecraft.world.entity.Entity> entityProvider) 应用骑乘关系(在服务器端调用)- 参数:
relationship- 骑乘关系entityProvider- 实体提供器(根据UUID获取实体)- 返回:
- 应用成功的实体数量 int
-
applyRidingRelationships
public static void applyRidingRelationships(Collection<RidingRelationship> relationships, Function<UUID, net.minecraft.world.entity.Entity> entityProvider) 批量应用骑乘关系(适用于世界加载时)- 参数:
relationships- the relationshipsentityProvider- the entity provider
-
applyRidingRelationshipFromJson
public static int applyRidingRelationshipFromJson(String json, Function<UUID, net.minecraft.world.entity.Entity> entityProvider) 从JSON字符串应用骑乘关系- 参数:
json- the jsonentityProvider- the entity provider- 返回:
- the int
-