public class MonsterStore<T extends GlowMonster> extends EntityStore<T>
entityType, type
Constructor and Description |
---|
MonsterStore(Class<? extends T> clazz,
org.bukkit.entity.EntityType type,
Function<org.bukkit.Location,? extends T> creator) |
MonsterStore(Class<? extends T> clazz,
String type,
Function<org.bukkit.Location,? extends T> creator) |
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, toString
public MonsterStore(Class<? extends T> clazz, org.bukkit.entity.EntityType type, Function<org.bukkit.Location,? extends T> creator)
public T createEntity(org.bukkit.Location location, CompoundTag compound)
EntityStore
createEntity
in class EntityStore<T extends GlowMonster>
location
- The location.compound
- The entity's tag, if extra data is needed.Copyright © 2021. All rights reserved.