net.minecraft.world.level.block.state

public abstract class StateHolder<O, S>

eaj
net.minecraft.world.level.block.state.StateHolder
net.minecraft.class_2688
net.minecraft.unmapped.C_jccsnmmo
net.minecraft.state.State
net.minecraft.state.State

Field summary

Modifier and TypeField
public static final String
b
NAME_TAG
field_31385
f_jfhcmoam
NAME
NAME
public static final String
c
PROPERTIES_TAG
field_31386
f_uimyvlhv
PROPERTIES
PROPERTIES
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
protected final O
d
owner
field_24739
f_ihqbjser
owner
owner
private final it.unimi.dsi.fastutil.objects.Reference2ObjectArrayMap<Property<?>, Comparable<?>>
f
values
field_24738
f_tqxahffc
propertyMap
entries
private Map<Property<?>, S[]>
g
neighbours
field_24741
f_ghnxhppi
withMap
withTable
protected final com.mojang.serialization.MapCodec<S>
e
propertiesCodec
field_24740
f_qhlfycmi
codec
codec

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(ebk<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)
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)
public Collection<Property<?>>
F()
getProperties()
method_28501()
m_sqvnydii()
getProperties()
getProperties()
public <T extends Comparable<T>> boolean
b(ebk<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)
public <T extends Comparable<T>> T
c(ebk<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)
public <T extends Comparable<T>> Optional<T>
d(ebk<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)
public <T extends Comparable<T>> T
a(ebk<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)
private <T extends Comparable<T>> T
e(ebk<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)
public <T extends Comparable<T>, V extends T> S
b(ebk<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)
public <T extends Comparable<T>, V extends T> S
c(ebk<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)
private <T extends Comparable<T>, V extends T> S
a(ebk<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)
public void
a(Map<Map<ebk<?>, 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)
private Map<Property<?>, Comparable<?>>
d(ebk<?> 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)
public Map<Property<?>, Comparable<?>>
G()
getValues()
method_11656()
m_vusxcizj()
getEntries()
getEntries()
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)