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
official dzh$a
intermediary net/minecraft/class_47$class_48
named net/minecraft/loot/context/LootContext$Builder
  • Field Details

    • parameters

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

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

    • Builder

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

    • random

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

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

      public LootContext build(Identifier randomSequenceId)
      Mappings:
      Namespace Name Mixin selector
      official a Ldzh$a;a(Lacq;)Ldzh;
      intermediary method_309 Lnet/minecraft/class_47$class_48;method_309(Lnet/minecraft/class_2960;)Lnet/minecraft/class_47;
      named build Lnet/minecraft/loot/context/LootContext$Builder;build(Lnet/minecraft/util/Identifier;)Lnet/minecraft/loot/context/LootContext;