Package net.citizensnpcs.trait.waypoint
Class EntityMarkers<T>
java.lang.Object
net.citizensnpcs.trait.waypoint.EntityMarkers<T>
A helper class for storing a number of entity markers. By default an entity marker is a non-persisted EnderSignal.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateMarker
(T marker, Location at) Creates and persists (in memory) anEntity
marker.void
void
removeMarker
(T marker) spawnMarker
(World world, Location at) Spawns a markerEntity
without storing it for later use.
-
Constructor Details
-
EntityMarkers
public EntityMarkers() -
EntityMarkers
-
-
Method Details
-
createMarker
Creates and persists (in memory) anEntity
marker.- Parameters:
marker
- the storage markerat
- the spawn location- Returns:
- the created entity
-
destroyMarkers
public void destroyMarkers() -
removeMarker
-
spawnMarker
Spawns a markerEntity
without storing it for later use.- Parameters:
world
- the world (unused currently)at
- the location- Returns:
- the spawned entity
-