Class HangingStore<T extends GlowHangingEntity>

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

public abstract class HangingStore<T extends GlowHangingEntity> extends EntityStore<T>
  • Constructor Details

    • HangingStore

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

    • 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.
      Overrides:
      load in class EntityStore<T extends GlowHangingEntity>
      Parameters:
      entity - The target entity.
      tag - 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 GlowHangingEntity>
      Parameters:
      entity - The entity to save.
      tag - The target tag.