Package net.minecraft.loot.context
Class LootContextParameterSet
java.lang.Object
net.minecraft.loot.context.LootContextParameterSet
- Mappings:
Namespace Name official ecnintermediary net/minecraft/class_8567named net/minecraft/loot/context/LootContextParameterSet
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Identifier,LootContextParameterSet.DynamicDrop> private final floatprivate final Map<LootContextParameter<?>,Object> private final ServerWorld -
Constructor Summary
ConstructorsConstructorDescriptionLootContextParameterSet(ServerWorld world, Map<LootContextParameter<?>, Object> parameters, Map<Identifier, LootContextParameterSet.DynamicDrop> dynamicDrops, float luck) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDynamicDrops(Identifier id, Consumer<ItemStack> lootConsumer) booleancontains(LootContextParameter<?> parameter) <T> Tget(LootContextParameter<T> parameter) floatgetLuck()<T> TgetOptional(LootContextParameter<T> parameter) getWorld()<T> Tmethod_51868(LootContextParameter<T> parameter)
-
Field Details
-
world
- Mappings:
Namespace Name Mixin selector official aLecn;a:Laki;intermediary field_44883Lnet/minecraft/class_8567;field_44883:Lnet/minecraft/class_3218;named worldLnet/minecraft/loot/context/LootContextParameterSet;world:Lnet/minecraft/server/world/ServerWorld;
-
parameters
- Mappings:
Namespace Name Mixin selector official bLecn;b:Ljava/util/Map;intermediary field_44884Lnet/minecraft/class_8567;field_44884:Ljava/util/Map;named parametersLnet/minecraft/loot/context/LootContextParameterSet;parameters:Ljava/util/Map;
-
dynamicDrops
- Mappings:
Namespace Name Mixin selector official cLecn;c:Ljava/util/Map;intermediary field_44885Lnet/minecraft/class_8567;field_44885:Ljava/util/Map;named dynamicDropsLnet/minecraft/loot/context/LootContextParameterSet;dynamicDrops:Ljava/util/Map;
-
luck
private final float luck- Mappings:
Namespace Name Mixin selector official dLecn;d:Fintermediary field_44886Lnet/minecraft/class_8567;field_44886:Fnamed luckLnet/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>Lecn;<init>(Laki;Ljava/util/Map;Ljava/util/Map;F)Vintermediary <init>Lnet/minecraft/class_8567;<init>(Lnet/minecraft/class_3218;Ljava/util/Map;Ljava/util/Map;F)Vnamed <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 aLecn;a()Laki;intermediary method_51863Lnet/minecraft/class_8567;method_51863()Lnet/minecraft/class_3218;named getWorldLnet/minecraft/loot/context/LootContextParameterSet;getWorld()Lnet/minecraft/server/world/ServerWorld;
-
contains
- Mappings:
Namespace Name Mixin selector official aLecn;a(Leeq;)Zintermediary method_51865Lnet/minecraft/class_8567;method_51865(Lnet/minecraft/class_169;)Znamed containsLnet/minecraft/loot/context/LootContextParameterSet;contains(Lnet/minecraft/loot/context/LootContextParameter;)Z
-
get
- Mappings:
Namespace Name Mixin selector official bLecn;b(Leeq;)Ljava/lang/Object;intermediary method_51867Lnet/minecraft/class_8567;method_51867(Lnet/minecraft/class_169;)Ljava/lang/Object;named getLnet/minecraft/loot/context/LootContextParameterSet;get(Lnet/minecraft/loot/context/LootContextParameter;)Ljava/lang/Object;
-
method_51868
- Mappings:
Namespace Name Mixin selector official cLecn;c(Leeq;)Ljava/lang/Object;intermediary method_51868Lnet/minecraft/class_8567;method_51868(Lnet/minecraft/class_169;)Ljava/lang/Object;named method_51868Lnet/minecraft/loot/context/LootContextParameterSet;method_51868(Lnet/minecraft/loot/context/LootContextParameter;)Ljava/lang/Object;
-
getOptional
- Mappings:
Namespace Name Mixin selector official dLecn;d(Leeq;)Ljava/lang/Object;intermediary method_51869Lnet/minecraft/class_8567;method_51869(Lnet/minecraft/class_169;)Ljava/lang/Object;named getOptionalLnet/minecraft/loot/context/LootContextParameterSet;getOptional(Lnet/minecraft/loot/context/LootContextParameter;)Ljava/lang/Object;
-
addDynamicDrops
- Mappings:
Namespace Name Mixin selector official aLecn;a(Laep;Ljava/util/function/Consumer;)Vintermediary method_51864Lnet/minecraft/class_8567;method_51864(Lnet/minecraft/class_2960;Ljava/util/function/Consumer;)Vnamed addDynamicDropsLnet/minecraft/loot/context/LootContextParameterSet;addDynamicDrops(Lnet/minecraft/util/Identifier;Ljava/util/function/Consumer;)V
-
getLuck
public float getLuck()- Mappings:
Namespace Name Mixin selector official bLecn;b()Fintermediary method_51866Lnet/minecraft/class_8567;method_51866()Fnamed getLuckLnet/minecraft/loot/context/LootContextParameterSet;getLuck()F
-