Package net.minecraft.core.component
Class DataComponentPatch
java.lang.Object
net.minecraft.core.component.DataComponentPatch
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class(package private) static final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DataComponentPatch> static final DataComponentPatch(package private) final it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>> private static final Stringstatic final StreamCodec<RegistryFriendlyByteBuf, DataComponentPatch> -
Constructor Summary
ConstructorsConstructorDescriptionDataComponentPatch(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>> p_329783_) -
Method Summary
Modifier and TypeMethodDescriptionstatic DataComponentPatch.Builderbuilder()Set<Map.Entry<DataComponentType<?>, Optional<?>>> entrySet()booleanforget(Predicate<DataComponentType<?>> p_333810_) <T> Optional<? extends T> get(DataComponentType<? extends T> p_330742_) inthashCode()booleanisEmpty()intsize()split()toString()(package private) static StringtoString(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>> p_335670_)
-
Field Details
-
EMPTY
-
CODEC
-
STREAM_CODEC
-
REMOVED_PREFIX
- See Also:
-
map
-
-
Constructor Details
-
DataComponentPatch
DataComponentPatch(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>> p_329783_)
-
-
Method Details
-
builder
-
get
-
entrySet
-
size
public int size() -
forget
-
isEmpty
public boolean isEmpty() -
split
-
equals
-
hashCode
public int hashCode() -
toString
-
toString
static String toString(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>> p_335670_)
-