public class WaterMobStore<T extends GlowWaterMob> extends EntityStore<T>
entityType, type| Constructor and Description |
|---|
WaterMobStore(Class<T> clazz,
org.bukkit.entity.EntityType type,
Function<org.bukkit.Location,T> creator)
Creates the instance for a mob type.
|
| Modifier and Type | Method and Description |
|---|---|
T |
createEntity(org.bukkit.Location location,
CompoundTag compound)
Create a new entity of this store's type at the given location.
|
canEqual, createEntity, equals, getEntityType, getType, hashCode, load, save, toStringpublic T createEntity(org.bukkit.Location location, CompoundTag compound)
EntityStorecreateEntity in class EntityStore<T extends GlowWaterMob>location - The location.compound - The entity's tag, if extra data is needed.Copyright © 2021. All rights reserved.