Class EntityMarkers<T>

java.lang.Object
net.citizensnpcs.trait.waypoint.EntityMarkers<T>

public class EntityMarkers<T> extends Object
A helper class for storing a number of entity markers. By default an entity marker is a non-persisted EnderSignal.
  • Constructor Details

    • EntityMarkers

      public EntityMarkers()
    • EntityMarkers

      public EntityMarkers(EntityType type)
  • Method Details

    • createMarker

      public Entity createMarker(T marker, Location at)
      Creates and persists (in memory) an Entity marker.
      Parameters:
      marker - the storage marker
      at - the spawn location
      Returns:
      the created entity
    • destroyMarkers

      public void destroyMarkers()
    • removeMarker

      public void removeMarker(T marker)
    • spawnMarker

      public Entity spawnMarker(World world, Location at)
      Spawns a marker Entity without storing it for later use.
      Parameters:
      world - the world (unused currently)
      at - the location
      Returns:
      the spawned entity