Package net.minecraft.loot.context
Class LootContext
java.lang.Object
net.minecraft.loot.context.LootContext
- Mappings:
Namespace Name named net/minecraft/loot/context/LootContext
intermediary net/minecraft/class_47
official ewo
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Set
<LootContext.Entry<?>> private final RegistryEntryLookup.RegistryLookup
private final Random
private final LootWorldContext
-
Constructor Summary
ConstructorDescriptionLootContext
(LootWorldContext worldContext, Random random, RegistryEntryLookup.RegistryLookup lookup) -
Method Summary
Modifier and TypeMethodDescriptionvoid
drop
(Identifier id, Consumer<ItemStack> lootConsumer) <T> T
get
(ContextParameter<T> parameter) float
getLuck()
getWorld()
boolean
hasParameter
(ContextParameter<?> parameter) boolean
isActive
(LootContext.Entry<?> entry) static LootContext.Entry
<LootFunction> itemModifier
(LootFunction itemModifier) boolean
markActive
(LootContext.Entry<?> entry) void
markInactive
(LootContext.Entry<?> entry) static LootContext.Entry
<LootCondition> predicate
(LootCondition predicate) <T> T
requireParameter
(ContextParameter<T> parameter) static LootContext.Entry
<LootTable>
-
Field Details
-
worldContext
- Mappings:
Namespace Name Mixin selector named worldContext
Lnet/minecraft/loot/context/LootContext;worldContext:Lnet/minecraft/loot/context/LootWorldContext;
intermediary field_44881
Lnet/minecraft/class_47;field_44881:Lnet/minecraft/class_8567;
official a
Lewo;a:Lewr;
-
random
- Mappings:
Namespace Name Mixin selector named random
Lnet/minecraft/loot/context/LootContext;random:Lnet/minecraft/util/math/random/Random;
intermediary field_923
Lnet/minecraft/class_47;field_923:Lnet/minecraft/class_5819;
official b
Lewo;b:Lbam;
-
lookup
- Mappings:
Namespace Name Mixin selector named lookup
Lnet/minecraft/loot/context/LootContext;lookup:Lnet/minecraft/registry/RegistryEntryLookup$RegistryLookup;
intermediary field_44490
Lnet/minecraft/class_47;field_44490:Lnet/minecraft/class_7871$class_7872;
official c
Lewo;c:Ljr$a;
-
activeEntries
- Mappings:
Namespace Name Mixin selector named activeEntries
Lnet/minecraft/loot/context/LootContext;activeEntries:Ljava/util/Set;
intermediary field_927
Lnet/minecraft/class_47;field_927:Ljava/util/Set;
official d
Lewo;d:Ljava/util/Set;
-
-
Constructor Details
-
LootContext
LootContext(LootWorldContext worldContext, Random random, RegistryEntryLookup.RegistryLookup lookup) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/loot/context/LootContext;<init>(Lnet/minecraft/loot/context/LootWorldContext;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/registry/RegistryEntryLookup$RegistryLookup;)V
intermediary <init>
Lnet/minecraft/class_47;<init>(Lnet/minecraft/class_8567;Lnet/minecraft/class_5819;Lnet/minecraft/class_7871$class_7872;)V
official <init>
Lewo;<init>(Lewr;Lbam;Ljr$a;)V
-
-
Method Details
-
hasParameter
- Mappings:
Namespace Name Mixin selector named hasParameter
Lnet/minecraft/loot/context/LootContext;hasParameter(Lnet/minecraft/util/context/ContextParameter;)Z
intermediary method_300
Lnet/minecraft/class_47;method_300(Lnet/minecraft/class_169;)Z
official a
Lewo;a(Lbbn;)Z
-
requireParameter
- Mappings:
Namespace Name Mixin selector named requireParameter
Lnet/minecraft/loot/context/LootContext;requireParameter(Lnet/minecraft/util/context/ContextParameter;)Ljava/lang/Object;
intermediary method_35508
Lnet/minecraft/class_47;method_35508(Lnet/minecraft/class_169;)Ljava/lang/Object;
official b
Lewo;b(Lbbn;)Ljava/lang/Object;
-
get
- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/loot/context/LootContext;get(Lnet/minecraft/util/context/ContextParameter;)Ljava/lang/Object;
intermediary method_65013
Lnet/minecraft/class_47;method_65013(Lnet/minecraft/class_169;)Ljava/lang/Object;
official c
Lewo;c(Lbbn;)Ljava/lang/Object;
-
drop
- Mappings:
Namespace Name Mixin selector named drop
Lnet/minecraft/loot/context/LootContext;drop(Lnet/minecraft/util/Identifier;Ljava/util/function/Consumer;)V
intermediary method_297
Lnet/minecraft/class_47;method_297(Lnet/minecraft/class_2960;Ljava/util/function/Consumer;)V
official a
Lewo;a(Lalz;Ljava/util/function/Consumer;)V
-
isActive
- Mappings:
Namespace Name Mixin selector named isActive
Lnet/minecraft/loot/context/LootContext;isActive(Lnet/minecraft/loot/context/LootContext$Entry;)Z
intermediary method_51184
Lnet/minecraft/class_47;method_51184(Lnet/minecraft/class_47$class_8487;)Z
official a
Lewo;a(Lewo$c;)Z
-
markActive
- Mappings:
Namespace Name Mixin selector named markActive
Lnet/minecraft/loot/context/LootContext;markActive(Lnet/minecraft/loot/context/LootContext$Entry;)Z
intermediary method_298
Lnet/minecraft/class_47;method_298(Lnet/minecraft/class_47$class_8487;)Z
official b
Lewo;b(Lewo$c;)Z
-
markInactive
- Mappings:
Namespace Name Mixin selector named markInactive
Lnet/minecraft/loot/context/LootContext;markInactive(Lnet/minecraft/loot/context/LootContext$Entry;)V
intermediary method_295
Lnet/minecraft/class_47;method_295(Lnet/minecraft/class_47$class_8487;)V
official c
Lewo;c(Lewo$c;)V
-
getLookup
- Mappings:
Namespace Name Mixin selector named getLookup
Lnet/minecraft/loot/context/LootContext;getLookup()Lnet/minecraft/registry/RegistryEntryLookup$RegistryLookup;
intermediary method_51183
Lnet/minecraft/class_47;method_51183()Lnet/minecraft/class_7871$class_7872;
official a
Lewo;a()Ljr$a;
-
getRandom
- Mappings:
Namespace Name Mixin selector named getRandom
Lnet/minecraft/loot/context/LootContext;getRandom()Lnet/minecraft/util/math/random/Random;
intermediary method_294
Lnet/minecraft/class_47;method_294()Lnet/minecraft/class_5819;
official b
Lewo;b()Lbam;
-
getLuck
public float getLuck()- Mappings:
Namespace Name Mixin selector named getLuck
Lnet/minecraft/loot/context/LootContext;getLuck()F
intermediary method_302
Lnet/minecraft/class_47;method_302()F
official c
Lewo;c()F
-
getWorld
- Mappings:
Namespace Name Mixin selector named getWorld
Lnet/minecraft/loot/context/LootContext;getWorld()Lnet/minecraft/server/world/ServerWorld;
intermediary method_299
Lnet/minecraft/class_47;method_299()Lnet/minecraft/class_3218;
official d
Lewo;d()Lash;
-
table
- Mappings:
Namespace Name Mixin selector named table
Lnet/minecraft/loot/context/LootContext;table(Lnet/minecraft/loot/LootTable;)Lnet/minecraft/loot/context/LootContext$Entry;
intermediary method_51185
Lnet/minecraft/class_47;method_51185(Lnet/minecraft/class_52;)Lnet/minecraft/class_47$class_8487;
official a
Lewo;a(Lewt;)Lewo$c;
-
predicate
- Mappings:
Namespace Name Mixin selector named predicate
Lnet/minecraft/loot/context/LootContext;predicate(Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/loot/context/LootContext$Entry;
intermediary method_51187
Lnet/minecraft/class_47;method_51187(Lnet/minecraft/class_5341;)Lnet/minecraft/class_47$class_8487;
official a
Lewo;a(Lezx;)Lewo$c;
-
itemModifier
- Mappings:
Namespace Name Mixin selector named itemModifier
Lnet/minecraft/loot/context/LootContext;itemModifier(Lnet/minecraft/loot/function/LootFunction;)Lnet/minecraft/loot/context/LootContext$Entry;
intermediary method_51186
Lnet/minecraft/class_47;method_51186(Lnet/minecraft/class_117;)Lnet/minecraft/class_47$class_8487;
official a
Lewo;a(Leyc;)Lewo$c;
-