public class MinecartStore extends EntityStore<GlowMinecart>
entityType, type
Constructor and Description |
---|
MinecartStore(GlowMinecart.MinecartType minecartType) |
Modifier and Type | Method and Description |
---|---|
GlowMinecart |
createEntity(org.bukkit.Location location,
CompoundTag compound)
Create a new entity of this store's type at the given location.
|
void |
load(GlowMinecart entity,
CompoundTag tag)
Load data into an existing entity of the appropriate type from the given compound tag.
|
void |
save(GlowMinecart entity,
CompoundTag tag)
Save information about this entity to the given tag.
|
canEqual, createEntity, equals, getEntityType, getType, hashCode, toString
public MinecartStore(GlowMinecart.MinecartType minecartType)
public GlowMinecart createEntity(org.bukkit.Location location, CompoundTag compound)
EntityStore
createEntity
in class EntityStore<GlowMinecart>
location
- The location.compound
- The entity's tag, if extra data is needed.public void load(GlowMinecart entity, CompoundTag tag)
EntityStore
load
in class EntityStore<GlowMinecart>
entity
- The target entity.tag
- The entity's tag.public void save(GlowMinecart entity, CompoundTag tag)
EntityStore
save
in class EntityStore<GlowMinecart>
entity
- The entity to save.tag
- The target tag.Copyright © 2021. All rights reserved.