public interface EntityMetadataRegistry extends MetadataRegistry<UUID>
MetadataMaps for Entitys.| Modifier and Type | Method and Description |
|---|---|
Optional<MetadataMap> |
get(org.bukkit.entity.Entity entity)
Gets a
MetadataMap for the given entity, if one already exists and has
been cached in this registry. |
<K> Map<org.bukkit.entity.Entity,K> |
getAllWithKey(MetadataKey<K> key)
Gets a map of the entities with a given metadata key
|
MetadataMap |
provide(org.bukkit.entity.Entity entity)
Produces a
MetadataMap for the given entity. |
cleanup, get, provide, remove@Nonnull MetadataMap provide(@Nonnull org.bukkit.entity.Entity entity)
MetadataMap for the given entity.entity - the entity@Nonnull Optional<MetadataMap> get(@Nonnull org.bukkit.entity.Entity entity)
MetadataMap for the given entity, if one already exists and has
been cached in this registry.entity - the entity@Nonnull <K> Map<org.bukkit.entity.Entity,K> getAllWithKey(@Nonnull MetadataKey<K> key)
K - the key typekey - the keyCopyright © 2022. All rights reserved.