Package net.minecraft.loot
Class LootPool
java.lang.Object
net.minecraft.loot.LootPool
- Mappings:
Namespace Name official ecx
intermediary net/minecraft/class_55
named net/minecraft/loot/LootPool
-
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 official a
Lecx;a:Lcom/mojang/serialization/Codec;
intermediary field_45795
Lnet/minecraft/class_55;field_45795:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/loot/LootPool;CODEC:Lcom/mojang/serialization/Codec;
-
entries
- Mappings:
Namespace Name Mixin selector official b
Lecx;b:Ljava/util/List;
intermediary field_953
Lnet/minecraft/class_55;field_953:Ljava/util/List;
named entries
Lnet/minecraft/loot/LootPool;entries:Ljava/util/List;
-
conditions
- Mappings:
Namespace Name Mixin selector official c
Lecx;c:Ljava/util/List;
intermediary field_954
Lnet/minecraft/class_55;field_954:Ljava/util/List;
named conditions
Lnet/minecraft/loot/LootPool;conditions:Ljava/util/List;
-
predicate
- Mappings:
Namespace Name Mixin selector official d
Lecx;d:Ljava/util/function/Predicate;
intermediary field_955
Lnet/minecraft/class_55;field_955:Ljava/util/function/Predicate;
named predicate
Lnet/minecraft/loot/LootPool;predicate:Ljava/util/function/Predicate;
-
functions
- Mappings:
Namespace Name Mixin selector official e
Lecx;e:Ljava/util/List;
intermediary field_956
Lnet/minecraft/class_55;field_956:Ljava/util/List;
named functions
Lnet/minecraft/loot/LootPool;functions:Ljava/util/List;
-
javaFunctions
- Mappings:
Namespace Name Mixin selector official f
Lecx;f:Ljava/util/function/BiFunction;
intermediary field_952
Lnet/minecraft/class_55;field_952:Ljava/util/function/BiFunction;
named javaFunctions
Lnet/minecraft/loot/LootPool;javaFunctions:Ljava/util/function/BiFunction;
-
rolls
- Mappings:
Namespace Name Mixin selector official g
Lecx;g:Legk;
intermediary field_957
Lnet/minecraft/class_55;field_957:Lnet/minecraft/class_5658;
named rolls
Lnet/minecraft/loot/LootPool;rolls:Lnet/minecraft/loot/provider/number/LootNumberProvider;
-
bonusRolls
- Mappings:
Namespace Name Mixin selector official h
Lecx;h:Legk;
intermediary field_958
Lnet/minecraft/class_55;field_958:Lnet/minecraft/class_5658;
named bonusRolls
Lnet/minecraft/loot/LootPool;bonusRolls:Lnet/minecraft/loot/provider/number/LootNumberProvider;
-
-
Constructor Details
-
LootPool
LootPool(List<LootPoolEntry> entries, List<LootCondition> conditions, List<LootFunction> functions, LootNumberProvider rolls, LootNumberProvider bonusRolls) - Mappings:
Namespace Name Mixin selector official <init>
Lecx;<init>(Ljava/util/List;Ljava/util/List;Ljava/util/List;Legk;Legk;)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
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
-
-
Method Details
-
supplyOnce
- Mappings:
Namespace Name Mixin selector official b
Lecx;b(Ljava/util/function/Consumer;Lecq;)V
intermediary method_345
Lnet/minecraft/class_55;method_345(Ljava/util/function/Consumer;Lnet/minecraft/class_47;)V
named supplyOnce
Lnet/minecraft/loot/LootPool;supplyOnce(Ljava/util/function/Consumer;Lnet/minecraft/loot/context/LootContext;)V
-
addGeneratedLoot
- Mappings:
Namespace Name Mixin selector official a
Lecx;a(Ljava/util/function/Consumer;Lecq;)V
intermediary method_341
Lnet/minecraft/class_55;method_341(Ljava/util/function/Consumer;Lnet/minecraft/class_47;)V
named addGeneratedLoot
Lnet/minecraft/loot/LootPool;addGeneratedLoot(Ljava/util/function/Consumer;Lnet/minecraft/loot/context/LootContext;)V
-
validate
- Mappings:
Namespace Name Mixin selector official a
Lecx;a(Lecz;)V
intermediary method_349
Lnet/minecraft/class_55;method_349(Lnet/minecraft/class_58;)V
named validate
Lnet/minecraft/loot/LootPool;validate(Lnet/minecraft/loot/LootTableReporter;)V
-
builder
- Mappings:
Namespace Name Mixin selector official a
Lecx;a()Lecx$a;
intermediary method_347
Lnet/minecraft/class_55;method_347()Lnet/minecraft/class_55$class_56;
named builder
Lnet/minecraft/loot/LootPool;builder()Lnet/minecraft/loot/LootPool$Builder;
-