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 dzk$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 Ldzk$a;a:Ldzq;
      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 Ldzk$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> Ldzk$a;<init>(Ldzq;)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 Ldzk$a;a(J)Ldzk$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 Ldzk$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(@Nullable @Nullable Identifier randomSequenceId)
      Mappings:
      Namespace Name Mixin selector
      official a Ldzk$a;a(Lacq;)Ldzk;
      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;