Class LegacyFabricSoundProvider

java.lang.Object
io.github.vampirestudios.vampirelib.api.datagen.LegacyFabricSoundProvider
All Implemented Interfaces:
net.minecraft.data.DataProvider

public abstract class LegacyFabricSoundProvider extends Object implements net.minecraft.data.DataProvider
Register an instance of the class with FabricDataGenerator.Pack.addProvider(net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator.Pack.Factory<T>) in a DataGeneratorEntrypoint.
  • Nested Class Summary

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

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

    Fields
    Modifier and Type
    Field
    Description
    protected final net.fabricmc.fabric.api.datagen.v1.FabricDataOutput
     
    protected final String
     

    Fields inherited from interface net.minecraft.data.DataProvider

    FIXED_ORDER_FIELDS, KEY_COMPARATOR
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    LegacyFabricSoundProvider(net.fabricmc.fabric.api.datagen.v1.FabricDataOutput dataOutput)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected abstract void
    Registers all sound instances to be generated.
    run(@NotNull net.minecraft.data.CachedOutput cache)
     

    Methods inherited from class java.lang.Object

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

    • dataOutput

      protected final net.fabricmc.fabric.api.datagen.v1.FabricDataOutput dataOutput
    • modId

      protected final String modId
  • Constructor Details

    • LegacyFabricSoundProvider

      protected LegacyFabricSoundProvider(net.fabricmc.fabric.api.datagen.v1.FabricDataOutput dataOutput)
  • Method Details

    • registerSounds

      protected abstract void registerSounds(Consumer<SoundDefinition> registry)
      Registers all sound instances to be generated.
      Parameters:
      registry - The registry to validate and create files
    • run

      public CompletableFuture<?> run(@NotNull @NotNull net.minecraft.data.CachedOutput cache)
      Specified by:
      run in interface net.minecraft.data.DataProvider
    • getName

      public String getName()
      Specified by:
      getName in interface net.minecraft.data.DataProvider