Uses of Class
net.minecraft.core.component.DataComponentPatch.Builder
-
Uses of DataComponentPatch.Builder in net.minecraft.core.component
Modifier and TypeMethodDescriptionstatic DataComponentPatch.Builder
DataComponentPatch.builder()
DataComponentPatch.Builder.remove
(DataComponentType<T> p_330845_) DataComponentPatch.Builder.set
(DataComponentType<T> p_332004_, T p_331566_) DataComponentPatch.Builder.set
(TypedDataComponent<T> p_331321_) -
Uses of DataComponentPatch.Builder in net.neoforged.neoforge.event
Modifier and TypeMethodDescriptionvoid
ModifyDefaultComponentsEvent.modify
(ItemLike item, Consumer<DataComponentPatch.Builder> patch) Patches the default components of the givenitem
.void
ModifyDefaultComponentsEvent.modifyMatching
(Predicate<? super Item> predicate, Consumer<DataComponentPatch.Builder> patch) Patches the default components of all items matching the givenpredicate
.