类 TeleportUtil

java.lang.Object
top.r3944realms.superleadrope.util.entity.TeleportUtil

public class TeleportUtil extends Object
The type Teleport util.
  • 构造器概要

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

    修饰符和类型
    方法
    说明
    static @NotNull net.minecraft.world.entity.Entity
    teleportEntity(net.minecraft.world.entity.Entity oldEntity, net.minecraft.server.level.ServerLevel targetWorld, @NotNull net.minecraft.world.phys.Vec3 targetPos, @NotNull net.minecraft.core.Direction direction)
    通用实体传送(支持玩家、普通生物、跨维度、生物停飞、导航停止等)

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

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

    • TeleportUtil

      public TeleportUtil()
  • 方法详细资料

    • teleportEntity

      @NotNull public static @NotNull net.minecraft.world.entity.Entity teleportEntity(net.minecraft.world.entity.Entity oldEntity, net.minecraft.server.level.ServerLevel targetWorld, @NotNull @NotNull net.minecraft.world.phys.Vec3 targetPos, @NotNull @NotNull net.minecraft.core.Direction direction)
      通用实体传送(支持玩家、普通生物、跨维度、生物停飞、导航停止等)
      参数:
      oldEntity - the old entity
      targetWorld - the target world
      targetPos - the target pos
      direction - the direction
      返回:
      the entity