Interface DataComponentBuilder<C>

Type Parameters:
C - built component type
All Known Subinterfaces:
BannerPatternLayers.Builder, BlockItemDataProperties.Builder, BundleContents.Builder, ChargedProjectiles.Builder, Consumable.Builder, DeathProtection.Builder, DyedItemColor.Builder, Equippable.Builder, Fireworks.Builder, FoodProperties.Builder, ItemAdventurePredicate.Builder, ItemArmorTrim.Builder, ItemAttributeModifiers.Builder, ItemContainerContents.Builder, ItemEnchantments.Builder, ItemLore.Builder, JukeboxPlayable.Builder, LodestoneTracker.Builder, MapDecorations.Builder, MapItemColor.Builder, PotDecorations.Builder, PotionContents.Builder, ResolvableProfile.Builder, SeededContainerLoot.Builder, SuspiciousStewEffects.Builder, Tool.Builder, Unbreakable.Builder, UseCooldown.Builder, WritableBookContent.Builder, WrittenBookContent.Builder

@NullMarked @Experimental @NonExtendable public interface DataComponentBuilder<C>
Base builder type for all component builders.
  • Method Summary

    Modifier and Type
    Method
    Description
    Builds the immutable component value.
  • Method Details

    • build

      @Contract(value="-> new", pure=true) C build()
      Builds the immutable component value.
      Returns:
      a new component value