@ThreadSafe public interface MetaProvider
| Modifier and Type | Method and Description |
|---|---|
boolean |
decode(Block block,
Value<Substance> substance,
byte[] data,
Value<Byte> result)
Decodes and applies the byte data to the block as specified in
BlockMeta.decodeMeta(Object, byte[]) |
<S,T extends Meta<S>> |
provide(Class<T> cls)
Obtains a new instance of a meta value
|
void |
register(Meta meta)
Puts the meta value into the server meta registry
|
<S,T extends Meta<S>> T provide(Class<T> cls)
S - the meta owner typeT - the meta value typecls - the meta type classvoid register(Meta meta)
meta - the metaboolean decode(Block block, Value<Substance> substance, byte[] data, Value<Byte> result)
BlockMeta.decodeMeta(Object, byte[])block - the blocksubstance - the type to set the blockdata - the dataresult - @return true if the block can be placed, false if otherwiseCopyright © 2016. All rights reserved.