Class WaterMobStore<T extends GlowWaterMob>

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

public class WaterMobStore<T extends GlowWaterMob> extends EntityStore<T>
  • Constructor Details

    • WaterMobStore

      public WaterMobStore(Class<T> clazz, org.bukkit.entity.EntityType type, Function<org.bukkit.Location,T> creator)
      Creates the instance for a mob type.
      Parameters:
      clazz - the mob type as a class
      type - the mob type as an EntityType
      creator - the mob type's constructor taking a Location
  • 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 GlowWaterMob>
      Parameters:
      location - The location.
      compound - The entity's tag, if extra data is needed.
      Returns:
      The new entity.