Class MonsterStore<T extends GlowMonster>

java.lang.Object
net.glowstone.io.entity.EntityStore<T>
net.glowstone.io.entity.MonsterStore<T>
Direct Known Subclasses:
EvokerStore, ShulkerStore, VexStore, VindicatorStore, WitherStore, ZombieVillagerStore

public class MonsterStore<T extends GlowMonster> extends EntityStore<T>
  • Constructor Details

    • MonsterStore

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

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