net.minecraft.world.level.block.state

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

cus
net.minecraft.world.level.block.state.StateDefinition
net.minecraft.class_2689
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
VALID_NAME_PATTERN
f_61046_
private final O
b
owner
field_12317
owner
f_61047_
private final com.google.common.collect.ImmutableSortedMap<String, Property<?>>
c
propertiesByName
field_12316
properties
f_61048_
private final com.google.common.collect.ImmutableList<S>
d
states
field_12315
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, cvu<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)
addFieldToMapCodec(com.mojang.serialization.MapCodec<S> mapCodec, Supplier<S> defaultStateGetter, String key, Property<T> property)
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()
getStates()
m_61056_()
public S
b()
any()
method_11664()
getDefaultState()
m_61090_()
public O
c()
getOwner()
method_11660()
getOwner()
m_61091_()
public Collection<Property<?>>
d()
getProperties()
method_11659()
getProperties()
m_61092_()
public Property<?>
a(String arg0)
getProperty(String arg0)
method_11663(String arg0)
getProperty(String name)
m_61081_(String arg0)