public final class Metadata extends Object
MetadataRegistry instances bound to players, entities, blocks and worlds.public static PlayerMetadataRegistry players()
MetadataRegistry for Players.PlayerMetadataRegistrypublic static EntityMetadataRegistry entities()
MetadataRegistry for Entitys.EntityMetadataRegistrypublic static BlockMetadataRegistry blocks()
MetadataRegistry for Blocks.BlockMetadataRegistrypublic static WorldMetadataRegistry worlds()
MetadataRegistry for Worlds.WorldMetadataRegistry@Nonnull public static MetadataMap provide(@Nonnull Object obj)
MetadataMap for the given object.
A map will only be returned if the object is an instance of
Player, UUID, Entity, Block or World.obj - the object@Nonnull public static Optional<MetadataMap> get(@Nonnull Object obj)
MetadataMap for the given object, if one already exists and has
been cached in this registry.
A map will only be returned if the object is an instance of
Player, UUID, Entity, Block or World.obj - the object@Nonnull public static MetadataMap provideForPlayer(@Nonnull UUID uuid)
@Nonnull public static MetadataMap provideForPlayer(@Nonnull Player player)
@Nonnull public static Optional<MetadataMap> getForPlayer(@Nonnull UUID uuid)
@Nonnull public static Optional<MetadataMap> getForPlayer(@Nonnull Player player)
@Nonnull public static <T> Map<Player,T> lookupPlayersWithKey(@Nonnull MetadataKey<T> key)
@Nonnull public static MetadataMap provideForEntity(@Nonnull UUID uuid)
@Nonnull public static MetadataMap provideForEntity(@Nonnull Entity entity)
@Nonnull public static Optional<MetadataMap> getForEntity(@Nonnull UUID uuid)
@Nonnull public static Optional<MetadataMap> getForEntity(@Nonnull Entity entity)
@Nonnull public static <T> Map<Entity,T> lookupEntitiesWithKey(@Nonnull MetadataKey<T> key)
@Nonnull public static MetadataMap provideForBlock(@Nonnull BlockPosition block)
@Nonnull public static MetadataMap provideForBlock(@Nonnull Block block)
@Nonnull public static Optional<MetadataMap> getForBlock(@Nonnull BlockPosition block)
@Nonnull public static Optional<MetadataMap> getForBlock(@Nonnull Block block)
@Nonnull public static <T> Map<BlockPosition,T> lookupBlocksWithKey(@Nonnull MetadataKey<T> key)
@Nonnull public static MetadataMap provideForWorld(@Nonnull UUID uid)
@Nonnull public static MetadataMap provideForWorld(@Nonnull World world)
@Nonnull public static Optional<MetadataMap> getForWorld(@Nonnull UUID uid)
@Nonnull public static Optional<MetadataMap> getForWorld(@Nonnull World world)
@Nonnull public static <T> Map<World,T> lookupWorldsWithKey(@Nonnull MetadataKey<T> key)
Copyright © 2020. All rights reserved.