Interface DataPackEntryBuilder<T,TT extends DataPackEntry<TT>,B extends DataPackEntryBuilder<T,TT,B>>

All Superinterfaces:
AbstractBuilder<TT>, Builder<TT,B>, CopyableBuilder<TT,B>, ResettableBuilder<TT,B>, ResourceKeyedBuilder<TT,B>
All Known Subinterfaces:
ArtTypeTemplate.Builder, BiomeTemplate.Builder, CarverTemplate.Builder, ChatTypeTemplate.Builder, DamageTypeTemplate.Builder, DensityFunctionTemplate.Builder, FeatureTemplate.Builder, JigsawPoolTemplate.Builder, NoiseGeneratorConfigTemplate.Builder, NoiseTemplate.Builder, PlacedFeatureTemplate.Builder, ProcessorListTemplate.Builder, StructureSetTemplate.Builder, StructureTemplate.Builder, WorldTypeTemplate.Builder

public interface DataPackEntryBuilder<T,TT extends DataPackEntry<TT>,B extends DataPackEntryBuilder<T,TT,B>> extends ResourceKeyedBuilder<TT,B>, CopyableBuilder<TT,B>
  • Method Details

    • pack

      B pack(DataPack<TT> pack)
      Sets the data pack
      Parameters:
      pack - The data pack
      Returns:
      This builder, for chaining
    • fromValue

      B fromValue(T value)
      Initializes the builder with given value.
      Parameters:
      value - The template value
      Returns:
      This builder, for chaining
    • fromDataPack

      B fromDataPack(DataView datapack) throws IOException
      Initializes the builder with the data from given DataView.

      DataSerializable.toContainer()

      Parameters:
      datapack - The data pack entry data
      Returns:
      This builder, for chaining
      Throws:
      IOException