Class ManualRangeManager
java.lang.Object
com.ticxo.modelengine.api.nms.entity.impl.ManualRangeManager
- All Implemented Interfaces:
RangeManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ticxo.modelengine.api.nms.entity.wrapper.RangeManager
RangeManager.Disguise
-
Field Summary
Fields inherited from interface com.ticxo.modelengine.api.nms.entity.wrapper.RangeManager
EMPTY
-
Constructor 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.void
removePlayer
(org.bukkit.entity.Player player) Force a player to stop seeing 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ticxo.modelengine.api.nms.entity.wrapper.RangeManager
getRenderDistance, setRenderDistance
-
Constructor Details
-
ManualRangeManager
-
-
Method Details
-
forceSpawn
public void forceSpawn(org.bukkit.entity.Player player) Description copied from interface:RangeManager
Force a player to start seeing this entity.- Specified by:
forceSpawn
in interfaceRangeManager
-
updatePlayer
public void updatePlayer(org.bukkit.entity.Player player) Description copied from interface:RangeManager
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.- Specified by:
updatePlayer
in interfaceRangeManager
-
removePlayer
public void removePlayer(org.bukkit.entity.Player player) Description copied from interface:RangeManager
Force a player to stop seeing this entity.- Specified by:
removePlayer
in interfaceRangeManager
-
getPlayerInRange
Description copied from interface:RangeManager
Get a copy of the set of all players in range to see this entity.- Specified by:
getPlayerInRange
in interfaceRangeManager
-