Interface NBTComponent<C extends NBTComponent<C,​B>,​B extends NBTComponentBuilder<C,​B>>

All Superinterfaces:
Buildable<C,​B>, BuildableComponent<C,​B>, Component, ComponentBuilderApplicable, ComponentLike, net.kyori.examination.Examinable, HoverEventSource<Component>
All Known Subinterfaces:
BlockNBTComponent, EntityNBTComponent, StorageNBTComponent

public interface NBTComponent<C extends NBTComponent<C,​B>,​B extends NBTComponentBuilder<C,​B>>
extends BuildableComponent<C,​B>
An NBT component.
Since:
4.0.0
  • Method Details

    • nbtPath

      @NonNull String nbtPath()
      Gets the NBT path.
      Returns:
      the NBT path
      Since:
      4.0.0
    • nbtPath

      @NonNull C nbtPath​(@NonNull String nbtPath)
      Sets the NBT path.
      Parameters:
      nbtPath - the NBT path
      Returns:
      an NBT component
      Since:
      4.0.0
    • interpret

      boolean interpret()
      Gets if we should be interpreting.
      Returns:
      if we should be interpreting
      Since:
      4.0.0
    • interpret

      @NonNull C interpret​(boolean interpret)
      Sets if we should be interpreting.
      Parameters:
      interpret - if we should be interpreting.
      Returns:
      an NBT component
      Since:
      4.0.0