Class AbstractHorseStore<T extends GlowAbstractHorse>

Direct Known Subclasses:
ChestedHorseStore, HorseStore

public class AbstractHorseStore<T extends GlowAbstractHorse> extends AgeableStore<T>
  • Constructor Details

    • AbstractHorseStore

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

    • 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.