net.minecraft.world.level.block.state

public class StateDefinition<O, S extends StateHolder<O, S>>

cow
net.minecraft.world.level.block.state.StateDefinition
net.minecraft.class_2689
net.minecraft.unmapped.C_ezfeikaq
net.minecraft.state.StateManager
net.minecraft.state.StateManager
net.minecraft.src.C_2065_
net.minecraft.world.level.block.state.BlockStateList

Field summary

Modifier and TypeField
static final Pattern
a
NAME_PATTERN
field_12314
f_uwlkpgmz
VALID_NAME_PATTERN
VALID_NAME_PATTERN
f_61046_
private final O
b
owner
field_12317
f_rcgtpxta
owner
owner
f_61047_
private final com.google.common.collect.ImmutableSortedMap<String, Property<?>>
c
propertiesByName
field_12316
f_abumealy
properties
properties
f_61048_
private final com.google.common.collect.ImmutableList<S>
d
states
field_12315
f_jnjihwjk
states
states
f_61049_

Constructor summary

ModifierConstructor
protected (Function<O, S> defaultStateGetter, O owner, StateDefinition$Factory<O, S> factory, Map<String, Property<?>> propertiesMap)

Method summary

Modifier and TypeMethod
private static <S extends StateHolder<?, S>, T extends Comparable<T>> com.mojang.serialization.MapCodec<S>
a(com.mojang.serialization.MapCodec<S> arg0, Supplier<S> arg1, String arg2, cpy<T> arg3)
appendPropertyCodec(com.mojang.serialization.MapCodec<S> arg0, Supplier<S> arg1, String arg2, Property<T> arg3)
method_30040(com.mojang.serialization.MapCodec<S> arg0, Supplier<S> arg1, String arg2, class_2769<T> arg3)
m_awxshyln(com.mojang.serialization.MapCodec<S> arg0, Supplier<S> arg1, String arg2, C_vzlztuyw<T> arg3)
addFieldToMapCodec(com.mojang.serialization.MapCodec<S> mapCodec, Supplier<S> defaultStateGetter, String key, Property<T> property)
m_awxshyln(com.mojang.serialization.MapCodec<S> arg0, Supplier<S> arg1, String arg2, Property<T> arg3)
m_61076_(com.mojang.serialization.MapCodec<S> p_61077_, Supplier<S> p_61078_, String p_61079_, C_2097_<T> p_61080_)
public com.google.common.collect.ImmutableList<S>
a()
getPossibleStates()
method_11662()
m_gmmlvrdp()
getStates()
getStates()
m_61056_()
public S
b()
any()
method_11664()
m_txztxpfq()
getDefaultState()
getDefaultState()
m_61090_()
public O
c()
getOwner()
method_11660()
m_alltwqrg()
getOwner()
getOwner()
m_61091_()
public Collection<Property<?>>
d()
getProperties()
method_11659()
m_ctrmtsld()
getProperties()
getProperties()
m_61092_()
public Property<?>
a(String arg0)
getProperty(String arg0)
method_11663(String arg0)
m_wvbitcxo(String arg0)
getProperty(String name)
getProperty(String name)
m_61081_(String arg0)