net.minecraft.world.level.block.state

public abstract class StateHolder<O, S>

cyv
net.minecraft.world.level.block.state.StateHolder
net.minecraft.class_2688
net.minecraft.state.State
net.minecraft.src.C_2068_
net.minecraft.world.level.block.state.IBlockDataHolder

Field summary

Modifier and TypeField
public static final String
c
NAME_TAG
field_31385
NAME
f_155962_
public static final String
d
PROPERTIES_TAG
field_31386
PROPERTIES
f_155963_
private static final Function<Map$Entry<Property<?>, Comparable<?>>, String>
a
PROPERTY_ENTRY_TO_STRING_FUNCTION
field_24737
PROPERTY_MAP_PRINTER
f_61110_
protected final O
e
owner
field_24739
owner
f_61112_
private final com.google.common.collect.ImmutableMap<Property<?>, Comparable<?>>
b
values
field_24738
entries
f_61111_
private com.google.common.collect.Table<Property<?>, Comparable<?>, S>
g
neighbours
field_24741
withTable
f_61114_
protected final com.mojang.serialization.MapCodec<S>
f
propertiesCodec
field_24740
codec
f_61113_

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(czw<T> arg0)
cycle(Property<T> arg0)
method_28493(class_2769<T> arg0)
cycle(Property<T> property)
m_61122_(C_2097_<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)
m_61130_(Collection<T> p_61131_, T p_61132_)
public Collection<Property<?>>
x()
getProperties()
method_28501()
getProperties()
m_61147_()
public <T extends Comparable<T>> boolean
b(czw<T> arg0)
hasProperty(Property<T> arg0)
method_28498(class_2769<T> arg0)
contains(Property<T> property)
m_61138_(C_2097_<T> arg0)
public <T extends Comparable<T>> T
c(czw<T> arg0)
getValue(Property<T> arg0)
method_11654(class_2769<T> arg0)
get(Property<T> property)
m_61143_(C_2097_<T> arg0)
public <T extends Comparable<T>> Optional<T>
d(czw<T> arg0)
getOptionalValue(Property<T> arg0)
method_28500(class_2769<T> arg0)
getOrEmpty(Property<T> property)
m_61145_(C_2097_<T> arg0)
public <T extends Comparable<T>, V extends T> S
a(czw<T> arg0, V arg1)
setValue(Property<T> arg0, V arg1)
method_11657(class_2769<T> arg0, V arg1)
with(Property<T> property, V value)
m_61124_(C_2097_<T> p_61126_, V arg1)
public <T extends Comparable<T>, V extends T> S
b(czw<T> arg0, V arg1)
trySetValue(Property<T> arg0, V arg1)
method_47968(class_2769<T> arg0, V arg1)
withIfExists(Property<T> property, V value)
m_263224_(C_2097_<T> p_263334_, V arg1)
public void
a(Map<Map<czw<?>, 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)
m_61133_(Map<Map<C_2097_<?>, Comparable<?>>, S> arg0)
private Map<Property<?>, Comparable<?>>
c(czw<?> arg0, Comparable<?> arg1)
makeNeighbourValues(Property<?> arg0, Comparable<?> arg1)
method_28499(class_2769<?> arg0, Comparable<?> arg1)
toMapWith(Property<?> property, Comparable<?> value)
m_61140_(C_2097_<?> p_61142_, Comparable<?> arg1)
public com.google.common.collect.ImmutableMap<Property<?>, Comparable<?>>
y()
getValues()
method_11656()
getEntries()
m_61148_()
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)
m_61127_(com.mojang.serialization.Codec<O> p_61128_, Function<O, S> p_61129_)