Class FireballStore<T extends GlowFireball>

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

public class FireballStore<T extends GlowFireball> extends EntityStore<T>
  • Field Details

  • Constructor Details

    • FireballStore

      public FireballStore(Class<T> clazz, @NonNls @NonNls String id, Function<org.bukkit.Location,T> constructor)
  • Method Details

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

      public void load(T entity, CompoundTag tag)
      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.
      tag - The entity's tag.
    • 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 GlowProjectile>
      Parameters:
      location - The location.
      compound - The entity's tag, if extra data is needed.
      Returns:
      The new entity.