Package net.minecraft.state
Class EnumProperty<T extends Enum<T> & IStringSerializable>
java.lang.Object
net.minecraft.state.Property<T>
net.minecraft.state.EnumProperty<T>
- Direct Known Subclasses:
DirectionProperty
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.state.Property
Property.ValuePair<T extends Comparable<T>>
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
EnumProperty
(String p_i45649_1_, Class<T> p_i45649_2_, Collection<T> p_i45649_3_) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Enum<T> & IStringSerializable>
EnumProperty<T>static <T extends Enum<T> & IStringSerializable>
EnumProperty<T>create
(String p_177707_0_, Class<T> p_177707_1_, Collection<T> p_177707_2_) static <T extends Enum<T> & IStringSerializable>
EnumProperty<T>static <T extends Enum<T> & IStringSerializable>
EnumProperty<T>boolean
int
Methods inherited from class net.minecraft.state.Property
getAllValues, getName, getValueClass, hashCode, toString, value, value, valueCodec
-
Field Details
-
values
private final com.google.common.collect.ImmutableSet<T extends Enum<T> & IStringSerializable> values -
names
-
-
Constructor Details
-
EnumProperty
-
-
Method Details
-
getPossibleValues
- Specified by:
getPossibleValues
in classProperty<T extends Enum<T> & IStringSerializable>
-
getValue
-
getName
-
equals
-
generateHashCode
public int generateHashCode()- Overrides:
generateHashCode
in classProperty<T extends Enum<T> & IStringSerializable>
-
create
public static <T extends Enum<T> & IStringSerializable> EnumProperty<T> create(String p_177709_0_, Class<T> p_177709_1_) -
create
public static <T extends Enum<T> & IStringSerializable> EnumProperty<T> create(String p_177708_0_, Class<T> p_177708_1_, Predicate<T> p_177708_2_) -
create
public static <T extends Enum<T> & IStringSerializable> EnumProperty<T> create(String p_177706_0_, Class<T> p_177706_1_, T... p_177706_2_) -
create
public static <T extends Enum<T> & IStringSerializable> EnumProperty<T> create(String p_177707_0_, Class<T> p_177707_1_, Collection<T> p_177707_2_)
-