Interface Builder<T,​B extends Builder<T,​B>>

Type Parameters:
T - The type built by the builder
B - The child builder type
All Superinterfaces:
Buildable.Builder<T>, ResettableBuilder<T,​B>
All Known Subinterfaces:
Advancement.Builder, Advancement.Builder.RootStep, AdvancementCriterion.BaseBuilder<T,​B>, AdvancementCriterion.Builder, AttributeModifier.Builder, Ban.Builder, BannerPatternLayer.Builder, BlockDamageSource.Builder, BlockEntityArchetype.Builder, BlockSnapshot.Builder, BlockState.Builder, CheckerboardBiomeConfig.Builder, Command.Builder, CommandResult.Builder, CookingRecipe.Builder, CookingRecipe.Builder.EndStep, CookingRecipe.Builder.IngredientStep, CookingRecipe.Builder.ResultStep, DamageSource.Builder, DamageSource.DamageSourceBuilder<T,​B>, DamageType.Builder, DataHolderBuilder<H,​B>, DataHolderBuilder.Immutable<H,​B>, DataHolderBuilder.Mutable<H,​B>, DataRegistration.Builder, DisplayInfo.Builder, Enchantment.Builder, Enchantment.RandomListBuilder, EndStyleBiomeConfig.Builder, EntityArchetype.Builder, EntityDamageSource.Builder, EntityDamageSource.EntityDamageSourceBuilder<T,​B>, EntitySnapshot.Builder, EventContextKey.Builder<T>, Explosion.Builder, FallingBlockDamageSource.Builder, FilteredTrigger.Builder<C>, FireworkEffect.Builder, Flag.Builder, FlatGeneratorConfig.Builder, FluidStack.Builder, FluidStackSnapshot.Builder, FluidState.Builder, GameRule.Builder<V>, ImmutableDataProviderBuilder<H,​V,​E>, IndirectEntityDamageSource.AbstractBuilder<T,​B>, IndirectEntityDamageSource.Builder, Ingredient.Builder, Inventory.Builder, Inventory.Builder.BuildingStep, InventoryTransactionResult.Builder, InventoryTransactionResult.Builder.PollBuilder, ItemStack.Builder, ItemStackGenerator.Builder, Key.Builder<E,​V>, KeyValueMatcher.Builder<V>, LayeredBiomeConfig.Builder, LocatableBlock.Builder, MultiNoiseBiomeConfig.Builder, MutableDataProviderBuilder<H,​V,​E>, NoiseConfig.Builder, NoiseGeneratorConfig.Builder, Objective.Builder, PaginationList.Builder, PaletteType.Builder<T,​R>, Parameter.FirstOfBuilder, Parameter.SequenceBuilder, Parameter.Subcommand.Builder, Parameter.Value.Builder<T>, ParticleEffect.Builder, PlaceholderComponent.Builder, PlaceholderContext.Builder, PlaceholderParser.Builder, PotionEffect.Builder, Query.Builder, ResourceKey.Builder, ResourceKeyedBuilder<T,​B>, Schematic.Builder, ScoreAdvancementCriterion.Builder, Scoreboard.Builder, Selector.Builder, SerializableDataHolderBuilder<H,​B>, SerializableDataHolderBuilder.Immutable<H,​B>, SerializableDataHolderBuilder.Mutable<H,​B>, ShapedCraftingRecipe.Builder, ShapedCraftingRecipe.Builder.AisleStep, ShapedCraftingRecipe.Builder.AisleStep.ResultStep, ShapedCraftingRecipe.Builder.EndStep, ShapedCraftingRecipe.Builder.ResultStep, ShapedCraftingRecipe.Builder.RowsStep, ShapedCraftingRecipe.Builder.RowsStep.ResultStep, ShapelessCraftingRecipe.Builder, ShapelessCraftingRecipe.Builder.EndStep, ShapelessCraftingRecipe.Builder.ResultStep, SmithingRecipe.Builder, SmithingRecipe.Builder.AdditionStep, SmithingRecipe.Builder.EndStep, SmithingRecipe.Builder.ResultStep, SoundType.Builder, SpecialCraftingRecipe.Builder, SpecialCraftingRecipe.Builder.EndStep, SpecialCraftingRecipe.Builder.ResultStep, State.Builder<S,​B>, StateMatcher.Builder<S,​T>, StoneCutterRecipe.Builder, StoneCutterRecipe.Builder.EndStep, StoneCutterRecipe.Builder.ResultStep, StreamOptions.Builder, StructureGenerationConfig.Builder, TabListEntry.Builder, TagTemplate.Builder<T>, Task.Builder, Team.Builder, TradeOffer.Builder, TradeOfferGenerator.Builder, Trigger.Builder<C>, VariableValueParameters.DynamicChoicesBuilder<T>, VariableValueParameters.LiteralBuilder<T>, VariableValueParameters.NumberRangeBuilder<T>, VariableValueParameters.RegistryEntryBuilder<T>, VariableValueParameters.StaticChoicesBuilder<T>, VariableValueParameters.TextBuilder, ViewableInventory.Builder, ViewableInventory.Builder.EndStep, WorldBorder.Builder, WorldGenerationConfig.Mutable.Builder, WorldTemplate.Builder, WorldTypeEffect.Builder, WorldTypeTemplate.Builder
All Known Implementing Classes:
AbstractDamageSourceBuilder, AbstractEntityDamageSource.AbstractEntityDamageSourceBuilder, AbstractIndirectEntityDamageSource.AbstractIndirectEntityDamageSourceBuilder, Cause.Builder, DamageModifier.Builder, DataTransactionResult.Builder, EventContext.Builder, RespawnLocation.Builder

public interface Builder<T,​B extends Builder<T,​B>> extends Buildable.Builder<T>, ResettableBuilder<T,​B>
A common interface for all builder pattern types.
  • Method Summary

    Modifier and Type
    Method
    Description
    default B
    Resets this builder to a "default" state such that there is no remaining data to set.

    Methods inherited from interface net.kyori.adventure.util.Buildable.Builder

    build
  • Method Details

    • reset

      default B reset()
      Resets this builder to a "default" state such that there is no remaining data to set. This is to be the presumed "default" state.
      Specified by:
      reset in interface ResettableBuilder<T,​B extends Builder<T,​B>>
      Returns:
      This builder, for chaining