Class LivingEntityStore<T extends GlowLivingEntity>

java.lang.Object
net.glowstone.io.entity.EntityStore<T>
net.glowstone.io.entity.LivingEntityStore<T>
Direct Known Subclasses:
AgeableStore

public abstract class LivingEntityStore<T extends GlowLivingEntity> extends EntityStore<T>
  • Constructor Details

    • LivingEntityStore

      public LivingEntityStore(Class<T> clazz, String type)
    • LivingEntityStore

      public LivingEntityStore(Class<T> clazz, org.bukkit.entity.EntityType type)
  • 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.
      Overrides:
      load in class EntityStore<T extends GlowLivingEntity>
      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.
      Overrides:
      save in class EntityStore<T extends GlowLivingEntity>
      Parameters:
      entity - The entity to save.
      tag - The target tag.