Package io.papermc.paper.datacomponent
Interface DataComponentType
- All Known Subinterfaces:
DataComponentType.NonValued,DataComponentType.Valued<T>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this data component type is persistent, or that it will be saved with any itemstack it's attached to.
-
Method Details
-
isPersistent
boolean isPersistent()Checks if this data component type is persistent, or that it will be saved with any itemstack it's attached to.- Returns:
trueif persistent,falseotherwise
-