Package net.minecraft.loot.context
Class LootContext
java.lang.Object
net.minecraft.loot.context.LootContext
- Mappings:
Namespace Name official dipintermediary net/minecraft/class_47named net/minecraft/loot/context/LootContext
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfacestatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<Identifier,LootCondition>private Set<LootCondition>private Map<Identifier,LootContext.Dropper>private floatprivate Map<LootContextParameter<?>,Object>private Randomprivate Function<Identifier,LootTable>private ServerWorld -
Constructor Summary
ConstructorsConstructorDescriptionLootContext(Random random, float float2, ServerWorld serverWorld, Function<Identifier,LootTable> function, Function<Identifier,LootCondition> function2, Map<LootContextParameter<?>,Object> map, Map<Identifier,LootContext.Dropper> map2) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddCondition(LootCondition condition)voiddrop(Identifier id, Consumer<ItemStack> lootConsumer)<T> Tget(LootContextParameter<T> parameter)getCondition(Identifier id)floatgetLuck()getSupplier(Identifier id)getWorld()booleanhasParameter(LootContextParameter<?> parameter)booleanmarkActive(LootTable table)voidmarkInactive(LootTable table)<T> Tmethod_35508(LootContextParameter<T> lootContextParameter)voidremoveCondition(LootCondition condition)
-
Field Details
-
random
- Mappings:
Namespace Name Mixin selector official aLdip;a:Ljava/util/Random;intermediary field_923Lnet/minecraft/class_47;field_923:Ljava/util/Random;named randomLnet/minecraft/loot/context/LootContext;random:Ljava/util/Random;
-
luck
private final float luck- Mappings:
Namespace Name Mixin selector official bLdip;b:Fintermediary field_926Lnet/minecraft/class_47;field_926:Fnamed luckLnet/minecraft/loot/context/LootContext;luck:F
-
world
- Mappings:
Namespace Name Mixin selector official cLdip;c:Labr;intermediary field_928Lnet/minecraft/class_47;field_928:Lnet/minecraft/class_3218;named worldLnet/minecraft/loot/context/LootContext;world:Lnet/minecraft/server/world/ServerWorld;
-
tableGetter
- Mappings:
Namespace Name Mixin selector official dLdip;d:Ljava/util/function/Function;intermediary field_924Lnet/minecraft/class_47;field_924:Ljava/util/function/Function;named tableGetterLnet/minecraft/loot/context/LootContext;tableGetter:Ljava/util/function/Function;
-
activeTables
- Mappings:
Namespace Name Mixin selector official eLdip;e:Ljava/util/Set;intermediary field_927Lnet/minecraft/class_47;field_927:Ljava/util/Set;named activeTablesLnet/minecraft/loot/context/LootContext;activeTables:Ljava/util/Set;
-
conditionGetter
- Mappings:
Namespace Name Mixin selector official fLdip;f:Ljava/util/function/Function;intermediary field_20750Lnet/minecraft/class_47;field_20750:Ljava/util/function/Function;named conditionGetterLnet/minecraft/loot/context/LootContext;conditionGetter:Ljava/util/function/Function;
-
conditions
- Mappings:
Namespace Name Mixin selector official gLdip;g:Ljava/util/Set;intermediary field_20751Lnet/minecraft/class_47;field_20751:Ljava/util/Set;named conditionsLnet/minecraft/loot/context/LootContext;conditions:Ljava/util/Set;
-
parameters
- Mappings:
Namespace Name Mixin selector official hLdip;h:Ljava/util/Map;intermediary field_925Lnet/minecraft/class_47;field_925:Ljava/util/Map;named parametersLnet/minecraft/loot/context/LootContext;parameters:Ljava/util/Map;
-
drops
- Mappings:
Namespace Name Mixin selector official iLdip;i:Ljava/util/Map;intermediary field_929Lnet/minecraft/class_47;field_929:Ljava/util/Map;named dropsLnet/minecraft/loot/context/LootContext;drops:Ljava/util/Map;
-
-
Constructor Details
-
LootContext
LootContext(Random random, float float2, ServerWorld serverWorld, Function<Identifier,LootTable> function, Function<Identifier,LootCondition> function2, Map<LootContextParameter<?>,Object> map, Map<Identifier,LootContext.Dropper> map2)
-
-
Method Details
-
hasParameter
- Mappings:
Namespace Name Mixin selector official aLdip;a(Ldks;)Zintermediary method_300Lnet/minecraft/class_47;method_300(Lnet/minecraft/class_169;)Znamed hasParameterLnet/minecraft/loot/context/LootContext;hasParameter(Lnet/minecraft/loot/context/LootContextParameter;)Z
-
method_35508
- Mappings:
Namespace Name Mixin selector official bLdip;b(Ldks;)Ljava/lang/Object;intermediary method_35508Lnet/minecraft/class_47;method_35508(Lnet/minecraft/class_169;)Ljava/lang/Object;named method_35508Lnet/minecraft/loot/context/LootContext;method_35508(Lnet/minecraft/loot/context/LootContextParameter;)Ljava/lang/Object;
-
drop
- Mappings:
Namespace Name Mixin selector official aLdip;a(Lww;Ljava/util/function/Consumer;)Vintermediary method_297Lnet/minecraft/class_47;method_297(Lnet/minecraft/class_2960;Ljava/util/function/Consumer;)Vnamed dropLnet/minecraft/loot/context/LootContext;drop(Lnet/minecraft/util/Identifier;Ljava/util/function/Consumer;)V
-
get
- Mappings:
Namespace Name Mixin selector official cLdip;c(Ldks;)Ljava/lang/Object;intermediary method_296Lnet/minecraft/class_47;method_296(Lnet/minecraft/class_169;)Ljava/lang/Object;named getLnet/minecraft/loot/context/LootContext;get(Lnet/minecraft/loot/context/LootContextParameter;)Ljava/lang/Object;
-
markActive
- Mappings:
Namespace Name Mixin selector official aLdip;a(Ldis;)Zintermediary method_298Lnet/minecraft/class_47;method_298(Lnet/minecraft/class_52;)Znamed markActiveLnet/minecraft/loot/context/LootContext;markActive(Lnet/minecraft/loot/LootTable;)Z
-
markInactive
- Mappings:
Namespace Name Mixin selector official bLdip;b(Ldis;)Vintermediary method_295Lnet/minecraft/class_47;method_295(Lnet/minecraft/class_52;)Vnamed markInactiveLnet/minecraft/loot/context/LootContext;markInactive(Lnet/minecraft/loot/LootTable;)V
-
addCondition
- Mappings:
Namespace Name Mixin selector official aLdip;a(Ldlh;)Zintermediary method_22555Lnet/minecraft/class_47;method_22555(Lnet/minecraft/class_5341;)Znamed addConditionLnet/minecraft/loot/context/LootContext;addCondition(Lnet/minecraft/loot/condition/LootCondition;)Z
-
removeCondition
- Mappings:
Namespace Name Mixin selector official bLdip;b(Ldlh;)Vintermediary method_22557Lnet/minecraft/class_47;method_22557(Lnet/minecraft/class_5341;)Vnamed removeConditionLnet/minecraft/loot/context/LootContext;removeCondition(Lnet/minecraft/loot/condition/LootCondition;)V
-
getSupplier
- Mappings:
Namespace Name Mixin selector official aLdip;a(Lww;)Ldis;intermediary method_22556Lnet/minecraft/class_47;method_22556(Lnet/minecraft/class_2960;)Lnet/minecraft/class_52;named getSupplierLnet/minecraft/loot/context/LootContext;getSupplier(Lnet/minecraft/util/Identifier;)Lnet/minecraft/loot/LootTable;
-
getCondition
- Mappings:
Namespace Name Mixin selector official bLdip;b(Lww;)Ldlh;intermediary method_22558Lnet/minecraft/class_47;method_22558(Lnet/minecraft/class_2960;)Lnet/minecraft/class_5341;named getConditionLnet/minecraft/loot/context/LootContext;getCondition(Lnet/minecraft/util/Identifier;)Lnet/minecraft/loot/condition/LootCondition;
-
getRandom
- Mappings:
Namespace Name Mixin selector official aLdip;a()Ljava/util/Random;intermediary method_294Lnet/minecraft/class_47;method_294()Ljava/util/Random;named getRandomLnet/minecraft/loot/context/LootContext;getRandom()Ljava/util/Random;
-
getLuck
public float getLuck()- Mappings:
Namespace Name Mixin selector official bLdip;b()Fintermediary method_302Lnet/minecraft/class_47;method_302()Fnamed getLuckLnet/minecraft/loot/context/LootContext;getLuck()F
-
getWorld
- Mappings:
Namespace Name Mixin selector official cLdip;c()Labr;intermediary method_299Lnet/minecraft/class_47;method_299()Lnet/minecraft/class_3218;named getWorldLnet/minecraft/loot/context/LootContext;getWorld()Lnet/minecraft/server/world/ServerWorld;
-