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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateMarker(T marker, Location at) Creates and persists (in memory) anEntitymarker.voidvoidremoveMarker(T marker) spawnMarker(World world, Location at) Spawns a markerEntitywithout storing it for later use.
-
Constructor Details
-
EntityMarkers
public EntityMarkers() -
EntityMarkers
-
-
Method Details
-
createMarker
Creates and persists (in memory) anEntitymarker.- Parameters:
marker- the storage markerat- the spawn location- Returns:
- the created entity
-
destroyMarkers
public void destroyMarkers() -
removeMarker
-
spawnMarker
Spawns a markerEntitywithout storing it for later use.- Parameters:
world- the world (unused currently)at- the location- Returns:
- the spawned entity
-