public interface BlockMetadataRegistry extends MetadataRegistry<BlockPosition>
MetadataMaps for Blocks.| Modifier and Type | Method and Description |
|---|---|
Optional<MetadataMap> |
get(Block block)
Gets a
MetadataMap for the given block, if one already exists and has
been cached in this registry. |
<K> Map<BlockPosition,K> |
getAllWithKey(MetadataKey<K> key)
Gets a map of the blocks with a given metadata key
|
MetadataMap |
provide(Block block)
Produces a
MetadataMap for the given block. |
cleanup, get, provide, remove@Nonnull MetadataMap provide(@Nonnull Block block)
MetadataMap for the given block.block - the block@Nonnull Optional<MetadataMap> get(@Nonnull Block block)
MetadataMap for the given block, if one already exists and has
been cached in this registry.block - the block@Nonnull <K> Map<BlockPosition,K> getAllWithKey(@Nonnull MetadataKey<K> key)
K - the key typekey - the keyCopyright © 2020. All rights reserved.