Class NestedLootTable
java.lang.Object
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer
net.minecraft.world.level.storage.loot.entries.NestedLootTable
- All Implemented Interfaces:
ComposableEntryContainer
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer
LootPoolSingletonContainer.Builder<T extends LootPoolSingletonContainer.Builder<T>>, LootPoolSingletonContainer.DummyBuilder, LootPoolSingletonContainer.EntryBase, LootPoolSingletonContainer.EntryConstructor -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<NestedLootTable> private final com.mojang.datafixers.util.Either<ResourceKey<LootTable>, LootTable> Fields inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer
compositeFunction, DEFAULT_QUALITY, DEFAULT_WEIGHT, functions, quality, weightFields inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
conditionsFields inherited from interface net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer
ALWAYS_FALSE, ALWAYS_TRUE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateNestedLootTable(com.mojang.datafixers.util.Either<ResourceKey<LootTable>, LootTable> p_335218_, int p_332597_, int p_330218_, List<LootItemCondition> p_335913_, List<LootItemFunction> p_331388_) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateItemStack(Consumer<ItemStack> p_329435_, LootContext p_332786_) getType()static LootPoolSingletonContainer.Builder<?> inlineLootTable(LootTable p_336216_) static LootPoolSingletonContainer.Builder<?> lootTableReference(ResourceKey<LootTable> p_332425_) voidvalidate(ValidationContext p_331194_) Methods inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolSingletonContainer
expand, simpleBuilder, singletonFieldsMethods inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
canRun, commonFieldsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer
and, or
-
Field Details
-
CODEC
-
contents
-
-
Constructor Details
-
NestedLootTable
private NestedLootTable(com.mojang.datafixers.util.Either<ResourceKey<LootTable>, LootTable> p_335218_, int p_332597_, int p_330218_, List<LootItemCondition> p_335913_, List<LootItemFunction> p_331388_)
-
-
Method Details
-
getType
- Specified by:
getTypein classLootPoolEntryContainer
-
createItemStack
- Specified by:
createItemStackin classLootPoolSingletonContainer
-
validate
- Overrides:
validatein classLootPoolSingletonContainer
-
lootTableReference
public static LootPoolSingletonContainer.Builder<?> lootTableReference(ResourceKey<LootTable> p_332425_) -
inlineLootTable
-