net.minecraft.world.level.block.state

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

cei
net.minecraft.world.level.block.state.StateDefinition
net.minecraft.class_2689
net.minecraft.state.StateManager
net.minecraft.state.StateContainer
net.minecraft.server.v1_16_R3.BlockStateList

Field summary

Modifier and TypeField
private static final Pattern
a
NAME_PATTERN
field_12314
VALID_NAME_PATTERN
field_185921_a
private final O
b
owner
field_12317
owner
field_177627_c
private final com.google.common.collect.ImmutableSortedMap<String, Property<?>>
c
propertiesByName
field_12316
properties
field_177624_d
private final com.google.common.collect.ImmutableList<S>
d
states
field_12315
states
field_177625_e

Constructor summary

ModifierConstructor
protected (Function<O, S> arg0, O arg1, 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, cfj<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)
method_30040(com.mojang.serialization.MapCodec<S> arg0, Supplier<S> arg1, String arg2, Property<T> arg3)
func_241487_a_(com.mojang.serialization.MapCodec<S> arg0, Supplier<S> arg1, String arg2, Property<T> arg3)
public com.google.common.collect.ImmutableList<S>
a()
getPossibleStates()
method_11662()
getStates()
func_177619_a()
public S
b()
any()
method_11664()
getDefaultState()
func_177621_b()
getBlockData()
public O
c()
getOwner()
method_11660()
getOwner()
func_177622_c()
getBlock()
public Collection<Property<?>>
d()
getProperties()
method_11659()
getProperties()
func_177623_d()
public Property<?>
a(String arg0)
getProperty(String arg0)
method_11663(String arg0)
getProperty(String name)
func_185920_a(String arg0)