Class ManualRangeManager

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

public class ManualRangeManager extends Object implements RangeManager
  • Constructor Details

    • ManualRangeManager

      public ManualRangeManager(BaseEntity<?> base, IModel model)
  • 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
    • 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