Package net.minecraft.loot
Class LootPool
java.lang.Object
net.minecraft.loot.LootPool
public class LootPool extends Object
- Mappings:
Namespace Name official dek
intermediary net/minecraft/class_55
named net/minecraft/loot/LootPool
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LootPool.Builder
static class
LootPool.Serializer
-
Field Summary
Fields Modifier and Type Field Description private LootNumberProvider
bonusRolls
private LootCondition[]
conditions
private LootPoolEntry[]
entries
private LootFunction[]
functions
private BiFunction<ItemStack,LootContext,ItemStack>
javaFunctions
private Predicate<LootContext>
predicate
private LootNumberProvider
rolls
-
Constructor Summary
Constructors Modifier Constructor Description private
LootPool(LootPoolEntry[] entries, LootCondition[] conditions, LootFunction[] functions, LootNumberProvider rolls, LootNumberProvider bonusRolls)
-
Method Summary
Modifier and Type Method Description void
addGeneratedLoot(Consumer<ItemStack> lootConsumer, LootContext context)
static LootPool.Builder
builder()
private void
supplyOnce(Consumer<ItemStack> lootConsumer, LootContext context)
void
validate(LootTableReporter reporter)
-
Field Details
-
entries
- Mappings:
Namespace Name Mixin selector official a
Ldek;a:[Ldfa;
intermediary field_953
Lnet/minecraft/class_55;field_953:[Lnet/minecraft/class_79;
named entries
Lnet/minecraft/loot/LootPool;entries:[Lnet/minecraft/loot/entry/LootPoolEntry;
-
conditions
- Mappings:
Namespace Name Mixin selector official b
Ldek;b:[Ldha;
intermediary field_954
Lnet/minecraft/class_55;field_954:[Lnet/minecraft/class_5341;
named conditions
Lnet/minecraft/loot/LootPool;conditions:[Lnet/minecraft/loot/condition/LootCondition;
-
predicate
- Mappings:
Namespace Name Mixin selector official c
Ldek;c: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 d
Ldek;d:[Ldft;
intermediary field_956
Lnet/minecraft/class_55;field_956:[Lnet/minecraft/class_117;
named functions
Lnet/minecraft/loot/LootPool;functions:[Lnet/minecraft/loot/function/LootFunction;
-
javaFunctions
- Mappings:
Namespace Name Mixin selector official e
Ldek;e: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 f
Ldek;f:Ldhv;
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 g
Ldek;g:Ldhv;
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
private LootPool(LootPoolEntry[] entries, LootCondition[] conditions, LootFunction[] functions, LootNumberProvider rolls, LootNumberProvider bonusRolls)- Mappings:
Namespace Name Mixin selector official <init>
Ldek;<init>([Ldfa;[Ldha;[Ldft;Ldhv;Ldhv;)V
intermediary <init>
Lnet/minecraft/class_55;<init>([Lnet/minecraft/class_79;[Lnet/minecraft/class_5341;[Lnet/minecraft/class_117;Lnet/minecraft/class_5658;Lnet/minecraft/class_5658;)V
named <init>
Lnet/minecraft/loot/LootPool;<init>([Lnet/minecraft/loot/entry/LootPoolEntry;[Lnet/minecraft/loot/condition/LootCondition;[Lnet/minecraft/loot/function/LootFunction;Lnet/minecraft/loot/provider/number/LootNumberProvider;Lnet/minecraft/loot/provider/number/LootNumberProvider;)V
-
-
Method Details
-
supplyOnce
- Mappings:
Namespace Name Mixin selector official b
Ldek;b(Ljava/util/function/Consumer;Ldei;)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
Ldek;a(Ljava/util/function/Consumer;Ldei;)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
Ldek;a(Ldeq;)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
Ldek;a()Ldek$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;
-