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 eqw$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 Leqw$a;a:Leqz;
    • 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 Leqw$a;b:Layo;
  • 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> Leqw$a;<init>(Leqz;)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 Leqw$a;a(J)Leqw$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 Leqw$a;a(Layo;)Leqw$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 Leqw$a;a()Laqm;
    • 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 Leqw$a;a(Ljava/util/Optional;)Leqw;