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.unmapped.C_cgckxfsw
net.minecraft.state.property.EnumProperty
net.minecraft.state.property.EnumProperty
net.minecraft.src.C_2092_
net.minecraft.world.level.block.state.properties.BlockStateEnum

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public List<T>
a()
getPossibleValues()
method_11898()
m_jejjdmtc()
getValues()
getValues()
m_6908_()
public Optional<T>
b(String arg0)
getValue(String arg0)
method_11900(String arg0)
m_umgcucjc(String arg0)
parse(String arg0)
parse(String arg0)
m_6215_(String arg0)
public String
a(T arg0)
getName(T arg0)
method_11846(T arg0)
m_aldrvuzc(T arg0)
name(T arg0)
name(T arg0)
m_6940_(T arg0)
public int
b(T arg0)
getInternalIndex(T arg0)
method_64221(T arg0)
m_plivkqfr(T arg0)
ordinal(T arg0)
m_xzbzcxgu(T arg0)
m_352160_(T arg0)
public int
b()
generateHashCode()
method_11799()
m_rdgegnio()
computeHashCode()
computeHashCode()
m_6310_()
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)
m_kyopntfc(String arg0, Class<T> arg1)
of(String name, Class<T> type)
of(String name, Class<T> type)
m_61587_(String p_61588_, Class<T> p_61589_)
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)
m_iruebiqb(String arg0, Class<T> arg1, Predicate<T> arg2)
of(String name, Class<T> type, Predicate<T> filter)
of(String name, Class<T> type, Predicate<T> filter)
m_61594_(String p_61595_, Class<T> p_61596_, Predicate<T> p_61597_)
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)
m_bwnxhtoo(String arg0, Class<T> arg1, T... arg2)
of(String name, Class<T> type, T... values)
of(String name, Class<T> type, T... values)
m_61598_(String p_61599_, Class<T> p_61600_, T... p_61601_)
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)
m_xxhhjvgj(String arg0, Class<T> arg1, List<T> arg2)
of(String name, Class<T> type, List<T> values)
m_xxhhjvgj(String name, Class<T> type, List<T> coll)
m_61590_(String p_61591_, Class<T> p_61592_, List<T> p_367534_)