Class MapBasedEntityStorage<T extends net.minecraft.world.entity.Entity>
java.lang.Object
com.pixelmonmod.pixelmon.api.entity.npc.storage.MapBasedEntityStorage<T>
- All Implemented Interfaces:
EntityStorage<T>,Iterable<StoredEntity<T>>
- Direct Known Subclasses:
NBTEntityStorage
public abstract class MapBasedEntityStorage<T extends net.minecraft.world.entity.Entity>
extends Object
implements EntityStorage<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an entity to be tracked and storedFinds the entity storage for the given UUIDgetAll()Gets all the entities that are being tracked@NotNull Iterator<StoredEntity<T>> iterator()voidRemoves an entity from being tracked and storedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pixelmonmod.pixelmon.api.entity.npc.EntityStorage
load, saveMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
trackedEntities
-
-
Constructor Details
-
MapBasedEntityStorage
public MapBasedEntityStorage()
-
-
Method Details
-
add
Description copied from interface:EntityStorageAdds an entity to be tracked and stored- Specified by:
addin interfaceEntityStorage<T extends net.minecraft.world.entity.Entity>- Parameters:
entity- The entity to add
-
remove
Description copied from interface:EntityStorageRemoves an entity from being tracked and stored- Specified by:
removein interfaceEntityStorage<T extends net.minecraft.world.entity.Entity>- Parameters:
entity- The entity to remove
-
find
Description copied from interface:EntityStorageFinds the entity storage for the given UUID- Specified by:
findin interfaceEntityStorage<T extends net.minecraft.world.entity.Entity>- Parameters:
uuid- The UUID of the entity- Returns:
- The entity storage
-
getAll
Description copied from interface:EntityStorageGets all the entities that are being tracked- Specified by:
getAllin interfaceEntityStorage<T extends net.minecraft.world.entity.Entity>- Returns:
- The entities
-
iterator
-