@ParametersAreNonnullByDefault public abstract class BlockTrait<E extends Comparable<E>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
protected List<E> |
possibleValues |
protected Class<E> |
valueClass |
protected String |
vanillaName |
| Constructor and Description |
|---|
BlockTrait(String name,
String vanillaName,
Class<E> valueClass,
List<E> possibleValues) |
| Modifier and Type | Method and Description |
|---|---|
abstract E |
getDefaultValue() |
abstract int |
getIndex(Object value) |
String |
getVanillaName() |
abstract E |
parseStorageValue(Object value) |
abstract E |
parseValue(String text) |
String |
toString() |
protected final String name
protected final String vanillaName
protected final Class<E extends Comparable<E>> valueClass
protected final List<E extends Comparable<E>> possibleValues
Copyright © 2020. All rights reserved.