Package net.glowstone.io.entity
Class HangingStore<T extends GlowHangingEntity>
java.lang.Object
net.glowstone.io.entity.EntityStore<T>
net.glowstone.io.entity.HangingStore<T>
- Direct Known Subclasses:
PaintingStore
-
Field Summary
Fields inherited from class net.glowstone.io.entity.EntityStore
entityType, type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Methods inherited from class net.glowstone.io.entity.EntityStore
canEqual, createEntity, createEntity, equals, getEntityType, getType, hashCode, toString
-
Constructor Details
-
HangingStore
-
-
Method Details
-
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<T extends GlowHangingEntity>
- 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<T extends GlowHangingEntity>
- Parameters:
entity
- The entity to save.tag
- The target tag.
-