Modifier and Type | Class and Description |
---|---|
static class |
StateManager.Builder<O,S extends State<O,S>> |
static interface |
StateManager.Factory<O,S> |
Modifier and Type | Field and Description |
---|---|
private O |
owner |
private ImmutableSortedMap<String,Property<?>> |
properties |
private ImmutableList<S> |
states |
private static Pattern |
VALID_NAME_PATTERN |
Modifier | Constructor and Description |
---|---|
protected |
StateManager(Function<O,S> function,
O o,
StateManager.Factory<O,S> factory,
Map<String,Property<?>> propertiesMap) |
Modifier and Type | Method and Description |
---|---|
S |
getDefaultState() |
O |
getOwner() |
Collection<Property<?>> |
getProperties() |
Property<?> |
getProperty(String name) |
ImmutableList<S> |
getStates() |
private static <S extends State<?,S>,T extends Comparable<T>> |
method_30040(com.mojang.serialization.MapCodec<S> mapCodec,
Supplier<S> supplier,
String string,
Property<T> property) |
String |
toString() |
private static final Pattern VALID_NAME_PATTERN
private final O owner
private final ImmutableSortedMap<String,Property<?>> properties
private final ImmutableList<S extends State<O,S>> states
private static <S extends State<?,S>,T extends Comparable<T>> com.mojang.serialization.MapCodec<S> method_30040(com.mojang.serialization.MapCodec<S> mapCodec, Supplier<S> supplier, String string, Property<T> property)
public ImmutableList<S> getStates()
public S getDefaultState()
public O getOwner()
public Collection<Property<?>> getProperties()