public class SplashPotionStore<T extends GlowSplashPotion> extends EntityStore<T>
entityType, type| Constructor and Description |
|---|
SplashPotionStore(Class<T> clazz,
@NonNls String id,
Function<org.bukkit.Location,T> constructor) |
| 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.
|
void |
load(T entity,
CompoundTag tag)
Load data into an existing entity of the appropriate type from the given compound tag.
|
void |
save(T entity,
CompoundTag tag)
Save information about this entity to the given tag.
|
canEqual, createEntity, equals, getEntityType, getType, hashCode, toStringpublic void save(T entity, CompoundTag tag)
EntityStoreentity - The entity to save.tag - The target tag.public void load(T entity, CompoundTag tag)
EntityStoreentity - The target entity.tag - The entity's tag.public T createEntity(org.bukkit.Location location,
CompoundTag compound)
EntityStorecreateEntity in class EntityStore<T extends GlowProjectile>location - The location.compound - The entity's tag, if extra data is needed.Copyright © 2021. All rights reserved.