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

    • world

      private final ServerWorld world
      Mappings:
      Namespace Name Mixin selector
      official a Ldrf$a;a:Lafo;
      intermediary field_930 Lnet/minecraft/class_47$class_48;field_930:Lnet/minecraft/class_3218;
      named world Lnet/minecraft/loot/context/LootContext$Builder;world:Lnet/minecraft/server/world/ServerWorld;
    • parameters

      private final Map<LootContextParameter<?>,Object> parameters
      Mappings:
      Namespace Name Mixin selector
      official b Ldrf$a;b:Ljava/util/Map;
      intermediary field_932 Lnet/minecraft/class_47$class_48;field_932:Ljava/util/Map;
      named parameters Lnet/minecraft/loot/context/LootContext$Builder;parameters:Ljava/util/Map;
    • drops

      private final Map<Identifier,LootContext.Dropper> drops
      Mappings:
      Namespace Name Mixin selector
      official c Ldrf$a;c:Ljava/util/Map;
      intermediary field_933 Lnet/minecraft/class_47$class_48;field_933:Ljava/util/Map;
      named drops Lnet/minecraft/loot/context/LootContext$Builder;drops:Ljava/util/Map;
    • random

      private Random random
      Mappings:
      Namespace Name Mixin selector
      official d Ldrf$a;d:Lalu;
      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;
    • luck

      private float luck
      Mappings:
      Namespace Name Mixin selector
      official e Ldrf$a;e:F
      intermediary field_931 Lnet/minecraft/class_47$class_48;field_931:F
      named luck Lnet/minecraft/loot/context/LootContext$Builder;luck:F
  • Constructor Details

    • Builder

      public Builder(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldrf$a;<init>(Lafo;)V
      intermediary <init> Lnet/minecraft/class_47$class_48;<init>(Lnet/minecraft/class_3218;)V
      named <init> Lnet/minecraft/loot/context/LootContext$Builder;<init>(Lnet/minecraft/server/world/ServerWorld;)V
  • Method Details

    • random

      public LootContext.Builder random(Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Ldrf$a;a(Lalu;)Ldrf$a;
      intermediary method_311 Lnet/minecraft/class_47$class_48;method_311(Lnet/minecraft/class_5819;)Lnet/minecraft/class_47$class_48;
      named random Lnet/minecraft/loot/context/LootContext$Builder;random(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/loot/context/LootContext$Builder;
    • random

      public LootContext.Builder random(long seed)
      Mappings:
      Namespace Name Mixin selector
      official a Ldrf$a;a(J)Ldrf$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;
    • random

      public LootContext.Builder random(long seed, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Ldrf$a;a(JLalu;)Ldrf$a;
      intermediary method_310 Lnet/minecraft/class_47$class_48;method_310(JLnet/minecraft/class_5819;)Lnet/minecraft/class_47$class_48;
      named random Lnet/minecraft/loot/context/LootContext$Builder;random(JLnet/minecraft/util/math/random/Random;)Lnet/minecraft/loot/context/LootContext$Builder;
    • luck

      public LootContext.Builder luck(float luck)
      Mappings:
      Namespace Name Mixin selector
      official a Ldrf$a;a(F)Ldrf$a;
      intermediary method_303 Lnet/minecraft/class_47$class_48;method_303(F)Lnet/minecraft/class_47$class_48;
      named luck Lnet/minecraft/loot/context/LootContext$Builder;luck(F)Lnet/minecraft/loot/context/LootContext$Builder;
    • parameter

      public <T> LootContext.Builder parameter(LootContextParameter<T> key, T value)
      Mappings:
      Namespace Name Mixin selector
      official a Ldrf$a;a(Ldtk;Ljava/lang/Object;)Ldrf$a;
      intermediary method_312 Lnet/minecraft/class_47$class_48;method_312(Lnet/minecraft/class_169;Ljava/lang/Object;)Lnet/minecraft/class_47$class_48;
      named parameter Lnet/minecraft/loot/context/LootContext$Builder;parameter(Lnet/minecraft/loot/context/LootContextParameter;Ljava/lang/Object;)Lnet/minecraft/loot/context/LootContext$Builder;
    • optionalParameter

      public <T> LootContext.Builder optionalParameter(LootContextParameter<T> key, @Nullable T value)
      Mappings:
      Namespace Name Mixin selector
      official b Ldrf$a;b(Ldtk;Ljava/lang/Object;)Ldrf$a;
      intermediary method_306 Lnet/minecraft/class_47$class_48;method_306(Lnet/minecraft/class_169;Ljava/lang/Object;)Lnet/minecraft/class_47$class_48;
      named optionalParameter Lnet/minecraft/loot/context/LootContext$Builder;optionalParameter(Lnet/minecraft/loot/context/LootContextParameter;Ljava/lang/Object;)Lnet/minecraft/loot/context/LootContext$Builder;
    • putDrop

      public LootContext.Builder putDrop(Identifier id, LootContext.Dropper value)
      Mappings:
      Namespace Name Mixin selector
      official a Ldrf$a;a(Laaj;Ldrf$b;)Ldrf$a;
      intermediary method_307 Lnet/minecraft/class_47$class_48;method_307(Lnet/minecraft/class_2960;Lnet/minecraft/class_47$class_49;)Lnet/minecraft/class_47$class_48;
      named putDrop Lnet/minecraft/loot/context/LootContext$Builder;putDrop(Lnet/minecraft/util/Identifier;Lnet/minecraft/loot/context/LootContext$Dropper;)Lnet/minecraft/loot/context/LootContext$Builder;
    • getWorld

      public ServerWorld getWorld()
      Mappings:
      Namespace Name Mixin selector
      official a Ldrf$a;a()Lafo;
      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;
    • get

      public <T> T get(LootContextParameter<T> parameter)
      Mappings:
      Namespace Name Mixin selector
      official a Ldrf$a;a(Ldtk;)Ljava/lang/Object;
      intermediary method_308 Lnet/minecraft/class_47$class_48;method_308(Lnet/minecraft/class_169;)Ljava/lang/Object;
      named get Lnet/minecraft/loot/context/LootContext$Builder;get(Lnet/minecraft/loot/context/LootContextParameter;)Ljava/lang/Object;
    • getNullable

      @Nullable public <T> T getNullable(LootContextParameter<T> parameter)
      Mappings:
      Namespace Name Mixin selector
      official b Ldrf$a;b(Ldtk;)Ljava/lang/Object;
      intermediary method_305 Lnet/minecraft/class_47$class_48;method_305(Lnet/minecraft/class_169;)Ljava/lang/Object;
      named getNullable Lnet/minecraft/loot/context/LootContext$Builder;getNullable(Lnet/minecraft/loot/context/LootContextParameter;)Ljava/lang/Object;
    • build

      public LootContext build(LootContextType type)
      Mappings:
      Namespace Name Mixin selector
      official a Ldrf$a;a(Ldtl;)Ldrf;
      intermediary method_309 Lnet/minecraft/class_47$class_48;method_309(Lnet/minecraft/class_176;)Lnet/minecraft/class_47;
      named build Lnet/minecraft/loot/context/LootContext$Builder;build(Lnet/minecraft/loot/context/LootContextType;)Lnet/minecraft/loot/context/LootContext;