Interface DataPatch
- All Known Implementing Classes:
DataPatch.Assign, DataPatch.Flag, DataPatch.Remove
One pass-through change to an item's data components, applied without localization.
The set of permitted subtypes may grow in a 7.x minor release. Code outside the framework
must not switch over it exhaustively without a
default branch.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordAssigns a component value unchanged.static final recordSets a flag component.static final recordRemoves a prototype component. -
Method Summary
Modifier and TypeMethodDescriptionio.papermc.paper.datacomponent.DataComponentTypetype()Returns the component type to change.
-
Method Details
-
type
io.papermc.paper.datacomponent.DataComponentType type()Returns the component type to change.
-