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

Type Parameters:
T - The type built by the builder
B - The child builder type
All Superinterfaces:
AbstractBuilder<T>, ResettableBuilder<T,B>
All Known Subinterfaces:
AdvancementCriterion.BaseBuilder<T,B>, AdvancementCriterion.Builder, AdvancementTemplate.Builder, AdvancementTemplate.Builder.RootStep, ArtTypeTemplate.Builder, AttributeModifier.Builder, Ban.Builder, BannerPatternLayer.Builder, BiomeTemplate.Builder, BlockEntityArchetype.Builder, BlockSnapshot.Builder, BlockState.Builder, CarverTemplate.Builder, ChatTypeTemplate.Builder, CheckerboardBiomeConfig.Builder, Command.Builder, CommandResult.Builder, CookingRecipe.Builder, CookingRecipe.Builder.EndStep, CookingRecipe.Builder.IngredientStep, CookingRecipe.Builder.ResultStep, DamageSource.Builder, DamageTypeTemplate.Builder, DataHolderBuilder<H,B>, DataHolderBuilder.Immutable<H,B>, DataHolderBuilder.Mutable<H,B>, DataPackEntryBuilder<T,TT,B>, DataRegistration.Builder, DensityFunctionTemplate.Builder, DisplayInfo.Builder, Enchantment.Builder, Enchantment.RandomListBuilder, EndStyleBiomeConfig.Builder, EntityArchetype.Builder, EntitySnapshot.Builder, EventContextKey.Builder<T>, Explosion.Builder, FeatureTemplate.Builder, FilteredTrigger.Builder<C>, FireworkEffect.Builder, Flag.Builder, FlatGeneratorConfig.Builder, FluidStack.Builder, FluidStackSnapshot.Builder, FluidState.Builder, GameRule.Builder<V>, ImmutableDataProviderBuilder<H,V,E>, Ingredient.Builder, Inventory.Builder, Inventory.Builder.BuildingStep, InventoryTransactionResult.Builder, InventoryTransactionResult.Builder.PollBuilder, ItemStack.Builder, ItemStackGenerator.Builder, JigsawPoolTemplate.Builder, Key.Builder<E,V>, KeyValueMatcher.Builder<V>, LocatableBlock.Builder, MultiNoiseBiomeConfig.Builder, MutableDataProviderBuilder<H,V,E>, NoiseConfig.Builder, NoiseGeneratorConfigTemplate.Builder, NoiseTemplate.Builder, Objective.Builder, PaginationList.Builder, PaletteType.Builder<T,R>, Parameter.FirstOfBuilder, Parameter.SequenceBuilder, Parameter.Subcommand.Builder, Parameter.Value.Builder<T>, ParticleEffect.Builder, PlacedFeatureTemplate.Builder, PlaceholderComponent.Builder, PlaceholderContext.Builder, PlaceholderParser.Builder, PotionEffect.Builder, ProcessorListTemplate.Builder, Query.Builder, ResourceKey.Builder, ResourceKeyedBuilder<T,B>, Schematic.Builder, SchematicTemplate.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.BaseStep, 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, StructureSetTemplate.Builder, StructureTemplate.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.Builder, WorldTemplate.Builder, WorldTypeEffect.Builder, WorldTypeTemplate.Builder
All Known Implementing Classes:
Cause.Builder, DamageModifier.Builder, DataTransactionResult.Builder, EventContext.Builder, RespawnLocation.Builder

public interface Builder<T,B extends Builder<T,B>> extends AbstractBuilder<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.builder.AbstractBuilder

    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