Class EmptyRangeManager
java.lang.Object
com.ticxo.modelengine.api.nms.entity.impl.EmptyRangeManager
- 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.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.
-
Constructor Details
-
EmptyRangeManager
public EmptyRangeManager()
-
-
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
-
setRenderDistance
public void setRenderDistance(int radius) Description copied from interface:RangeManager
Override the render distance of this entity.- Specified by:
setRenderDistance
in interfaceRangeManager
- Parameters:
radius
- distance in blocks.
-
getRenderDistance
public int getRenderDistance()Description copied from interface:RangeManager
Get the render distance of this entity.- Specified by:
getRenderDistance
in interfaceRangeManager
- Returns:
- render distance in blocks
-
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
-