net.minecraft.world.level.block.state.properties

public final class EnumProperty<T extends Enum<T> extends StringRepresentable>

extends Property<T>

dys
net.minecraft.world.level.block.state.properties.EnumProperty
net.minecraft.class_2754
net.minecraft.state.property.EnumProperty
net.minecraft.world.level.block.state.properties.BlockStateEnum

Field summary

Modifier and TypeField
private final List<T>
a
values
field_12595
values
private final Map<String, T>
b
names
field_12596
byName
private final int[]
c
ordinalToIndex
field_54329
enumOrdinalToPropertyOrdinal

Constructor summary

ModifierConstructor
private (String name, Class<T> type, List<T> values)

Method summary

Modifier and TypeMethod
public List<T>
a()
getPossibleValues()
method_11898()
getValues()
public Optional<T>
b(String arg0)
getValue(String arg0)
method_11900(String arg0)
parse(String arg0)
public String
a(T arg0)
getName(T arg0)
method_11846(T arg0)
name(T arg0)
public int
b(T arg0)
getInternalIndex(T arg0)
method_64221(T arg0)
ordinal(T arg0)
public int
b()
generateHashCode()
method_11799()
computeHashCode()
public static <T extends Enum<T> extends StringRepresentable> EnumProperty<T>
a(String arg0, Class<T> arg1)
create(String arg0, Class<T> arg1)
method_11850(String arg0, Class<T> arg1)
of(String name, Class<T> type)
public static <T extends Enum<T> extends StringRepresentable> EnumProperty<T>
a(String arg0, Class<T> arg1, Predicate<T> arg2)
create(String arg0, Class<T> arg1, Predicate<T> arg2)
method_11848(String arg0, Class<T> arg1, Predicate<T> arg2)
of(String name, Class<T> type, Predicate<T> filter)
public static <T extends Enum<T> extends StringRepresentable> EnumProperty<T>
a(String arg0, Class<T> arg1, T... arg2)
create(String arg0, Class<T> arg1, T... arg2)
method_11849(String arg0, Class<T> arg1, T... arg2)
of(String name, Class<T> type, T... values)
public static <T extends Enum<T> extends StringRepresentable> EnumProperty<T>
a(String arg0, Class<T> arg1, List<T> arg2)
create(String arg0, Class<T> arg1, List<T> arg2)
method_11847(String arg0, Class<T> arg1, List<T> arg2)
of(String name, Class<T> type, List<T> values)