Package net.minecraft.loot.context
Class LootContextParameterSet
java.lang.Object
net.minecraft.loot.context.LootContextParameterSet
- Mappings:
Namespace Name official ehc
intermediary net/minecraft/class_8567
named net/minecraft/loot/context/LootContextParameterSet
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<Identifier,
LootContextParameterSet.DynamicDrop> private final float
private final Map<LootContextParameter<?>,
Object> private final ServerWorld
-
Constructor Summary
ConstructorDescriptionLootContextParameterSet
(ServerWorld world, Map<LootContextParameter<?>, Object> parameters, Map<Identifier, LootContextParameterSet.DynamicDrop> dynamicDrops, float luck) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDynamicDrops
(Identifier id, Consumer<ItemStack> lootConsumer) boolean
contains
(LootContextParameter<?> parameter) <T> T
get
(LootContextParameter<T> parameter) float
getLuck()
<T> T
getOptional
(LootContextParameter<T> parameter) getWorld()
<T> T
method_51868
(LootContextParameter<T> parameter)
-
Field Details
-
world
- Mappings:
Namespace Name Mixin selector official a
Lehc;a:Land;
intermediary field_44883
Lnet/minecraft/class_8567;field_44883:Lnet/minecraft/class_3218;
named world
Lnet/minecraft/loot/context/LootContextParameterSet;world:Lnet/minecraft/server/world/ServerWorld;
-
parameters
- Mappings:
Namespace Name Mixin selector official b
Lehc;b:Ljava/util/Map;
intermediary field_44884
Lnet/minecraft/class_8567;field_44884:Ljava/util/Map;
named parameters
Lnet/minecraft/loot/context/LootContextParameterSet;parameters:Ljava/util/Map;
-
dynamicDrops
- Mappings:
Namespace Name Mixin selector official c
Lehc;c:Ljava/util/Map;
intermediary field_44885
Lnet/minecraft/class_8567;field_44885:Ljava/util/Map;
named dynamicDrops
Lnet/minecraft/loot/context/LootContextParameterSet;dynamicDrops:Ljava/util/Map;
-
luck
private final float luck- Mappings:
Namespace Name Mixin selector official d
Lehc;d:F
intermediary field_44886
Lnet/minecraft/class_8567;field_44886:F
named luck
Lnet/minecraft/loot/context/LootContextParameterSet;luck:F
-
-
Constructor Details
-
LootContextParameterSet
public LootContextParameterSet(ServerWorld world, Map<LootContextParameter<?>, Object> parameters, Map<Identifier, LootContextParameterSet.DynamicDrop> dynamicDrops, float luck) - Mappings:
Namespace Name Mixin selector official <init>
Lehc;<init>(Land;Ljava/util/Map;Ljava/util/Map;F)V
intermediary <init>
Lnet/minecraft/class_8567;<init>(Lnet/minecraft/class_3218;Ljava/util/Map;Ljava/util/Map;F)V
named <init>
Lnet/minecraft/loot/context/LootContextParameterSet;<init>(Lnet/minecraft/server/world/ServerWorld;Ljava/util/Map;Ljava/util/Map;F)V
-
-
Method Details
-
getWorld
- Mappings:
Namespace Name Mixin selector official a
Lehc;a()Land;
intermediary method_51863
Lnet/minecraft/class_8567;method_51863()Lnet/minecraft/class_3218;
named getWorld
Lnet/minecraft/loot/context/LootContextParameterSet;getWorld()Lnet/minecraft/server/world/ServerWorld;
-
contains
- Mappings:
Namespace Name Mixin selector official a
Lehc;a(Leje;)Z
intermediary method_51865
Lnet/minecraft/class_8567;method_51865(Lnet/minecraft/class_169;)Z
named contains
Lnet/minecraft/loot/context/LootContextParameterSet;contains(Lnet/minecraft/loot/context/LootContextParameter;)Z
-
get
- Mappings:
Namespace Name Mixin selector official b
Lehc;b(Leje;)Ljava/lang/Object;
intermediary method_51867
Lnet/minecraft/class_8567;method_51867(Lnet/minecraft/class_169;)Ljava/lang/Object;
named get
Lnet/minecraft/loot/context/LootContextParameterSet;get(Lnet/minecraft/loot/context/LootContextParameter;)Ljava/lang/Object;
-
method_51868
- Mappings:
Namespace Name Mixin selector official c
Lehc;c(Leje;)Ljava/lang/Object;
intermediary method_51868
Lnet/minecraft/class_8567;method_51868(Lnet/minecraft/class_169;)Ljava/lang/Object;
named method_51868
Lnet/minecraft/loot/context/LootContextParameterSet;method_51868(Lnet/minecraft/loot/context/LootContextParameter;)Ljava/lang/Object;
-
getOptional
- Mappings:
Namespace Name Mixin selector official d
Lehc;d(Leje;)Ljava/lang/Object;
intermediary method_51869
Lnet/minecraft/class_8567;method_51869(Lnet/minecraft/class_169;)Ljava/lang/Object;
named getOptional
Lnet/minecraft/loot/context/LootContextParameterSet;getOptional(Lnet/minecraft/loot/context/LootContextParameter;)Ljava/lang/Object;
-
addDynamicDrops
- Mappings:
Namespace Name Mixin selector official a
Lehc;a(Lahg;Ljava/util/function/Consumer;)V
intermediary method_51864
Lnet/minecraft/class_8567;method_51864(Lnet/minecraft/class_2960;Ljava/util/function/Consumer;)V
named addDynamicDrops
Lnet/minecraft/loot/context/LootContextParameterSet;addDynamicDrops(Lnet/minecraft/util/Identifier;Ljava/util/function/Consumer;)V
-
getLuck
public float getLuck()- Mappings:
Namespace Name Mixin selector official b
Lehc;b()F
intermediary method_51866
Lnet/minecraft/class_8567;method_51866()F
named getLuck
Lnet/minecraft/loot/context/LootContextParameterSet;getLuck()F
-