Package net.minecraft.loot.context
Class LootContextParameterSet.Builder
java.lang.Object
net.minecraft.loot.context.LootContextParameterSet.Builder
- Enclosing class:
LootContextParameterSet
- Mappings:
Namespace Name official ecw$a
intermediary net/minecraft/class_8567$class_8568
named net/minecraft/loot/context/LootContextParameterSet$Builder
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<Identifier,
LootContextParameterSet.DynamicDrop> private float
private final Map<LootContextParameter<?>,
Object> private final ServerWorld
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(LootContextParameter<T> parameter, T value) addDynamicDrop
(Identifier id, LootContextParameterSet.DynamicDrop dynamicDrop) addOptional
(LootContextParameter<T> parameter, T value) build
(LootContextType contextType) <T> T
get
(LootContextParameter<T> parameter) <T> T
getOptional
(LootContextParameter<T> parameter) getWorld()
luck
(float luck)
-
Field Details
-
world
- Mappings:
Namespace Name Mixin selector official a
Lecw$a;a:Lakq;
intermediary field_44887
Lnet/minecraft/class_8567$class_8568;field_44887:Lnet/minecraft/class_3218;
named world
Lnet/minecraft/loot/context/LootContextParameterSet$Builder;world:Lnet/minecraft/server/world/ServerWorld;
-
parameters
- Mappings:
Namespace Name Mixin selector official b
Lecw$a;b:Ljava/util/Map;
intermediary field_44888
Lnet/minecraft/class_8567$class_8568;field_44888:Ljava/util/Map;
named parameters
Lnet/minecraft/loot/context/LootContextParameterSet$Builder;parameters:Ljava/util/Map;
-
dynamicDrops
- Mappings:
Namespace Name Mixin selector official c
Lecw$a;c:Ljava/util/Map;
intermediary field_44889
Lnet/minecraft/class_8567$class_8568;field_44889:Ljava/util/Map;
named dynamicDrops
Lnet/minecraft/loot/context/LootContextParameterSet$Builder;dynamicDrops:Ljava/util/Map;
-
luck
private float luck- Mappings:
Namespace Name Mixin selector official d
Lecw$a;d:F
intermediary field_44890
Lnet/minecraft/class_8567$class_8568;field_44890:F
named luck
Lnet/minecraft/loot/context/LootContextParameterSet$Builder;luck:F
-
-
Constructor Details
-
Builder
- Mappings:
Namespace Name Mixin selector official <init>
Lecw$a;<init>(Lakq;)V
intermediary <init>
Lnet/minecraft/class_8567$class_8568;<init>(Lnet/minecraft/class_3218;)V
named <init>
Lnet/minecraft/loot/context/LootContextParameterSet$Builder;<init>(Lnet/minecraft/server/world/ServerWorld;)V
-
-
Method Details
-
getWorld
- Mappings:
Namespace Name Mixin selector official a
Lecw$a;a()Lakq;
intermediary method_51870
Lnet/minecraft/class_8567$class_8568;method_51870()Lnet/minecraft/class_3218;
named getWorld
Lnet/minecraft/loot/context/LootContextParameterSet$Builder;getWorld()Lnet/minecraft/server/world/ServerWorld;
-
add
- Mappings:
Namespace Name Mixin selector official a
Lecw$a;a(Leey;Ljava/lang/Object;)Lecw$a;
intermediary method_51874
Lnet/minecraft/class_8567$class_8568;method_51874(Lnet/minecraft/class_169;Ljava/lang/Object;)Lnet/minecraft/class_8567$class_8568;
named add
Lnet/minecraft/loot/context/LootContextParameterSet$Builder;add(Lnet/minecraft/loot/context/LootContextParameter;Ljava/lang/Object;)Lnet/minecraft/loot/context/LootContextParameterSet$Builder;
-
addOptional
public <T> LootContextParameterSet.Builder addOptional(LootContextParameter<T> parameter, @Nullable T value) - Mappings:
Namespace Name Mixin selector official b
Lecw$a;b(Leey;Ljava/lang/Object;)Lecw$a;
intermediary method_51877
Lnet/minecraft/class_8567$class_8568;method_51877(Lnet/minecraft/class_169;Ljava/lang/Object;)Lnet/minecraft/class_8567$class_8568;
named addOptional
Lnet/minecraft/loot/context/LootContextParameterSet$Builder;addOptional(Lnet/minecraft/loot/context/LootContextParameter;Ljava/lang/Object;)Lnet/minecraft/loot/context/LootContextParameterSet$Builder;
-
get
- Mappings:
Namespace Name Mixin selector official a
Lecw$a;a(Leey;)Ljava/lang/Object;
intermediary method_51873
Lnet/minecraft/class_8567$class_8568;method_51873(Lnet/minecraft/class_169;)Ljava/lang/Object;
named get
Lnet/minecraft/loot/context/LootContextParameterSet$Builder;get(Lnet/minecraft/loot/context/LootContextParameter;)Ljava/lang/Object;
-
getOptional
- Mappings:
Namespace Name Mixin selector official b
Lecw$a;b(Leey;)Ljava/lang/Object;
intermediary method_51876
Lnet/minecraft/class_8567$class_8568;method_51876(Lnet/minecraft/class_169;)Ljava/lang/Object;
named getOptional
Lnet/minecraft/loot/context/LootContextParameterSet$Builder;getOptional(Lnet/minecraft/loot/context/LootContextParameter;)Ljava/lang/Object;
-
addDynamicDrop
public LootContextParameterSet.Builder addDynamicDrop(Identifier id, LootContextParameterSet.DynamicDrop dynamicDrop) - Mappings:
Namespace Name Mixin selector official a
Lecw$a;a(Laew;Lecw$b;)Lecw$a;
intermediary method_51872
Lnet/minecraft/class_8567$class_8568;method_51872(Lnet/minecraft/class_2960;Lnet/minecraft/class_8567$class_49;)Lnet/minecraft/class_8567$class_8568;
named addDynamicDrop
Lnet/minecraft/loot/context/LootContextParameterSet$Builder;addDynamicDrop(Lnet/minecraft/util/Identifier;Lnet/minecraft/loot/context/LootContextParameterSet$DynamicDrop;)Lnet/minecraft/loot/context/LootContextParameterSet$Builder;
-
luck
- Mappings:
Namespace Name Mixin selector official a
Lecw$a;a(F)Lecw$a;
intermediary method_51871
Lnet/minecraft/class_8567$class_8568;method_51871(F)Lnet/minecraft/class_8567$class_8568;
named luck
Lnet/minecraft/loot/context/LootContextParameterSet$Builder;luck(F)Lnet/minecraft/loot/context/LootContextParameterSet$Builder;
-
build
- Mappings:
Namespace Name Mixin selector official a
Lecw$a;a(Leez;)Lecw;
intermediary method_51875
Lnet/minecraft/class_8567$class_8568;method_51875(Lnet/minecraft/class_176;)Lnet/minecraft/class_8567;
named build
Lnet/minecraft/loot/context/LootContextParameterSet$Builder;build(Lnet/minecraft/loot/context/LootContextType;)Lnet/minecraft/loot/context/LootContextParameterSet;
-