Package net.minecraft.loot.context
Class LootContext
java.lang.Object
net.minecraft.loot.context.LootContext
- Mappings:
Namespace Name official dywintermediary net/minecraft/class_47named net/minecraft/loot/context/LootContext
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final recordstatic interfacestatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set<LootContext.class_8487<?>>private final Map<Identifier,LootContext.Dropper> private final class_8489private final floatprivate final Map<LootContextParameter<?>,Object> private final Randomprivate final ServerWorld -
Constructor Summary
ConstructorsConstructorDescriptionLootContext(Random random, float luck, ServerWorld world, class_8489 class_8489, Map<LootContextParameter<?>, Object> map, Map<Identifier, LootContext.Dropper> parameters) -
Method Summary
Modifier and TypeMethodDescriptionvoiddrop(Identifier id, Consumer<ItemStack> lootConsumer) <T> Tget(LootContextParameter<T> parameter) floatgetLuck()getWorld()booleanhasParameter(LootContextParameter<?> parameter) booleanmarkActive(LootContext.class_8487<?> class_8487) voidmarkInactive(LootContext.class_8487<?> class_8487) booleanmethod_51184(LootContext.class_8487<?> class_8487) static LootContext.class_8487<LootTable>method_51185(LootTable lootTable) static LootContext.class_8487<LootFunction>method_51186(LootFunction lootFunction) static LootContext.class_8487<LootCondition>method_51187(LootCondition lootCondition) <T> TrequireParameter(LootContextParameter<T> parameter)
-
Field Details
-
random
- Mappings:
Namespace Name Mixin selector official aLdyw;a:Lapa;intermediary field_923Lnet/minecraft/class_47;field_923:Lnet/minecraft/class_5819;named randomLnet/minecraft/loot/context/LootContext;random:Lnet/minecraft/util/math/random/Random;
-
luck
private final float luck- Mappings:
Namespace Name Mixin selector official bLdyw;b:Fintermediary field_926Lnet/minecraft/class_47;field_926:Fnamed luckLnet/minecraft/loot/context/LootContext;luck:F
-
world
- Mappings:
Namespace Name Mixin selector official cLdyw;c:Laib;intermediary field_928Lnet/minecraft/class_47;field_928:Lnet/minecraft/class_3218;named worldLnet/minecraft/loot/context/LootContext;world:Lnet/minecraft/server/world/ServerWorld;
-
field_44490
- Mappings:
Namespace Name Mixin selector official dLdyw;d:Ldza;intermediary field_44490Lnet/minecraft/class_47;field_44490:Lnet/minecraft/class_8489;named field_44490Lnet/minecraft/loot/context/LootContext;field_44490:Lnet/minecraft/class_8489;
-
activeTables
- Mappings:
Namespace Name Mixin selector official eLdyw;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;
-
parameters
- Mappings:
Namespace Name Mixin selector official fLdyw;f: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 gLdyw;g: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 luck, ServerWorld world, class_8489 class_8489, Map<LootContextParameter<?>, Object> map, Map<Identifier, LootContext.Dropper> parameters) - Mappings:
Namespace Name Mixin selector official <init>Ldyw;<init>(Lapa;FLaib;Ldza;Ljava/util/Map;Ljava/util/Map;)Vintermediary <init>Lnet/minecraft/class_47;<init>(Lnet/minecraft/class_5819;FLnet/minecraft/class_3218;Lnet/minecraft/class_8489;Ljava/util/Map;Ljava/util/Map;)Vnamed <init>Lnet/minecraft/loot/context/LootContext;<init>(Lnet/minecraft/util/math/random/Random;FLnet/minecraft/server/world/ServerWorld;Lnet/minecraft/class_8489;Ljava/util/Map;Ljava/util/Map;)V
-
-
Method Details
-
hasParameter
- Mappings:
Namespace Name Mixin selector official aLdyw;a(Lebe;)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
-
requireParameter
- Mappings:
Namespace Name Mixin selector official bLdyw;b(Lebe;)Ljava/lang/Object;intermediary method_35508Lnet/minecraft/class_47;method_35508(Lnet/minecraft/class_169;)Ljava/lang/Object;named requireParameterLnet/minecraft/loot/context/LootContext;requireParameter(Lnet/minecraft/loot/context/LootContextParameter;)Ljava/lang/Object;
-
drop
- Mappings:
Namespace Name Mixin selector official aLdyw;a(Lacp;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 cLdyw;c(Lebe;)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;
-
method_51184
- Mappings:
Namespace Name Mixin selector official aLdyw;a(Ldyw$d;)Zintermediary method_51184Lnet/minecraft/class_47;method_51184(Lnet/minecraft/class_47$class_8487;)Znamed method_51184Lnet/minecraft/loot/context/LootContext;method_51184(Lnet/minecraft/loot/context/LootContext$class_8487;)Z
-
markActive
- Mappings:
Namespace Name Mixin selector official bLdyw;b(Ldyw$d;)Zintermediary method_298Lnet/minecraft/class_47;method_298(Lnet/minecraft/class_47$class_8487;)Znamed markActiveLnet/minecraft/loot/context/LootContext;markActive(Lnet/minecraft/loot/context/LootContext$class_8487;)Z
-
markInactive
- Mappings:
Namespace Name Mixin selector official cLdyw;c(Ldyw$d;)Vintermediary method_295Lnet/minecraft/class_47;method_295(Lnet/minecraft/class_47$class_8487;)Vnamed markInactiveLnet/minecraft/loot/context/LootContext;markInactive(Lnet/minecraft/loot/context/LootContext$class_8487;)V
-
method_51183
- Mappings:
Namespace Name Mixin selector official aLdyw;a()Ldza;intermediary method_51183Lnet/minecraft/class_47;method_51183()Lnet/minecraft/class_8489;named method_51183Lnet/minecraft/loot/context/LootContext;method_51183()Lnet/minecraft/class_8489;
-
getRandom
- Mappings:
Namespace Name Mixin selector official bLdyw;b()Lapa;intermediary method_294Lnet/minecraft/class_47;method_294()Lnet/minecraft/class_5819;named getRandomLnet/minecraft/loot/context/LootContext;getRandom()Lnet/minecraft/util/math/random/Random;
-
getLuck
public float getLuck()- Mappings:
Namespace Name Mixin selector official cLdyw;c()Fintermediary method_302Lnet/minecraft/class_47;method_302()Fnamed getLuckLnet/minecraft/loot/context/LootContext;getLuck()F
-
getWorld
- Mappings:
Namespace Name Mixin selector official dLdyw;d()Laib;intermediary method_299Lnet/minecraft/class_47;method_299()Lnet/minecraft/class_3218;named getWorldLnet/minecraft/loot/context/LootContext;getWorld()Lnet/minecraft/server/world/ServerWorld;
-
method_51185
- Mappings:
Namespace Name Mixin selector official aLdyw;a(Ldzd;)Ldyw$d;intermediary method_51185Lnet/minecraft/class_47;method_51185(Lnet/minecraft/class_52;)Lnet/minecraft/class_47$class_8487;named method_51185Lnet/minecraft/loot/context/LootContext;method_51185(Lnet/minecraft/loot/LootTable;)Lnet/minecraft/loot/context/LootContext$class_8487;
-
method_51187
- Mappings:
Namespace Name Mixin selector official aLdyw;a(Lebt;)Ldyw$d;intermediary method_51187Lnet/minecraft/class_47;method_51187(Lnet/minecraft/class_5341;)Lnet/minecraft/class_47$class_8487;named method_51187Lnet/minecraft/loot/context/LootContext;method_51187(Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/loot/context/LootContext$class_8487;
-
method_51186
- Mappings:
Namespace Name Mixin selector official aLdyw;a(Leak;)Ldyw$d;intermediary method_51186Lnet/minecraft/class_47;method_51186(Lnet/minecraft/class_117;)Lnet/minecraft/class_47$class_8487;named method_51186Lnet/minecraft/loot/context/LootContext;method_51186(Lnet/minecraft/loot/function/LootFunction;)Lnet/minecraft/loot/context/LootContext$class_8487;
-