net.minecraft.world.level.block.state

public abstract class StateHolder<O, S>

ceg
net.minecraft.world.level.block.state.StateHolder
net.minecraft.class_2688
net.minecraft.state.State
net.minecraft.state.StateHolder
net.minecraft.server.v1_16_R2.IBlockDataHolder

Field summary

Modifier and TypeField
private static final Function<Map$Entry<Property<?>, Comparable<?>>, String>
a
PROPERTY_ENTRY_TO_STRING_FUNCTION
field_24737
PROPERTY_MAP_PRINTER
field_235890_a_
STATE_TO_VALUE
protected final O
c
owner
field_24739
owner
field_235892_c_
private final com.google.common.collect.ImmutableMap<Property<?>, Comparable<?>>
b
values
field_24738
entries
field_235891_b_
private com.google.common.collect.Table<Property<?>, Comparable<?>, S>
e
neighbours
field_24741
withTable
field_235894_e_
protected final com.mojang.serialization.MapCodec<S>
d
propertiesCodec
field_24740
codec
field_235893_d_

Constructor summary

ModifierConstructor
protected (O owner, com.google.common.collect.ImmutableMap<Property<?>, Comparable<?>> entries, com.mojang.serialization.MapCodec<S> codec)

Method summary

Modifier and TypeMethod
public <T extends Comparable<T>> S
a(cfg<T> arg0)
cycle(Property<T> arg0)
method_28493(class_2769<T> arg0)
cycle(Property<T> property)
func_235896_a_(Property<T> arg0)
protected static <T> T
a(Collection<T> arg0, T arg1)
findNextInCollection(Collection<T> arg0, T arg1)
method_28495(Collection<T> arg0, T arg1)
getNext(Collection<T> values, T value)
func_235898_a_(Collection<T> arg0, T arg1)
public Collection<Property<?>>
r()
getProperties()
method_28501()
getProperties()
func_235904_r_()
public <T extends Comparable<T>> boolean
b(cfg<T> arg0)
hasProperty(Property<T> arg0)
method_28498(class_2769<T> arg0)
contains(Property<T> property)
func_235901_b_(Property<T> arg0)
public <T extends Comparable<T>> T
c(cfg<T> arg0)
getValue(Property<T> arg0)
method_11654(class_2769<T> arg0)
get(Property<T> property)
func_177229_b(Property<T> arg0)
get(IBlockState<T> arg0)
public <T extends Comparable<T>> Optional<T>
d(cfg<T> arg0)
getOptionalValue(Property<T> arg0)
method_28500(class_2769<T> arg0)
method_28500(Property<T> property)
func_235903_d_(Property<T> arg0)
public <T extends Comparable<T>, V extends T> S
a(cfg<T> arg0, V arg1)
setValue(Property<T> arg0, V arg1)
method_11657(class_2769<T> arg0, V arg1)
with(Property<T> property, V value)
func_206870_a(Property<T> arg0, V arg1)
set(IBlockState<T> arg0, V arg1)
public void
a(Map<Map<cfg<?>, Comparable<?>>, S> arg0)
populateNeighbours(Map<Map<Property<?>, Comparable<?>>, S> arg0)
method_28496(Map<Map<class_2769<?>, Comparable<?>>, S> arg0)
createWithTable(Map<Map<Property<?>, Comparable<?>>, S> states)
func_235899_a_(Map<Map<Property<?>, Comparable<?>>, S> arg0)
private Map<Property<?>, Comparable<?>>
b(cfg<?> arg0, Comparable<?> arg1)
makeNeighbourValues(Property<?> arg0, Comparable<?> arg1)
method_28499(class_2769<?> arg0, Comparable<?> arg1)
toMapWith(Property<?> property, Comparable<?> value)
func_235902_b_(Property<?> arg0, Comparable<?> arg1)
public com.google.common.collect.ImmutableMap<Property<?>, Comparable<?>>
s()
getValues()
method_11656()
getEntries()
func_206871_b()
getStateMap()
protected static <O, S extends StateHolder<O, S>> com.mojang.serialization.Codec<S>
a(com.mojang.serialization.Codec<O> arg0, Function<O, S> arg1)
codec(com.mojang.serialization.Codec<O> arg0, Function<O, S> arg1)
method_28494(com.mojang.serialization.Codec<O> arg0, Function<O, S> arg1)
createCodec(com.mojang.serialization.Codec<O> arg0, Function<O, S> ownerToStateFunction)
func_235897_a_(com.mojang.serialization.Codec<O> arg0, Function<O, S> arg1)