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>

public class FabricLootSupplierBuilder extends net.minecraft.loot.LootTable.Builder
  • Constructor Details

    • FabricLootSupplierBuilder

      protected FabricLootSupplierBuilder()
  • Method Details

    • pool

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

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

      public FabricLootSupplierBuilder apply(net.minecraft.loot.function.LootFunction.Builder function)
      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)
    • withFunction

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

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

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

      public FabricLootSupplierBuilder copyFrom(net.minecraft.loot.LootTable supplier)
      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)
      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()
    • of

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