Interface RangeManager
- All Known Implementing Classes:
EmptyRangeManager
,ManualRangeManager
public interface RangeManager
Wrapper interface for accessing the render settings of an entity.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Special interface for a player -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
forceSpawn
(org.bukkit.entity.Player player) Force a player to start seeing this entity.Set<org.bukkit.entity.Player>
Get a copy of the set of all players in range to see this entity.int
Get the render distance of this entity.void
removePlayer
(org.bukkit.entity.Player player) Force a player to stop seeing this entity.void
setRenderDistance
(int radius) Override the render distance of this entity.void
updatePlayer
(org.bukkit.entity.Player player) Update the view state of a player.
If the player is close enough, the player would start seeing the entity.
Otherwise, the player would stop seeing the entity.
-
Field Details
-
EMPTY
-
-
Method Details
-
forceSpawn
void forceSpawn(org.bukkit.entity.Player player) Force a player to start seeing this entity. -
updatePlayer
void updatePlayer(org.bukkit.entity.Player player) Update the view state of a player.
If the player is close enough, the player would start seeing the entity.
Otherwise, the player would stop seeing the entity. -
removePlayer
void removePlayer(org.bukkit.entity.Player player) Force a player to stop seeing this entity. -
setRenderDistance
void setRenderDistance(int radius) Override the render distance of this entity.- Parameters:
radius
- distance in blocks.
-
getRenderDistance
int getRenderDistance()Get the render distance of this entity.- Returns:
- render distance in blocks
-
getPlayerInRange
Set<org.bukkit.entity.Player> getPlayerInRange()Get a copy of the set of all players in range to see this entity.
-