Package net.glowstone.io.entity
Class BoatStore
-
Field Summary
Fields inherited from class net.glowstone.io.entity.EntityStore
entityType, type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateEntity
(org.bukkit.Location location, CompoundTag compound) Create a new entity of this store's type at the given location.void
load
(GlowBoat entity, CompoundTag tag) Load data into an existing entity of the appropriate type from the given compound tag.void
save
(GlowBoat entity, CompoundTag tag) Save information about this entity to the given tag.Methods inherited from class net.glowstone.io.entity.EntityStore
canEqual, createEntity, equals, getEntityType, getType, hashCode, toString
-
Constructor Details
-
BoatStore
public BoatStore()
-
-
Method Details
-
createEntity
Description copied from class:EntityStore
Create a new entity of this store's type at the given location. The load method will be called separately.- Specified by:
createEntity
in classEntityStore<GlowBoat>
- Parameters:
location
- The location.compound
- The entity's tag, if extra data is needed.- Returns:
- The new entity.
-
load
Description copied from class:EntityStore
Load data into an existing entity of the appropriate type from the given compound tag.- Overrides:
load
in classEntityStore<GlowBoat>
- Parameters:
entity
- The target entity.tag
- The entity's tag.
-
save
Description copied from class:EntityStore
Save information about this entity to the given tag.- Overrides:
save
in classEntityStore<GlowBoat>
- Parameters:
entity
- The entity to save.tag
- The target tag.
-