Package net.minecraft.loot
Class LootPool
java.lang.Object
net.minecraft.loot.LootPool
- Mappings:
Namespace Name named net/minecraft/loot/LootPool
intermediary net/minecraft/class_55
official era
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final LootNumberProvider
static final com.mojang.serialization.Codec
<LootPool> private final List
<LootCondition> private final List
<LootPoolEntry> private final List
<LootFunction> private final BiFunction
<ItemStack, LootContext, ItemStack> private final Predicate
<LootContext> private final LootNumberProvider
-
Constructor Summary
ConstructorDescriptionLootPool
(List<LootPoolEntry> entries, List<LootCondition> conditions, List<LootFunction> functions, LootNumberProvider rolls, LootNumberProvider bonusRolls) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addGeneratedLoot
(Consumer<ItemStack> lootConsumer, LootContext context) static LootPool.Builder
builder()
private void
supplyOnce
(Consumer<ItemStack> lootConsumer, LootContext context) void
validate
(LootTableReporter reporter)
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/loot/LootPool;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_45795
Lnet/minecraft/class_55;field_45795:Lcom/mojang/serialization/Codec;
official a
Lera;a:Lcom/mojang/serialization/Codec;
-
entries
- Mappings:
Namespace Name Mixin selector named entries
Lnet/minecraft/loot/LootPool;entries:Ljava/util/List;
intermediary field_953
Lnet/minecraft/class_55;field_953:Ljava/util/List;
official b
Lera;b:Ljava/util/List;
-
conditions
- Mappings:
Namespace Name Mixin selector named conditions
Lnet/minecraft/loot/LootPool;conditions:Ljava/util/List;
intermediary field_954
Lnet/minecraft/class_55;field_954:Ljava/util/List;
official c
Lera;c:Ljava/util/List;
-
predicate
- Mappings:
Namespace Name Mixin selector named predicate
Lnet/minecraft/loot/LootPool;predicate:Ljava/util/function/Predicate;
intermediary field_955
Lnet/minecraft/class_55;field_955:Ljava/util/function/Predicate;
official d
Lera;d:Ljava/util/function/Predicate;
-
functions
- Mappings:
Namespace Name Mixin selector named functions
Lnet/minecraft/loot/LootPool;functions:Ljava/util/List;
intermediary field_956
Lnet/minecraft/class_55;field_956:Ljava/util/List;
official e
Lera;e:Ljava/util/List;
-
javaFunctions
- Mappings:
Namespace Name Mixin selector named javaFunctions
Lnet/minecraft/loot/LootPool;javaFunctions:Ljava/util/function/BiFunction;
intermediary field_952
Lnet/minecraft/class_55;field_952:Ljava/util/function/BiFunction;
official f
Lera;f:Ljava/util/function/BiFunction;
-
rolls
- Mappings:
Namespace Name Mixin selector named rolls
Lnet/minecraft/loot/LootPool;rolls:Lnet/minecraft/loot/provider/number/LootNumberProvider;
intermediary field_957
Lnet/minecraft/class_55;field_957:Lnet/minecraft/class_5658;
official g
Lera;g:Levd;
-
bonusRolls
- Mappings:
Namespace Name Mixin selector named bonusRolls
Lnet/minecraft/loot/LootPool;bonusRolls:Lnet/minecraft/loot/provider/number/LootNumberProvider;
intermediary field_958
Lnet/minecraft/class_55;field_958:Lnet/minecraft/class_5658;
official h
Lera;h:Levd;
-
-
Constructor Details
-
LootPool
LootPool(List<LootPoolEntry> entries, List<LootCondition> conditions, List<LootFunction> functions, LootNumberProvider rolls, LootNumberProvider bonusRolls) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/loot/LootPool;<init>(Ljava/util/List;Ljava/util/List;Ljava/util/List;Lnet/minecraft/loot/provider/number/LootNumberProvider;Lnet/minecraft/loot/provider/number/LootNumberProvider;)V
intermediary <init>
Lnet/minecraft/class_55;<init>(Ljava/util/List;Ljava/util/List;Ljava/util/List;Lnet/minecraft/class_5658;Lnet/minecraft/class_5658;)V
official <init>
Lera;<init>(Ljava/util/List;Ljava/util/List;Ljava/util/List;Levd;Levd;)V
-
-
Method Details
-
supplyOnce
- Mappings:
Namespace Name Mixin selector named supplyOnce
Lnet/minecraft/loot/LootPool;supplyOnce(Ljava/util/function/Consumer;Lnet/minecraft/loot/context/LootContext;)V
intermediary method_345
Lnet/minecraft/class_55;method_345(Ljava/util/function/Consumer;Lnet/minecraft/class_47;)V
official b
Lera;b(Ljava/util/function/Consumer;Leqw;)V
-
addGeneratedLoot
- Mappings:
Namespace Name Mixin selector named addGeneratedLoot
Lnet/minecraft/loot/LootPool;addGeneratedLoot(Ljava/util/function/Consumer;Lnet/minecraft/loot/context/LootContext;)V
intermediary method_341
Lnet/minecraft/class_55;method_341(Ljava/util/function/Consumer;Lnet/minecraft/class_47;)V
official a
Lera;a(Ljava/util/function/Consumer;Leqw;)V
-
validate
- Mappings:
Namespace Name Mixin selector named validate
Lnet/minecraft/loot/LootPool;validate(Lnet/minecraft/loot/LootTableReporter;)V
intermediary method_349
Lnet/minecraft/class_55;method_349(Lnet/minecraft/class_58;)V
official a
Lera;a(Lerc;)V
-
builder
- Mappings:
Namespace Name Mixin selector named builder
Lnet/minecraft/loot/LootPool;builder()Lnet/minecraft/loot/LootPool$Builder;
intermediary method_347
Lnet/minecraft/class_55;method_347()Lnet/minecraft/class_55$class_56;
official a
Lera;a()Lera$a;
-