@ParametersAreNonnullByDefault public abstract class BlockTrait<E extends Comparable<E>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Identifier |
name |
protected boolean |
onlySerialize |
protected com.google.common.collect.ImmutableList<E> |
possibleValues |
protected Class<E> |
valueClass |
protected String |
vanillaName |
| Modifier and Type | Method and Description |
|---|---|
abstract E |
getDefaultValue() |
abstract int |
getIndex(Object value) |
com.google.common.collect.ImmutableList<E> |
getPossibleValues() |
String |
getVanillaName() |
boolean |
isOnlySerialize() |
abstract E |
parseStorageValue(Object value) |
abstract E |
parseValue(String text) |
boolean |
testValue(Object value) |
String |
toString() |
protected final Identifier name
protected final Class<E extends Comparable<E>> valueClass
protected final boolean onlySerialize
protected final com.google.common.collect.ImmutableList<E extends Comparable<E>> possibleValues
protected final String vanillaName
public String getVanillaName()
public abstract E getDefaultValue()
public boolean testValue(Object value)
public boolean isOnlySerialize()
public com.google.common.collect.ImmutableList<E> getPossibleValues()
public abstract int getIndex(Object value)
Copyright © 2021. All rights reserved.