Class EntityPos

java.lang.Object
net.notcoded.codelib.util.pos.EntityPos

public class EntityPos extends Object
  • Field Details

    • x

      public double x
    • y

      public double y
    • z

      public double z
    • yaw

      public float yaw
    • pitch

      public float pitch
  • Constructor Details

    • EntityPos

      public EntityPos(double x, double y, double z, float yaw, float pitch)
    • EntityPos

      public EntityPos(double x, double y, double z)
    • EntityPos

      public EntityPos(net.minecraft.world.entity.Entity entity)
    • EntityPos

      public EntityPos(net.minecraft.core.BlockPos blockPos)
    • EntityPos

      public EntityPos(net.minecraft.world.phys.Vec3 vec3)
  • Method Details

    • clone

      public EntityPos clone()
      Overrides:
      clone in class Object
    • c

      public EntityPos c()
    • add

      public EntityPos add(double x, double y, double z)
    • add

      public EntityPos add(EntityPos entityPos)
    • between

      public EntityPos between(EntityPos pos2)
    • toBlockPos

      public net.minecraft.core.BlockPos toBlockPos()
    • toBlockVec3

      public BlockVec3 toBlockVec3()
    • distance

      public double distance(EntityPos entityPos2)
    • teleportPlayer

      @Environment(SERVER) public void teleportPlayer(net.minecraft.server.level.ServerLevel level, net.minecraft.server.level.ServerPlayer player)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isInRadius

      public boolean isInRadius(EntityPos entityPos2, float radius)