Interface RangeManager
- All Known Implementing Classes:
EmptyRangeManager,ManualRangeManager
public interface RangeManager
Wrapper interface for accessing the render settings of an entity.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceSpecial interface for a player -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidforceSpawn(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.intGet the render distance of this entity.voidremovePlayer(org.bukkit.entity.Player player) Force a player to stop seeing this entity.voidsetRenderDistance(int radius) Override the render distance of this entity.voidupdatePlayer(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.
-