Interface DataComponentType

All Superinterfaces:
Keyed, Keyed
All Known Subinterfaces:
DataComponentType.NonValued, DataComponentType.Valued<T>

@NullMarked @Experimental @NonExtendable public interface DataComponentType extends Keyed
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if this data component type is persistent, or that it will be saved with any itemstack it's attached to.

    Methods inherited from interface org.bukkit.Keyed

    getKey, key
  • 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:
      true if persistent, false otherwise