net.minecraft.world.level.block.state

public abstract class StateHolder<O, S>

dxa
net.minecraft.world.level.block.state.StateHolder
net.minecraft.class_2688
net.minecraft.unmapped.C_jccsnmmo
net.minecraft.state.State
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
b
NAME_TAG
field_31385
f_jfhcmoam
NAME
NAME
f_155962_
public static final String
c
PROPERTIES_TAG
field_31386
f_uimyvlhv
PROPERTIES
PROPERTIES
f_155963_
private static final Function<Map$Entry<Property<?>, Comparable<?>>, String>
a
PROPERTY_ENTRY_TO_STRING_FUNCTION
field_24737
f_rietsbrf
PROPERTY_MAP_PRINTER
PROPERTY_MAP_PRINTER
f_61110_
protected final O
d
owner
field_24739
f_ihqbjser
owner
owner
f_61112_
private final it.unimi.dsi.fastutil.objects.Reference2ObjectArrayMap<Property<?>, Comparable<?>>
f
values
field_24738
f_tqxahffc
propertyMap
entries
f_61111_
private Map<Property<?>, S[]>
g
neighbours
field_24741
f_ghnxhppi
withMap
withTable
f_61114_
protected final com.mojang.serialization.MapCodec<S>
e
propertiesCodec
field_24740
f_qhlfycmi
codec
codec
f_61113_

Constructor summary

ModifierConstructor
protected (O owner, it.unimi.dsi.fastutil.objects.Reference2ObjectArrayMap<Property<?>, Comparable<?>> propertyMap, com.mojang.serialization.MapCodec<S> codec)

Method summary

Modifier and TypeMethod
public <T extends Comparable<T>> S
a(dya<T> arg0)
cycle(Property<T> arg0)
method_28493(class_2769<T> arg0)
m_ypxyfxhw(C_vzlztuyw<T> arg0)
cycle(Property<T> property)
cycle(Property<T> property)
m_61122_(C_2097_<T> arg0)
protected static <T> T
a(List<T> arg0, T arg1)
findNextInCollection(List<T> arg0, T arg1)
method_28495(List<T> arg0, T arg1)
m_lunstvpt(List<T> arg0, T arg1)
getNext(List<T> values, T value)
getNext(List<T> values, T value)
m_61130_(List<T> p_366325_, T p_61132_)
public Collection<Property<?>>
F()
getProperties()
method_28501()
m_sqvnydii()
getProperties()
getProperties()
m_61147_()
public <T extends Comparable<T>> boolean
b(dya<T> arg0)
hasProperty(Property<T> arg0)
method_28498(class_2769<T> arg0)
m_hwewlcoy(C_vzlztuyw<T> arg0)
contains(Property<T> property)
contains(Property<T> property)
m_61138_(C_2097_<T> arg0)
public <T extends Comparable<T>> T
c(dya<T> arg0)
getValue(Property<T> arg0)
method_11654(class_2769<T> arg0)
m_robwljgm(C_vzlztuyw<T> arg0)
get(Property<T> property)
getOrThrow(Property<T> property)
m_61143_(C_2097_<T> arg0)
public <T extends Comparable<T>> Optional<T>
d(dya<T> arg0)
getOptionalValue(Property<T> arg0)
method_28500(class_2769<T> arg0)
m_rftbdubz(C_vzlztuyw<T> arg0)
getOrEmpty(Property<T> property)
getOrEmpty(Property<T> property)
m_61145_(C_2097_<T> arg0)
public <T extends Comparable<T>> T
a(dya<T> arg0, T arg1)
getValueOrElse(Property<T> arg0, T arg1)
method_61767(class_2769<T> arg0, T arg1)
m_mnabgcvu(C_vzlztuyw<T> arg0, T arg1)
get(Property<T> property, T fallback)
getOrDefault(Property<T> property, T defaultValue)
m_357504_(C_2097_<T> p_364048_, T arg1)
public <T extends Comparable<T>> T
e(dya<T> arg0)
getNullableValue(Property<T> arg0)
method_61768(class_2769<T> arg0)
m_kmxkqleq(C_vzlztuyw<T> arg0)
getNullable(Property<T> property)
get(Property<T> property)
m_353031_(C_2097_<T> arg0)
public <T extends Comparable<T>, V extends T> S
b(dya<T> arg0, V arg1)
setValue(Property<T> arg0, V arg1)
method_11657(class_2769<T> arg0, V arg1)
m_kqntbesr(C_vzlztuyw<T> arg0, V arg1)
with(Property<T> property, V value)
with(Property<T> property, V value)
m_61124_(C_2097_<T> p_61126_, V arg1)
public <T extends Comparable<T>, V extends T> S
c(dya<T> arg0, V arg1)
trySetValue(Property<T> arg0, V arg1)
method_47968(class_2769<T> arg0, V arg1)
m_ikdfqaud(C_vzlztuyw<T> arg0, V arg1)
withIfExists(Property<T> property, V value)
withIfExists(Property<T> property, V value)
m_263224_(C_2097_<T> p_263334_, V arg1)
private <T extends Comparable<T>, V extends T> S
a(dya<T> arg0, V arg1, Comparable<?> arg2)
setValueInternal(Property<T> arg0, V arg1, Comparable<?> arg2)
method_64216(class_2769<T> arg0, V arg1, Comparable<?> arg2)
m_znictpep(C_vzlztuyw<T> arg0, V arg1, Comparable<?> arg2)
with(Property<T> property, V newValue, Comparable<?> oldValue)
withImpl(Property<T> property, V newValue, Comparable<?> oldValue)
m_353207_(C_2097_<T> p_367503_, V p_369806_, Comparable<?> arg2)
public void
a(Map<Map<dya<?>, Comparable<?>>, S> arg0)
populateNeighbours(Map<Map<Property<?>, Comparable<?>>, S> arg0)
method_28496(Map<Map<class_2769<?>, Comparable<?>>, S> arg0)
m_swbifsfc(Map<Map<C_vzlztuyw<?>, Comparable<?>>, S> arg0)
createWithMap(Map<Map<Property<?>, Comparable<?>>, S> states)
createWithTable(Map<Map<Property<?>, Comparable<?>>, S> states)
m_61133_(Map<Map<C_2097_<?>, Comparable<?>>, S> arg0)
private Map<Property<?>, Comparable<?>>
d(dya<?> arg0, Comparable<?> arg1)
makeNeighbourValues(Property<?> arg0, Comparable<?> arg1)
method_28499(class_2769<?> arg0, Comparable<?> arg1)
m_elactccz(C_vzlztuyw<?> arg0, Comparable<?> arg1)
toMapWith(Property<?> property, Comparable<?> value)
toMapWith(Property<?> property, Comparable<?> value)
m_61140_(C_2097_<?> p_61142_, Comparable<?> arg1)
public Map<Property<?>, Comparable<?>>
G()
getValues()
method_11656()
m_vusxcizj()
getEntries()
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)
m_fkfpkeyf(com.mojang.serialization.Codec<O> arg0, Function<O, S> arg1)
createCodec(com.mojang.serialization.Codec<O> codec, Function<O, S> ownerToStateFunction)
createCodec(com.mojang.serialization.Codec<O> codec, Function<O, S> defaultGetter)
m_61127_(com.mojang.serialization.Codec<O> p_61128_, Function<O, S> p_61129_)