Class PatchouliBookProvider

java.lang.Object
xyz.brassgoggledcoders.patchouliprovider.PatchouliBookProvider
All Implemented Interfaces:
net.minecraft.data.DataProvider

public abstract class PatchouliBookProvider extends Object implements net.minecraft.data.DataProvider
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.data.DataProvider

    net.minecraft.data.DataProvider.Factory<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final net.minecraft.data.PackOutput.PathProvider
     
    protected final net.minecraft.data.PackOutput.PathProvider
     

    Fields inherited from interface net.minecraft.data.DataProvider

    FIXED_ORDER_FIELDS, INDENT_WIDTH, KEY_COMPARATOR
  • Constructor Summary

    Constructors
    Constructor
    Description
    PatchouliBookProvider(net.minecraft.data.PackOutput packOutput, String modid, String locale, CompletableFuture<net.minecraft.core.HolderLookup.Provider> registries)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
    addBooks(Consumer<BookBuilder> consumer, net.minecraft.core.HolderLookup.Provider provider)
     
    createBookBuilder(String id, String name, String landingText, net.minecraft.core.HolderLookup.Provider provider)
     
    Gets a name for this provider, to use in logging.
    run(net.minecraft.data.CachedOutput cache)
    Performs this provider's action.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • datapackProvider

      protected final net.minecraft.data.PackOutput.PathProvider datapackProvider
    • assetsProvider

      protected final net.minecraft.data.PackOutput.PathProvider assetsProvider
  • Constructor Details

    • PatchouliBookProvider

      public PatchouliBookProvider(net.minecraft.data.PackOutput packOutput, String modid, String locale, CompletableFuture<net.minecraft.core.HolderLookup.Provider> registries)
  • Method Details

    • run

      public CompletableFuture<?> run(@Nonnull net.minecraft.data.CachedOutput cache)
      Performs this provider's action.
      Specified by:
      run in interface net.minecraft.data.DataProvider
      Parameters:
      cache - the cache
      Returns:
      the completable future
    • addBooks

      protected abstract void addBooks(Consumer<BookBuilder> consumer, net.minecraft.core.HolderLookup.Provider provider)
    • createBookBuilder

      public BookBuilder createBookBuilder(String id, String name, String landingText, net.minecraft.core.HolderLookup.Provider provider)
    • getName

      @Nonnull public String getName()
      Gets a name for this provider, to use in logging.
      Specified by:
      getName in interface net.minecraft.data.DataProvider