public class PropertyMaterial extends net.minecraft.block.properties.PropertyHelper<PropertyMaterial.Type>
| Modifier and Type | Class and Description |
|---|---|
static class |
PropertyMaterial.Type |
| Modifier | Constructor and Description |
|---|---|
protected |
PropertyMaterial(java.lang.String name,
java.util.Collection<PropertyMaterial.Type> values) |
| Modifier and Type | Method and Description |
|---|---|
static PropertyMaterial |
create(java.lang.String name,
java.lang.Class clazz)
Create a new PropertyStatus with all Enum constants of the given class.
|
static PropertyMaterial |
create(java.lang.String name,
java.lang.Class clazz,
java.util.Collection values)
Create a new PropertyStatus with all Enum constants of the given class.
|
static PropertyMaterial |
create(java.lang.String name,
java.lang.Class clazz,
com.google.common.base.Predicate filter)
Create a new PropertyStatus with all Enum constants of the given class.
|
java.util.Collection<PropertyMaterial.Type> |
getAllowedValues() |
java.lang.String |
getName(PropertyMaterial.Type value) |
com.google.common.base.Optional<PropertyMaterial.Type> |
parseValue(java.lang.String value) |
protected PropertyMaterial(java.lang.String name,
java.util.Collection<PropertyMaterial.Type> values)
public java.util.Collection<PropertyMaterial.Type> getAllowedValues()
public com.google.common.base.Optional<PropertyMaterial.Type> parseValue(java.lang.String value)
public java.lang.String getName(PropertyMaterial.Type value)
public static PropertyMaterial create(java.lang.String name, java.lang.Class clazz)
name - The property name.clazz - The property class.public static PropertyMaterial create(java.lang.String name, java.lang.Class clazz, com.google.common.base.Predicate filter)
name - The property name.clazz - The property class.filter - The filter for checking property values.public static PropertyMaterial create(java.lang.String name, java.lang.Class clazz, java.util.Collection values)
name - The property name.clazz - The property class.values - The possible property values.