Class EnumProperty<T extends Enum<T> & StringRepresentable>
java.lang.Object
net.minecraft.world.level.block.state.properties.Property<T>
net.minecraft.world.level.block.state.properties.EnumProperty<T>
- Direct Known Subclasses:
DirectionProperty
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.state.properties.Property
Property.Value<T extends Comparable<T>>
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
EnumProperty
(String p_61579_, Class<T> p_61580_, Collection<T> p_61581_) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Enum<T> & StringRepresentable>
EnumProperty<T>static <T extends Enum<T> & StringRepresentable>
EnumProperty<T>create
(String p_61591_, Class<T> p_61592_, Collection<T> p_61593_) static <T extends Enum<T> & StringRepresentable>
EnumProperty<T>static <T extends Enum<T> & StringRepresentable>
EnumProperty<T>boolean
int
Methods inherited from class net.minecraft.world.level.block.state.properties.Property
codec, getAllValues, getName, getValueClass, hashCode, parseValue, toString, value, value, valueCodec
-
Field Details
-
values
private final com.google.common.collect.ImmutableSet<T extends Enum<T> & StringRepresentable> values -
names
-
-
Constructor Details
-
EnumProperty
-
-
Method Details
-
getPossibleValues
- Specified by:
getPossibleValues
in classProperty<T extends Enum<T> & StringRepresentable>
-
getValue
-
getName
-
equals
-
generateHashCode
public int generateHashCode()- Overrides:
generateHashCode
in classProperty<T extends Enum<T> & StringRepresentable>
-
create
public static <T extends Enum<T> & StringRepresentable> EnumProperty<T> create(String p_61588_, Class<T> p_61589_) -
create
public static <T extends Enum<T> & StringRepresentable> EnumProperty<T> create(String p_61595_, Class<T> p_61596_, Predicate<T> p_61597_) -
create
public static <T extends Enum<T> & StringRepresentable> EnumProperty<T> create(String p_61599_, Class<T> p_61600_, T... p_61601_) -
create
public static <T extends Enum<T> & StringRepresentable> EnumProperty<T> create(String p_61591_, Class<T> p_61592_, Collection<T> p_61593_)
-