Class CommonLootTableProvider

java.lang.Object
info.u_team.u_team_core.data.CommonLootTableProvider
All Implemented Interfaces:
CommonDataProvider<BiConsumer<net.minecraft.resources.ResourceLocation,net.minecraft.world.level.storage.loot.LootTable>>, net.minecraft.data.DataProvider

public abstract class CommonLootTableProvider extends Object implements net.minecraft.data.DataProvider, CommonDataProvider<BiConsumer<net.minecraft.resources.ResourceLocation,net.minecraft.world.level.storage.loot.LootTable>>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface info.u_team.u_team_core.data.CommonDataProvider

    CommonDataProvider.NoParam
  • Field Summary

    Fields inherited from interface net.minecraft.data.DataProvider

    FIXED_ORDER_FIELDS, KEY_COMPARATOR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static net.minecraft.world.level.storage.loot.LootTable
    addBasicBlockLootTable(net.minecraft.world.level.ItemLike item)
     
    protected static net.minecraft.world.level.storage.loot.LootTable
    addFortuneBlockLootTable(net.minecraft.world.level.block.Block block, net.minecraft.world.level.ItemLike item)
     
    protected static net.minecraft.world.level.storage.loot.LootTable
    addTileEntityBlockLootTable(net.minecraft.world.level.ItemLike item)
     
     
     
    protected static void
    registerBlock(Supplier<? extends net.minecraft.world.level.block.Block> supplier, net.minecraft.world.level.storage.loot.LootTable lootTable, BiConsumer<net.minecraft.resources.ResourceLocation,net.minecraft.world.level.storage.loot.LootTable> consumer)
     
    protected static void
    registerBlock(net.minecraft.world.level.block.Block block, net.minecraft.world.level.storage.loot.LootTable lootTable, BiConsumer<net.minecraft.resources.ResourceLocation,net.minecraft.world.level.storage.loot.LootTable> consumer)
     
    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 info.u_team.u_team_core.data.CommonDataProvider

    modid, register
  • Constructor Details

    • CommonLootTableProvider

      public CommonLootTableProvider(GenerationData generationData)
  • Method Details

    • getGenerationData

      public GenerationData getGenerationData()
      Specified by:
      getGenerationData in interface CommonDataProvider<BiConsumer<net.minecraft.resources.ResourceLocation,net.minecraft.world.level.storage.loot.LootTable>>
    • run

      public void run(net.minecraft.data.CachedOutput cache) throws IOException
      Specified by:
      run in interface net.minecraft.data.DataProvider
      Throws:
      IOException
    • getName

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

      protected static void registerBlock(Supplier<? extends net.minecraft.world.level.block.Block> supplier, net.minecraft.world.level.storage.loot.LootTable lootTable, BiConsumer<net.minecraft.resources.ResourceLocation,net.minecraft.world.level.storage.loot.LootTable> consumer)
    • registerBlock

      protected static void registerBlock(net.minecraft.world.level.block.Block block, net.minecraft.world.level.storage.loot.LootTable lootTable, BiConsumer<net.minecraft.resources.ResourceLocation,net.minecraft.world.level.storage.loot.LootTable> consumer)
    • addBasicBlockLootTable

      protected static net.minecraft.world.level.storage.loot.LootTable addBasicBlockLootTable(net.minecraft.world.level.ItemLike item)
    • addTileEntityBlockLootTable

      protected static net.minecraft.world.level.storage.loot.LootTable addTileEntityBlockLootTable(net.minecraft.world.level.ItemLike item)
    • addFortuneBlockLootTable

      protected static net.minecraft.world.level.storage.loot.LootTable addFortuneBlockLootTable(net.minecraft.world.level.block.Block block, net.minecraft.world.level.ItemLike item)