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
Constructors -
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.
-
Constructor Details
-
EmptyRangeManager
public EmptyRangeManager()
-
-
Method Details
-
forceSpawn
public void forceSpawn(org.bukkit.entity.Player player) Description copied from interface:RangeManagerForce a player to start seeing this entity.- Specified by:
forceSpawnin interfaceRangeManager
-
updatePlayer
public void updatePlayer(org.bukkit.entity.Player player) Description copied from interface:RangeManagerUpdate 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:
updatePlayerin interfaceRangeManager
-
removePlayer
public void removePlayer(org.bukkit.entity.Player player) Description copied from interface:RangeManagerForce a player to stop seeing this entity.- Specified by:
removePlayerin interfaceRangeManager
-
setRenderDistance
public void setRenderDistance(int radius) Description copied from interface:RangeManagerOverride the render distance of this entity.- Specified by:
setRenderDistancein interfaceRangeManager- Parameters:
radius- distance in blocks.
-
getRenderDistance
public int getRenderDistance()Description copied from interface:RangeManagerGet the render distance of this entity.- Specified by:
getRenderDistancein interfaceRangeManager- Returns:
- render distance in blocks
-
getPlayerInRange
Description copied from interface:RangeManagerGet a copy of the set of all players in range to see this entity.- Specified by:
getPlayerInRangein interfaceRangeManager
-