net.minecraft.world.level.block.state

public abstract class StateHolder<O, S>

eci
net.minecraft.world.level.block.state.StateHolder
net.minecraft.class_2688

Field summary

Modifier and TypeField
public static final String
b
NAME_TAG
field_31385
public static final String
c
PROPERTIES_TAG
field_31386
private static final Function<Map$Entry<Property<?>, Comparable<?>>, String>
a
PROPERTY_ENTRY_TO_STRING_FUNCTION
field_24737
protected final O
d
owner
field_24739
private final it.unimi.dsi.fastutil.objects.Reference2ObjectArrayMap<Property<?>, Comparable<?>>
f
values
field_24738
private Map<Property<?>, S[]>
g
neighbours
field_24741
protected final com.mojang.serialization.MapCodec<S>
e
propertiesCodec
field_24740

Constructor summary

ModifierConstructor
protected (O arg0, it.unimi.dsi.fastutil.objects.Reference2ObjectArrayMap<Property<?>, Comparable<?>> arg1, com.mojang.serialization.MapCodec<S> arg2)

Method summary

Modifier and TypeMethod
public <T extends Comparable<T>> S
a(edj<T> arg0)
cycle(Property<T> arg0)
method_28493(class_2769<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)
public Collection<Property<?>>
F()
getProperties()
method_28501()
public boolean
b(edj<?> arg0)
hasProperty(Property<?> arg0)
method_28498(class_2769<?> arg0)
public <T extends Comparable<T>> T
c(edj<T> arg0)
getValue(Property<T> arg0)
method_11654(class_2769<T> arg0)
public <T extends Comparable<T>> Optional<T>
d(edj<T> arg0)
getOptionalValue(Property<T> arg0)
method_28500(class_2769<T> arg0)
public <T extends Comparable<T>> T
a(edj<T> arg0, T arg1)
getValueOrElse(Property<T> arg0, T arg1)
method_61767(class_2769<T> arg0, T arg1)
private <T extends Comparable<T>> T
e(edj<T> arg0)
getNullableValue(Property<T> arg0)
method_61768(class_2769<T> arg0)
public <T extends Comparable<T>, V extends T> S
b(edj<T> arg0, V arg1)
setValue(Property<T> arg0, V arg1)
method_11657(class_2769<T> arg0, V arg1)
public <T extends Comparable<T>, V extends T> S
c(edj<T> arg0, V arg1)
trySetValue(Property<T> arg0, V arg1)
method_47968(class_2769<T> arg0, V arg1)
private <T extends Comparable<T>, V extends T> S
a(edj<T> arg0, V arg1, Comparable<?> arg2)
setValueInternal(Property<T> arg0, V arg1, Comparable<?> arg2)
method_64216(class_2769<T> arg0, V arg1, Comparable<?> arg2)
public void
a(Map<Map<edj<?>, Comparable<?>>, S> arg0)
populateNeighbours(Map<Map<Property<?>, Comparable<?>>, S> arg0)
method_28496(Map<Map<class_2769<?>, Comparable<?>>, S> arg0)
private Map<Property<?>, Comparable<?>>
d(edj<?> arg0, Comparable<?> arg1)
makeNeighbourValues(Property<?> arg0, Comparable<?> arg1)
method_28499(class_2769<?> arg0, Comparable<?> arg1)
public Map<Property<?>, Comparable<?>>
G()
getValues()
method_11656()
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)