Class LootTableProvider

java.lang.Object
codechicken.lib.datagen.LootTableProvider
All Implemented Interfaces:
net.minecraft.data.DataProvider
Direct Known Subclasses:
LootTableProvider.BlockLootProvider

public abstract class LootTableProvider extends Object implements net.minecraft.data.DataProvider
Created by covers1624 on 7/10/20.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    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 String
     

    Fields inherited from interface net.minecraft.data.DataProvider

    FIXED_ORDER_FIELDS, KEY_COMPARATOR, LOGGER
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    LootTableProvider(net.minecraft.data.PackOutput output, String modId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    registerTable(net.minecraft.resources.ResourceLocation name, net.minecraft.world.level.storage.loot.LootTable table)
     
    protected abstract void
     
    run(net.minecraft.data.CachedOutput cache)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.data.DataProvider

    getName
  • Field Details

    • modId

      protected final String modId
  • Constructor Details

    • LootTableProvider

      protected LootTableProvider(net.minecraft.data.PackOutput output, String modId)
  • Method Details

    • run

      public CompletableFuture<Void> run(net.minecraft.data.CachedOutput cache)
      Specified by:
      run in interface net.minecraft.data.DataProvider
    • registerTables

      protected abstract void registerTables()
    • registerTable

      protected void registerTable(net.minecraft.resources.ResourceLocation name, net.minecraft.world.level.storage.loot.LootTable table)