Package net.minecraft.loot.context
Class LootContext
java.lang.Object
net.minecraft.loot.context.LootContext
- Mappings:
Namespace Name named net/minecraft/loot/context/LootContextintermediary net/minecraft/class_47official err
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set<LootContext.Entry<?>> private final RegistryEntryLookup.RegistryLookupprivate final LootContextParameterSetprivate final Random -
Constructor Summary
ConstructorsConstructorDescriptionLootContext(LootContextParameterSet parameters, Random random, RegistryEntryLookup.RegistryLookup lookup) -
Method Summary
Modifier and TypeMethodDescriptionvoiddrop(Identifier id, Consumer<ItemStack> lootConsumer) <T> Tget(LootContextParameter<T> parameter) floatgetLuck()getWorld()booleanhasParameter(LootContextParameter<?> parameter) booleanisActive(LootContext.Entry<?> entry) static LootContext.Entry<LootFunction> itemModifier(LootFunction itemModifier) booleanmarkActive(LootContext.Entry<?> entry) voidmarkInactive(LootContext.Entry<?> entry) static LootContext.Entry<LootCondition> predicate(LootCondition predicate) <T> TrequireParameter(LootContextParameter<T> parameter) static LootContext.Entry<LootTable>
-
Field Details
-
parameters
- Mappings:
Namespace Name Mixin selector named parametersLnet/minecraft/loot/context/LootContext;parameters:Lnet/minecraft/loot/context/LootContextParameterSet;intermediary field_44881Lnet/minecraft/class_47;field_44881:Lnet/minecraft/class_8567;official aLerr;a:Leru;
-
random
- Mappings:
Namespace Name Mixin selector named randomLnet/minecraft/loot/context/LootContext;random:Lnet/minecraft/util/math/random/Random;intermediary field_923Lnet/minecraft/class_47;field_923:Lnet/minecraft/class_5819;official bLerr;b:Layw;
-
lookup
- Mappings:
Namespace Name Mixin selector named lookupLnet/minecraft/loot/context/LootContext;lookup:Lnet/minecraft/registry/RegistryEntryLookup$RegistryLookup;intermediary field_44490Lnet/minecraft/class_47;field_44490:Lnet/minecraft/class_7871$class_7872;official cLerr;c:Ljn$a;
-
activeEntries
- Mappings:
Namespace Name Mixin selector named activeEntriesLnet/minecraft/loot/context/LootContext;activeEntries:Ljava/util/Set;intermediary field_927Lnet/minecraft/class_47;field_927:Ljava/util/Set;official dLerr;d:Ljava/util/Set;
-
-
Constructor Details
-
LootContext
LootContext(LootContextParameterSet parameters, Random random, RegistryEntryLookup.RegistryLookup lookup) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/loot/context/LootContext;<init>(Lnet/minecraft/loot/context/LootContextParameterSet;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/registry/RegistryEntryLookup$RegistryLookup;)Vintermediary <init>Lnet/minecraft/class_47;<init>(Lnet/minecraft/class_8567;Lnet/minecraft/class_5819;Lnet/minecraft/class_7871$class_7872;)Vofficial <init>Lerr;<init>(Leru;Layw;Ljn$a;)V
-
-
Method Details
-
hasParameter
- Mappings:
Namespace Name Mixin selector named hasParameterLnet/minecraft/loot/context/LootContext;hasParameter(Lnet/minecraft/loot/context/LootContextParameter;)Zintermediary method_300Lnet/minecraft/class_47;method_300(Lnet/minecraft/class_169;)Zofficial aLerr;a(Leuk;)Z
-
requireParameter
- Mappings:
Namespace Name Mixin selector named requireParameterLnet/minecraft/loot/context/LootContext;requireParameter(Lnet/minecraft/loot/context/LootContextParameter;)Ljava/lang/Object;intermediary method_35508Lnet/minecraft/class_47;method_35508(Lnet/minecraft/class_169;)Ljava/lang/Object;official bLerr;b(Leuk;)Ljava/lang/Object;
-
drop
- Mappings:
Namespace Name Mixin selector named dropLnet/minecraft/loot/context/LootContext;drop(Lnet/minecraft/util/Identifier;Ljava/util/function/Consumer;)Vintermediary method_297Lnet/minecraft/class_47;method_297(Lnet/minecraft/class_2960;Ljava/util/function/Consumer;)Vofficial aLerr;a(Lakr;Ljava/util/function/Consumer;)V
-
get
- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/loot/context/LootContext;get(Lnet/minecraft/loot/context/LootContextParameter;)Ljava/lang/Object;intermediary method_296Lnet/minecraft/class_47;method_296(Lnet/minecraft/class_169;)Ljava/lang/Object;official cLerr;c(Leuk;)Ljava/lang/Object;
-
isActive
- Mappings:
Namespace Name Mixin selector named isActiveLnet/minecraft/loot/context/LootContext;isActive(Lnet/minecraft/loot/context/LootContext$Entry;)Zintermediary method_51184Lnet/minecraft/class_47;method_51184(Lnet/minecraft/class_47$class_8487;)Zofficial aLerr;a(Lerr$c;)Z
-
markActive
- Mappings:
Namespace Name Mixin selector named markActiveLnet/minecraft/loot/context/LootContext;markActive(Lnet/minecraft/loot/context/LootContext$Entry;)Zintermediary method_298Lnet/minecraft/class_47;method_298(Lnet/minecraft/class_47$class_8487;)Zofficial bLerr;b(Lerr$c;)Z
-
markInactive
- Mappings:
Namespace Name Mixin selector named markInactiveLnet/minecraft/loot/context/LootContext;markInactive(Lnet/minecraft/loot/context/LootContext$Entry;)Vintermediary method_295Lnet/minecraft/class_47;method_295(Lnet/minecraft/class_47$class_8487;)Vofficial cLerr;c(Lerr$c;)V
-
getLookup
- Mappings:
Namespace Name Mixin selector named getLookupLnet/minecraft/loot/context/LootContext;getLookup()Lnet/minecraft/registry/RegistryEntryLookup$RegistryLookup;intermediary method_51183Lnet/minecraft/class_47;method_51183()Lnet/minecraft/class_7871$class_7872;official aLerr;a()Ljn$a;
-
getRandom
- Mappings:
Namespace Name Mixin selector named getRandomLnet/minecraft/loot/context/LootContext;getRandom()Lnet/minecraft/util/math/random/Random;intermediary method_294Lnet/minecraft/class_47;method_294()Lnet/minecraft/class_5819;official bLerr;b()Layw;
-
getLuck
public float getLuck()- Mappings:
Namespace Name Mixin selector named getLuckLnet/minecraft/loot/context/LootContext;getLuck()Fintermediary method_302Lnet/minecraft/class_47;method_302()Fofficial cLerr;c()F
-
getWorld
- Mappings:
Namespace Name Mixin selector named getWorldLnet/minecraft/loot/context/LootContext;getWorld()Lnet/minecraft/server/world/ServerWorld;intermediary method_299Lnet/minecraft/class_47;method_299()Lnet/minecraft/class_3218;official dLerr;d()Laqu;
-
table
- Mappings:
Namespace Name Mixin selector named tableLnet/minecraft/loot/context/LootContext;table(Lnet/minecraft/loot/LootTable;)Lnet/minecraft/loot/context/LootContext$Entry;intermediary method_51185Lnet/minecraft/class_47;method_51185(Lnet/minecraft/class_52;)Lnet/minecraft/class_47$class_8487;official aLerr;a(Lerw;)Lerr$c;
-
predicate
- Mappings:
Namespace Name Mixin selector named predicateLnet/minecraft/loot/context/LootContext;predicate(Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/loot/context/LootContext$Entry;intermediary method_51187Lnet/minecraft/class_47;method_51187(Lnet/minecraft/class_5341;)Lnet/minecraft/class_47$class_8487;official aLerr;a(Levc;)Lerr$c;
-
itemModifier
- Mappings:
Namespace Name Mixin selector named itemModifierLnet/minecraft/loot/context/LootContext;itemModifier(Lnet/minecraft/loot/function/LootFunction;)Lnet/minecraft/loot/context/LootContext$Entry;intermediary method_51186Lnet/minecraft/class_47;method_51186(Lnet/minecraft/class_117;)Lnet/minecraft/class_47$class_8487;official aLerr;a(Letf;)Lerr$c;
-