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 ewo$a
  • Field Details

    • worldContext

      private final LootWorldContext worldContext
      Mappings:
      Namespace Name Mixin selector
      named worldContext Lnet/minecraft/loot/context/LootContext$Builder;worldContext:Lnet/minecraft/loot/context/LootWorldContext;
      intermediary field_44882 Lnet/minecraft/class_47$class_48;field_44882:Lnet/minecraft/class_8567;
      official a Lewo$a;a:Lewr;
    • 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 Lewo$a;b:Lbam;
  • Constructor Details

    • Builder

      public Builder(LootWorldContext worldContext)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/context/LootContext$Builder;<init>(Lnet/minecraft/loot/context/LootWorldContext;)V
      intermediary <init> Lnet/minecraft/class_47$class_48;<init>(Lnet/minecraft/class_8567;)V
      official <init> Lewo$a;<init>(Lewr;)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 Lewo$a;a(J)Lewo$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 Lewo$a;a(Lbam;)Lewo$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 Lewo$a;a()Lash;
    • 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 Lewo$a;a(Ljava/util/Optional;)Lewo;