Class AgeableStore<T extends GlowAgeable>

Direct Known Subclasses:
AbstractHorseStore, ParrotStore

public class AgeableStore<T extends GlowAgeable> extends LivingEntityStore<T>
  • Constructor Details

    • AgeableStore

      public AgeableStore(Class<T> clazz, org.bukkit.entity.EntityType type, Function<org.bukkit.Location,? extends T> creator)
    • AgeableStore

      public AgeableStore(Class<T> clazz, String type, Function<org.bukkit.Location,? extends T> creator)
  • Method Details

    • createEntity

      public T createEntity(org.bukkit.Location location, CompoundTag compound)
      Description copied from class: EntityStore
      Create a new entity of this store's type at the given location. The load method will be called separately.
      Specified by:
      createEntity in class EntityStore<T extends GlowAgeable>
      Parameters:
      location - The location.
      compound - The entity's tag, if extra data is needed.
      Returns:
      The new entity.
    • load

      public void load(T entity, CompoundTag compound)
      Description copied from class: EntityStore
      Load data into an existing entity of the appropriate type from the given compound tag.
      Parameters:
      entity - The target entity.
      compound - The entity's tag.
    • save

      public void save(T entity, CompoundTag tag)
      Description copied from class: EntityStore
      Save information about this entity to the given tag.
      Parameters:
      entity - The entity to save.
      tag - The target tag.