Package net.minecraft.state
Class StateContainer.Builder<O,S extends StateHolder<O,S>>
- java.lang.Object
-
- net.minecraft.state.StateContainer.Builder<O,S>
-
- Enclosing class:
- StateContainer<O,S extends StateHolder<O,S>>
public static class StateContainer.Builder<O,S extends StateHolder<O,S>> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private O
owner
private java.util.Map<java.lang.String,Property<?>>
properties
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StateContainer.Builder<O,S>
add(Property<?>... p_206894_1_)
StateContainer<O,S>
create(java.util.function.Function<O,S> p_235882_1_, StateContainer.IFactory<O,S> p_235882_2_)
private <T extends java.lang.Comparable<T>>
voidvalidateProperty(Property<T> p_206892_1_)
-
-
-
Constructor Detail
-
Builder
public Builder(O p_i49165_1_)
-
-
Method Detail
-
add
public StateContainer.Builder<O,S> add(Property<?>... p_206894_1_)
-
validateProperty
private <T extends java.lang.Comparable<T>> void validateProperty(Property<T> p_206892_1_)
-
create
public StateContainer<O,S> create(java.util.function.Function<O,S> p_235882_1_, StateContainer.IFactory<O,S> p_235882_2_)
-
-