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 eqj$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 Leqj$a;a:Leqm;
    • 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 Leqj$a;b:Lazh;
  • 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> Leqj$a;<init>(Leqm;)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 Leqj$a;a(J)Leqj$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 Leqj$a;a()Larf;
    • 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 Leqj$a;a(Ljava/util/Optional;)Leqj;