Class EntityUtil

java.lang.Object
kr.toxicity.model.api.util.EntityUtil

@Internal public final class EntityUtil extends Object
Entity
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final float
    Entity model view radius.
    static final double
    Default render distance.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    canSee(@NotNull org.bukkit.Location player, @NotNull org.bukkit.Location target)
    Checks this player can see that entity
    static boolean
    isCustomNameVisible(@NotNull org.bukkit.Location player, @NotNull org.bukkit.Location target)
    Checks this target's custom name is visible at player
    static boolean
    isInPoint(@NotNull org.bukkit.Location player, @NotNull org.bukkit.Location target)
    Checks this target is in player's point

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • RENDER_DISTANCE

      public static final double RENDER_DISTANCE
      Default render distance.
    • ENTITY_MODEL_VIEW_RADIUS

      public static final float ENTITY_MODEL_VIEW_RADIUS
      Entity model view radius.
  • Method Details

    • canSee

      public static boolean canSee(@NotNull @NotNull org.bukkit.Location player, @NotNull @NotNull org.bukkit.Location target)
      Checks this player can see that entity
      Parameters:
      player - player's location
      target - target's location
      Returns:
      whether target is in user's screen
    • isCustomNameVisible

      public static boolean isCustomNameVisible(@NotNull @NotNull org.bukkit.Location player, @NotNull @NotNull org.bukkit.Location target)
      Checks this target's custom name is visible at player
      Parameters:
      player - player's location
      target - target's location
      Returns:
      whether target's custom name is visible
    • isInPoint

      public static boolean isInPoint(@NotNull @NotNull org.bukkit.Location player, @NotNull @NotNull org.bukkit.Location target)
      Checks this target is in player's point
      Parameters:
      player - player's location
      target - target's location
      Returns:
      whether target is player's point