public class FieldHolderField<T extends FieldHolder> extends Object implements Field<T>
| Constructor and Description |
|---|
FieldHolderField(Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
Tag<?> |
getValue(String name,
T value)
Convert a value to its serialized NBT form
|
T |
getValue(Tag<?> rawTag)
Get the value of this field from the given tag
|
public T getValue(Tag<?> rawTag) throws IllegalArgumentException
FieldgetValue in interface Field<T extends FieldHolder>rawTag - The tag to useIllegalArgumentException - when the tag is of the wrong typepublic Tag<?> getValue(String name, T value)
FieldgetValue in interface Field<T extends FieldHolder>name - The key to use for the NBT tagvalue - The valueCopyright © 2011–2014 Flow Powered. All rights reserved.