Package net.minecraft.loot.context
Class LootContext.Builder
java.lang.Object
net.minecraft.loot.context.LootContext.Builder
- Enclosing class:
- LootContext
- Mappings:
Namespace Name official dip$aintermediary net/minecraft/class_47$class_48named net/minecraft/loot/context/LootContext$Builder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map<Identifier,LootContext.Dropper>private floatprivate Map<LootContextParameter<?>,Object>private Randomprivate ServerWorld -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(LootContextType type)<T> Tget(LootContextParameter<T> parameter)<T> TgetNullable(LootContextParameter<T> parameter)getWorld()luck(float luck)optionalParameter(LootContextParameter<T> key, T value)parameter(LootContextParameter<T> key, T value)putDrop(Identifier id, LootContext.Dropper value)random(long seed)
-
Field Details
-
world
- Mappings:
Namespace Name Mixin selector official aLdip$a;a:Labr;intermediary field_930Lnet/minecraft/class_47$class_48;field_930:Lnet/minecraft/class_3218;named worldLnet/minecraft/loot/context/LootContext$Builder;world:Lnet/minecraft/server/world/ServerWorld;
-
parameters
- Mappings:
Namespace Name Mixin selector official bLdip$a;b:Ljava/util/Map;intermediary field_932Lnet/minecraft/class_47$class_48;field_932:Ljava/util/Map;named parametersLnet/minecraft/loot/context/LootContext$Builder;parameters:Ljava/util/Map;
-
drops
- Mappings:
Namespace Name Mixin selector official cLdip$a;c:Ljava/util/Map;intermediary field_933Lnet/minecraft/class_47$class_48;field_933:Ljava/util/Map;named dropsLnet/minecraft/loot/context/LootContext$Builder;drops:Ljava/util/Map;
-
random
- Mappings:
Namespace Name Mixin selector official dLdip$a;d:Ljava/util/Random;intermediary field_934Lnet/minecraft/class_47$class_48;field_934:Ljava/util/Random;named randomLnet/minecraft/loot/context/LootContext$Builder;random:Ljava/util/Random;
-
luck
private float luck- Mappings:
Namespace Name Mixin selector official eLdip$a;e:Fintermediary field_931Lnet/minecraft/class_47$class_48;field_931:Fnamed luckLnet/minecraft/loot/context/LootContext$Builder;luck:F
-
-
Constructor Details
-
Builder
- Mappings:
Namespace Name Mixin selector official <init>Ldip$a;<init>(Labr;)Vintermediary <init>Lnet/minecraft/class_47$class_48;<init>(Lnet/minecraft/class_3218;)Vnamed <init>Lnet/minecraft/loot/context/LootContext$Builder;<init>(Lnet/minecraft/server/world/ServerWorld;)V
-
-
Method Details
-
random
- Mappings:
Namespace Name Mixin selector official aLdip$a;a(Ljava/util/Random;)Ldip$a;intermediary method_311Lnet/minecraft/class_47$class_48;method_311(Ljava/util/Random;)Lnet/minecraft/class_47$class_48;named randomLnet/minecraft/loot/context/LootContext$Builder;random(Ljava/util/Random;)Lnet/minecraft/loot/context/LootContext$Builder;
-
random
- Mappings:
Namespace Name Mixin selector official aLdip$a;a(J)Ldip$a;intermediary method_304Lnet/minecraft/class_47$class_48;method_304(J)Lnet/minecraft/class_47$class_48;named randomLnet/minecraft/loot/context/LootContext$Builder;random(J)Lnet/minecraft/loot/context/LootContext$Builder;
-
random
- Mappings:
Namespace Name Mixin selector official aLdip$a;a(JLjava/util/Random;)Ldip$a;intermediary method_310Lnet/minecraft/class_47$class_48;method_310(JLjava/util/Random;)Lnet/minecraft/class_47$class_48;named randomLnet/minecraft/loot/context/LootContext$Builder;random(JLjava/util/Random;)Lnet/minecraft/loot/context/LootContext$Builder;
-
luck
- Mappings:
Namespace Name Mixin selector official aLdip$a;a(F)Ldip$a;intermediary method_303Lnet/minecraft/class_47$class_48;method_303(F)Lnet/minecraft/class_47$class_48;named luckLnet/minecraft/loot/context/LootContext$Builder;luck(F)Lnet/minecraft/loot/context/LootContext$Builder;
-
parameter
- Mappings:
Namespace Name Mixin selector official aLdip$a;a(Ldks;Ljava/lang/Object;)Ldip$a;intermediary method_312Lnet/minecraft/class_47$class_48;method_312(Lnet/minecraft/class_169;Ljava/lang/Object;)Lnet/minecraft/class_47$class_48;named parameterLnet/minecraft/loot/context/LootContext$Builder;parameter(Lnet/minecraft/loot/context/LootContextParameter;Ljava/lang/Object;)Lnet/minecraft/loot/context/LootContext$Builder;
-
optionalParameter
- Mappings:
Namespace Name Mixin selector official bLdip$a;b(Ldks;Ljava/lang/Object;)Ldip$a;intermediary method_306Lnet/minecraft/class_47$class_48;method_306(Lnet/minecraft/class_169;Ljava/lang/Object;)Lnet/minecraft/class_47$class_48;named optionalParameterLnet/minecraft/loot/context/LootContext$Builder;optionalParameter(Lnet/minecraft/loot/context/LootContextParameter;Ljava/lang/Object;)Lnet/minecraft/loot/context/LootContext$Builder;
-
putDrop
- Mappings:
Namespace Name Mixin selector official aLdip$a;a(Lww;Ldip$b;)Ldip$a;intermediary method_307Lnet/minecraft/class_47$class_48;method_307(Lnet/minecraft/class_2960;Lnet/minecraft/class_47$class_49;)Lnet/minecraft/class_47$class_48;named putDropLnet/minecraft/loot/context/LootContext$Builder;putDrop(Lnet/minecraft/util/Identifier;Lnet/minecraft/loot/context/LootContext$Dropper;)Lnet/minecraft/loot/context/LootContext$Builder;
-
getWorld
- Mappings:
Namespace Name Mixin selector official aLdip$a;a()Labr;intermediary method_313Lnet/minecraft/class_47$class_48;method_313()Lnet/minecraft/class_3218;named getWorldLnet/minecraft/loot/context/LootContext$Builder;getWorld()Lnet/minecraft/server/world/ServerWorld;
-
get
- Mappings:
Namespace Name Mixin selector official aLdip$a;a(Ldks;)Ljava/lang/Object;intermediary method_308Lnet/minecraft/class_47$class_48;method_308(Lnet/minecraft/class_169;)Ljava/lang/Object;named getLnet/minecraft/loot/context/LootContext$Builder;get(Lnet/minecraft/loot/context/LootContextParameter;)Ljava/lang/Object;
-
getNullable
- Mappings:
Namespace Name Mixin selector official bLdip$a;b(Ldks;)Ljava/lang/Object;intermediary method_305Lnet/minecraft/class_47$class_48;method_305(Lnet/minecraft/class_169;)Ljava/lang/Object;named getNullableLnet/minecraft/loot/context/LootContext$Builder;getNullable(Lnet/minecraft/loot/context/LootContextParameter;)Ljava/lang/Object;
-
build
- Mappings:
Namespace Name Mixin selector official aLdip$a;a(Ldkt;)Ldip;intermediary method_309Lnet/minecraft/class_47$class_48;method_309(Lnet/minecraft/class_176;)Lnet/minecraft/class_47;named buildLnet/minecraft/loot/context/LootContext$Builder;build(Lnet/minecraft/loot/context/LootContextType;)Lnet/minecraft/loot/context/LootContext;
-