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.state.State
net.minecraft.world.level.block.state.IBlockDataHolder

Field summary

Modifier and TypeField
public static final String
b
NAME_TAG
field_31385
NAME
public static final String
c
PROPERTIES_TAG
field_31386
PROPERTIES
private static final Function<Map$Entry<Property<?>, Comparable<?>>, String>
a
PROPERTY_ENTRY_TO_STRING_FUNCTION
field_24737
PROPERTY_MAP_PRINTER
protected final O
d
owner
field_24739
owner
private final it.unimi.dsi.fastutil.objects.Reference2ObjectArrayMap<Property<?>, Comparable<?>>
f
values
field_24738
propertyMap
private Map<Property<?>, S[]>
g
neighbours
field_24741
withMap
protected final com.mojang.serialization.MapCodec<S>
e
propertiesCodec
field_24740
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(dya<T> arg0)
cycle(Property<T> arg0)
method_28493(class_2769<T> arg0)
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)
getNext(List<T> values, T value)
public Collection<Property<?>>
F()
getProperties()
method_28501()
getProperties()
public <T extends Comparable<T>> boolean
b(dya<T> arg0)
hasProperty(Property<T> arg0)
method_28498(class_2769<T> arg0)
contains(Property<T> property)
public <T extends Comparable<T>> T
c(dya<T> arg0)
getValue(Property<T> arg0)
method_11654(class_2769<T> arg0)
get(Property<T> property)
public <T extends Comparable<T>> Optional<T>
d(dya<T> arg0)
getOptionalValue(Property<T> arg0)
method_28500(class_2769<T> arg0)
getOrEmpty(Property<T> property)
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)
get(Property<T> property, T fallback)
public <T extends Comparable<T>> T
e(dya<T> arg0)
getNullableValue(Property<T> arg0)
method_61768(class_2769<T> arg0)
getNullable(Property<T> property)
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)
with(Property<T> property, V value)
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)
withIfExists(Property<T> property, V value)
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)
with(Property<T> property, V newValue, Comparable<?> oldValue)
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)
createWithMap(Map<Map<Property<?>, Comparable<?>>, S> states)
private Map<Property<?>, Comparable<?>>
d(dya<?> arg0, Comparable<?> arg1)
makeNeighbourValues(Property<?> arg0, Comparable<?> arg1)
method_28499(class_2769<?> arg0, Comparable<?> arg1)
toMapWith(Property<?> property, Comparable<?> value)
public Map<Property<?>, Comparable<?>>
G()
getValues()
method_11656()
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)
createCodec(com.mojang.serialization.Codec<O> codec, Function<O, S> ownerToStateFunction)