@ThreadSafe public final class MetaFactory extends Object
Constructor and Description |
---|
MetaFactory() |
Modifier and Type | Method and Description |
---|---|
static boolean |
decode(Block block,
Value<Substance> substance,
byte[] data,
Value<Byte> result) |
static <T extends MetaOwner> |
newCollection()
Creates a new meta collection
|
static <S,T extends Meta<S>> |
newValue(Class<T> type)
Obtains a new instance of a meta value
|
static void |
register(Meta meta)
Registers the meta value into the server meta registry
|
public MetaFactory()
public static <T extends MetaOwner> MetaCollection<T> newCollection()
public static boolean decode(Block block, Value<Substance> substance, byte[] data, Value<Byte> result)
public static <S,T extends Meta<S>> T newValue(Class<T> type)
S
- the meta owner typeT
- the meta value typetype
- the meta type classCopyright © 2016. All rights reserved.