public abstract class HangingStore<T extends GlowHangingEntity> extends EntityStore<T>
entityType, type
Constructor and Description |
---|
HangingStore(Class<? extends T> clazz,
org.bukkit.entity.EntityType type) |
Modifier and Type | Method and Description |
---|---|
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, createEntity, equals, getEntityType, getType, hashCode, toString
public void load(T entity, CompoundTag tag)
EntityStore
load
in class EntityStore<T extends GlowHangingEntity>
entity
- The target entity.tag
- The entity's tag.public void save(T entity, CompoundTag tag)
EntityStore
save
in class EntityStore<T extends GlowHangingEntity>
entity
- The entity to save.tag
- The target tag.Copyright © 2021. All rights reserved.