Package net.glowstone.io.entity
Class WaterMobStore<T extends GlowWaterMob>
java.lang.Object
net.glowstone.io.entity.EntityStore<T>
net.glowstone.io.entity.WaterMobStore<T>
-
Field Summary
Fields inherited from class net.glowstone.io.entity.EntityStore
entityType, type
-
Constructor Summary
ConstructorDescriptionWaterMobStore
(Class<T> clazz, org.bukkit.entity.EntityType type, Function<org.bukkit.Location, T> creator) Creates the instance for a mob type. -
Method Summary
Modifier and TypeMethodDescriptioncreateEntity
(org.bukkit.Location location, CompoundTag compound) Create a new entity of this store's type at the given location.Methods inherited from class net.glowstone.io.entity.EntityStore
canEqual, createEntity, equals, getEntityType, getType, hashCode, load, save, toString
-
Constructor Details
-
Method Details
-
createEntity
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 classEntityStore<T extends GlowWaterMob>
- Parameters:
location
- The location.compound
- The entity's tag, if extra data is needed.- Returns:
- The new entity.
-