Class FabricLootSupplierBuilder

java.lang.Object
net.minecraft.loot.LootTable.Builder
net.fabricmc.fabric.api.loot.v1.FabricLootSupplierBuilder
All Implemented Interfaces:
net.minecraft.loot.function.LootFunctionConsumingBuilder<net.minecraft.loot.LootTable.Builder>

@Deprecated public class FabricLootSupplierBuilder extends net.minecraft.loot.LootTable.Builder
Deprecated.
Replaced with FabricLootTableBuilder.
  • Constructor Details

    • FabricLootSupplierBuilder

      protected FabricLootSupplierBuilder()
      Deprecated.
  • Method Details

    • pool

      public FabricLootSupplierBuilder pool(net.minecraft.loot.LootPool.Builder pool)
      Deprecated.
      Overrides:
      pool in class net.minecraft.loot.LootTable.Builder
    • type

      public FabricLootSupplierBuilder type(net.minecraft.loot.context.LootContextType type)
      Deprecated.
      Overrides:
      type in class net.minecraft.loot.LootTable.Builder
    • apply

      public FabricLootSupplierBuilder apply(net.minecraft.loot.function.LootFunction.Builder function)
      Deprecated.
      Specified by:
      apply in interface net.minecraft.loot.function.LootFunctionConsumingBuilder<net.minecraft.loot.LootTable.Builder>
      Overrides:
      apply in class net.minecraft.loot.LootTable.Builder
    • withPool

      public FabricLootSupplierBuilder withPool(net.minecraft.loot.LootPool pool)
      Deprecated.
    • withFunction

      public FabricLootSupplierBuilder withFunction(net.minecraft.loot.function.LootFunction function)
      Deprecated.
    • withPools

      public FabricLootSupplierBuilder withPools(Collection<net.minecraft.loot.LootPool> pools)
      Deprecated.
    • withFunctions

      public FabricLootSupplierBuilder withFunctions(Collection<net.minecraft.loot.function.LootFunction> functions)
      Deprecated.
    • copyFrom

      public FabricLootSupplierBuilder copyFrom(net.minecraft.loot.LootTable supplier)
      Deprecated.
      Copies the pools and functions of the supplier to this builder. This is equal to copyFrom(supplier, false).
    • copyFrom

      public FabricLootSupplierBuilder copyFrom(net.minecraft.loot.LootTable supplier, boolean copyType)
      Deprecated.
      Copies the pools and functions of the supplier to this builder. If copyType is true, the type of the supplier is also copied.
    • builder

      public static FabricLootSupplierBuilder builder()
      Deprecated.
    • of

      public static FabricLootSupplierBuilder of(net.minecraft.loot.LootTable supplier)
      Deprecated.