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

Type Parameters:
C - component type
B - builder type
All Superinterfaces:
AbstractBuilder<C>, ComponentBuilder<C,B>, ComponentBuilderApplicable, ComponentLike, MutableStyleSetter<B>, StyleSetter<B>
All Known Subinterfaces:
BlockNBTComponent.Builder, EntityNBTComponent.Builder, StorageNBTComponent.Builder

public sealed interface NBTComponentBuilder<C extends NBTComponent<C>,B extends NBTComponentBuilder<C,B>> extends ComponentBuilder<C,B> permits BlockNBTComponent.Builder, EntityNBTComponent.Builder, StorageNBTComponent.Builder (not exhaustive)
An NBT component builder.
Since:
4.0.0
  • Method Details

    • nbtPath

      @Contract("_ -> this") B nbtPath(String nbtPath)
      Sets the NBT path content.
      Parameters:
      nbtPath - the NBT path
      Returns:
      this builder
      Since:
      4.0.0
    • interpret

      @Contract("_ -> this") B interpret(boolean interpret)
      Sets whether to interpret.
      Parameters:
      interpret - if we should be interpreting
      Returns:
      this builder
      Since:
      4.0.0
    • separator

      @Contract("_ -> this") B separator(@Nullable ComponentLike separator)
      Sets the separator.
      Parameters:
      separator - the separator
      Returns:
      this builder
      Since:
      4.8.0