Class EmptyRangeManager

java.lang.Object
com.ticxo.modelengine.api.nms.entity.impl.EmptyRangeManager
All Implemented Interfaces:
RangeManager

public class EmptyRangeManager extends Object implements 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface RangeManager
    • 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 interface RangeManager
    • 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 interface RangeManager
    • setRenderDistance

      public void setRenderDistance(int radius)
      Description copied from interface: RangeManager
      Override the render distance of this entity.
      Specified by:
      setRenderDistance in interface RangeManager
      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 interface RangeManager
      Returns:
      render distance in blocks
    • getPlayerInRange

      public Set<org.bukkit.entity.Player> 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 interface RangeManager