Class NestedLootTable
java.lang.Object
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
net.minecraft.world.level.storage.loot.entries.UniformContainerBase
net.minecraft.world.level.storage.loot.entries.ExpandableContainerBase
net.minecraft.world.level.storage.loot.entries.NestedLootTable
- All Implemented Interfaces:
ComposableEntryContainer, Validatable
-
Nested Class Summary
Nested classes/interfaces inherited from class UniformContainerBase
UniformContainerBase.Builder<T>, UniformContainerBase.EntryBase, UniformContainerBase.EntryConstructor -
Field Summary
FieldsFields inherited from class ExpandableContainerBase
expandFields inherited from class UniformContainerBase
DEFAULT_QUALITY, DEFAULT_WEIGHT, quality, weightFields inherited from class LootPoolEntryContainer
condition, modifierFields inherited from interface ComposableEntryContainer
ALWAYS_FALSE, ALWAYS_TRUE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateNestedLootTable(HolderSet<LootTable> value, boolean expand, int weight, int quality, Optional<Holder<LootItemCondition>> condition, Optional<Holder<LootItemFunction>> modifier) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaddExpandedEntries(Consumer<LootPoolEntry> output) protected booleanaddUnexpandedEntry(Consumer<LootPoolEntry> output) com.mojang.serialization.MapCodec<NestedLootTable> codec()static UniformContainerBase.Builder<?> inlineLootTable(LootTable table) static UniformContainerBase.Builder<?> lootTableReference(Holder<LootTable> table) static UniformContainerBase.Builder<?> voidvalidate(ValidationContext context) Methods inherited from class ExpandableContainerBase
expandableFields, expandRawMethods inherited from class UniformContainerBase
simpleBuilder, uniformFieldsMethods inherited from class LootPoolEntryContainer
commonFields, expandMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ComposableEntryContainer
and, or
-
Field Details
-
MAP_CODEC
-
value
-
-
Constructor Details
-
NestedLootTable
private NestedLootTable(HolderSet<LootTable> value, boolean expand, int weight, int quality, Optional<Holder<LootItemCondition>> condition, Optional<Holder<LootItemFunction>> modifier)
-
-
Method Details
-
codec
- Specified by:
codecin classExpandableContainerBase
-
addExpandedEntries
- Specified by:
addExpandedEntriesin classExpandableContainerBase
-
addUnexpandedEntry
- Specified by:
addUnexpandedEntryin classExpandableContainerBase
-
validate
- Specified by:
validatein interfaceValidatable- Overrides:
validatein classUniformContainerBase
-
lootTableReference
-
inlineLootTable
-
tableSet
-