Package net.minecraft.core.component
Class DataComponentPatch
java.lang.Object
net.minecraft.core.component.DataComponentPatch
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
(package private) static final record
static final record
-
Field Summary
Modifier 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 String
static final StreamCodec
<RegistryFriendlyByteBuf, DataComponentPatch> -
Constructor Summary
ConstructorDescriptionDataComponentPatch
(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>> p_331816_) -
Method Summary
Modifier and TypeMethodDescriptionstatic DataComponentPatch.Builder
builder()
Set
<Map.Entry<DataComponentType<?>, Optional<?>>> entrySet()
boolean
forget
(Predicate<DataComponentType<?>> p_338629_) <T> Optional
<? extends T> get
(DataComponentType<? extends T> p_331532_) int
hashCode()
boolean
isEmpty()
int
size()
split()
toString()
(package private) static String
toString
(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>> p_330935_)
-
Field Details
-
EMPTY
-
CODEC
-
STREAM_CODEC
-
REMOVED_PREFIX
- See Also:
-
map
-
-
Constructor Details
-
DataComponentPatch
DataComponentPatch(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<DataComponentType<?>, Optional<?>> p_331816_)
-
-
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_330935_)
-