Package kr.toxicity.model.api.util
Class EntityUtil
java.lang.Object
kr.toxicity.model.api.util.EntityUtil
Entity
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatEntity model view radius.static final doubleDefault render distance. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanSee(@NotNull org.bukkit.Location player, @NotNull org.bukkit.Location target) Checks this player can see that entitystatic booleanisCustomNameVisible(@NotNull org.bukkit.Location player, @NotNull org.bukkit.Location target) Checks this target's custom name is visible at playerstatic booleanisInPoint(@NotNull org.bukkit.Location player, @NotNull org.bukkit.Location target) Checks this target is in player's point
-
Field Details
-
RENDER_DISTANCE
public static final double RENDER_DISTANCEDefault render distance. -
ENTITY_MODEL_VIEW_RADIUS
public static final float ENTITY_MODEL_VIEW_RADIUSEntity 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 locationtarget- 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 locationtarget- 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 locationtarget- target's location- Returns:
- whether target is player's point
-