Class AnimalStore<T extends GlowAnimal>

java.lang.Object
net.glowstone.io.entity.EntityStore<T>
net.glowstone.io.entity.AnimalStore<T>

public class AnimalStore<T extends GlowAnimal> extends EntityStore<T>
  • Constructor Details

    • AnimalStore

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

      public AnimalStore(Class<T> clazz, String type, Function<org.bukkit.Location,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 GlowAnimal>
      Parameters:
      location - The location.
      compound - The entity's tag, if extra data is needed.
      Returns:
      The new entity.