Class LootContext.Builder

java.lang.Object
net.minecraft.loot.context.LootContext.Builder
Enclosing class:
LootContext

public static class LootContext.Builder extends Object
Mappings:
Namespace Name
named net/minecraft/loot/context/LootContext$Builder
intermediary net/minecraft/class_47$class_48
official err$a
  • Field Details

    • parameters

      private final LootContextParameterSet parameters
      Mappings:
      Namespace Name Mixin selector
      named parameters Lnet/minecraft/loot/context/LootContext$Builder;parameters:Lnet/minecraft/loot/context/LootContextParameterSet;
      intermediary field_44882 Lnet/minecraft/class_47$class_48;field_44882:Lnet/minecraft/class_8567;
      official a Lerr$a;a:Leru;
    • random

      @Nullable private @Nullable Random random
      Mappings:
      Namespace Name Mixin selector
      named random Lnet/minecraft/loot/context/LootContext$Builder;random:Lnet/minecraft/util/math/random/Random;
      intermediary field_934 Lnet/minecraft/class_47$class_48;field_934:Lnet/minecraft/class_5819;
      official b Lerr$a;b:Layw;
  • Constructor Details

    • Builder

      public Builder(LootContextParameterSet parameters)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/context/LootContext$Builder;<init>(Lnet/minecraft/loot/context/LootContextParameterSet;)V
      intermediary <init> Lnet/minecraft/class_47$class_48;<init>(Lnet/minecraft/class_8567;)V
      official <init> Lerr$a;<init>(Leru;)V
  • Method Details

    • random

      public LootContext.Builder random(long seed)
      Mappings:
      Namespace Name Mixin selector
      named random Lnet/minecraft/loot/context/LootContext$Builder;random(J)Lnet/minecraft/loot/context/LootContext$Builder;
      intermediary method_304 Lnet/minecraft/class_47$class_48;method_304(J)Lnet/minecraft/class_47$class_48;
      official a Lerr$a;a(J)Lerr$a;
    • random

      public LootContext.Builder random(Random random)
      Mappings:
      Namespace Name Mixin selector
      named random Lnet/minecraft/loot/context/LootContext$Builder;random(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/loot/context/LootContext$Builder;
      intermediary method_60568 Lnet/minecraft/class_47$class_48;method_60568(Lnet/minecraft/class_5819;)Lnet/minecraft/class_47$class_48;
      official a Lerr$a;a(Layw;)Lerr$a;
    • getWorld

      public ServerWorld getWorld()
      Mappings:
      Namespace Name Mixin selector
      named getWorld Lnet/minecraft/loot/context/LootContext$Builder;getWorld()Lnet/minecraft/server/world/ServerWorld;
      intermediary method_313 Lnet/minecraft/class_47$class_48;method_313()Lnet/minecraft/class_3218;
      official a Lerr$a;a()Laqu;
    • build

      public LootContext build(Optional<Identifier> randomId)
      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/loot/context/LootContext$Builder;build(Ljava/util/Optional;)Lnet/minecraft/loot/context/LootContext;
      intermediary method_309 Lnet/minecraft/class_47$class_48;method_309(Ljava/util/Optional;)Lnet/minecraft/class_47;
      official a Lerr$a;a(Ljava/util/Optional;)Lerr;