Uses of Interface
net.minecraft.loot.condition.LootCondition
Package
Description
-
Uses of LootCondition in net.minecraft.command.argument
Modifier and TypeMethodDescriptionstatic LootCondition
IdentifierArgumentType.getPredicateArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) -
Uses of LootCondition in net.minecraft.loot
Modifier and TypeFieldDescriptionprivate final ImmutableList.Builder<LootCondition>
LootPool.Builder.conditions
private final List<LootCondition>
LootPool.conditions
static final LootDataType<LootCondition>
LootDataType.PREDICATES
-
Uses of LootCondition in net.minecraft.loot.condition
Modifier and TypeClassDescriptionclass
class
class
final record
final record
final record
final record
final record
class
final record
final record
final record
final record
final record
class
final record
final record
final record
final record
Modifier and TypeFieldDescriptionprivate final LootCondition
InvertedLootCondition.term
The field for theterm
record component.Modifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<LootCondition>
LootConditionTypes.BASE_CODEC
private final com.mojang.serialization.Codec<? extends LootCondition>
LootConditionType.codec
The field for thecodec
record component.static final com.mojang.serialization.Codec<LootCondition>
LootConditionTypes.CODEC
private final ImmutableList.Builder<LootCondition>
AlternativeLootCondition.Builder.terms
protected final List<LootCondition>
AlternativeLootCondition.terms
Modifier and TypeMethodDescriptionprotected LootCondition
AllOfLootCondition.Builder.build
(List<LootCondition> terms) AlternativeLootCondition.Builder.build()
protected abstract LootCondition
AlternativeLootCondition.Builder.build
(List<LootCondition> terms) protected LootCondition
AnyOfLootCondition.Builder.build
(List<LootCondition> terms) BlockStatePropertyLootCondition.Builder.build()
EntityScoresLootCondition.Builder.build()
LootCondition.Builder.build()
InvertedLootCondition.term()
Returns the value of theterm
record component.Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<? extends LootCondition>
LootConditionType.codec()
Returns the value of thecodec
record component.Modifier and TypeMethodDescriptionprotected LootCondition
AllOfLootCondition.Builder.build
(List<LootCondition> terms) protected abstract LootCondition
AlternativeLootCondition.Builder.build
(List<LootCondition> terms) protected LootCondition
AnyOfLootCondition.Builder.build
(List<LootCondition> terms) static AllOfLootCondition
AllOfLootCondition.create
(List<LootCondition> terms) protected static <T extends AlternativeLootCondition>
com.mojang.serialization.Codec<T>AlternativeLootCondition.createCodec
(Function<List<LootCondition>, T> termsToCondition) protected static <T extends AlternativeLootCondition>
com.mojang.serialization.Codec<T>AlternativeLootCondition.createInlineCodec
(Function<List<LootCondition>, T> termsToCondition) private static LootConditionType
LootConditionTypes.register
(String id, com.mojang.serialization.Codec<? extends LootCondition> codec) ModifierConstructorDescriptionCreates an instance of aInvertedLootCondition
record class.ModifierConstructorDescription(package private)
AllOfLootCondition
(List<LootCondition> terms) protected
AlternativeLootCondition
(List<LootCondition> terms, Predicate<LootContext> predicate) (package private)
AnyOfLootCondition
(List<LootCondition> terms) LootConditionType
(com.mojang.serialization.Codec<? extends LootCondition> codec) Creates an instance of aLootConditionType
record class. -
Uses of LootCondition in net.minecraft.loot.context
Modifier and TypeMethodDescriptionstatic LootContext.Entry<LootCondition>
LootContext.predicate
(LootCondition predicate) Modifier and TypeMethodDescriptionstatic LootContext.Entry<LootCondition>
LootContext.predicate
(LootCondition predicate) -
Uses of LootCondition in net.minecraft.loot.entry
Modifier and TypeFieldDescriptionprivate final ImmutableList.Builder<LootCondition>
LootPoolEntry.Builder.conditions
protected final List<LootCondition>
LootPoolEntry.conditions
Modifier and TypeMethodDescriptionprotected static <T extends LootPoolEntry>
com.mojang.datafixers.Products.P1<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>,List<LootCondition>> LootPoolEntry.addConditionsField
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> instance) protected static <T extends LeafEntry>
com.mojang.datafixers.Products.P4<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>,Integer, Integer, List<LootCondition>, List<LootFunction>> LeafEntry.addLeafFields
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> instance) protected List<LootCondition>
LootPoolEntry.Builder.getConditions()
Modifier and TypeMethodDescriptionLeafEntry.Factory.build
(int weight, int quality, List<LootCondition> conditions, List<LootFunction> functions) ModifierConstructorDescriptionprivate
DynamicEntry
(Identifier name, int weight, int quality, List<LootCondition> conditions, List<LootFunction> functions) private
EmptyEntry
(int weight, int quality, List<LootCondition> conditions, List<LootFunction> functions) private
ItemEntry
(RegistryEntry<Item> item, int weight, int quality, List<LootCondition> conditions, List<LootFunction> functions) protected
LeafEntry
(int weight, int quality, List<LootCondition> conditions, List<LootFunction> functions) protected
LootPoolEntry
(List<LootCondition> conditions) private
LootTableEntry
(Identifier id, int weight, int quality, List<LootCondition> conditions, List<LootFunction> functions) private
TagEntry
(TagKey<Item> name, boolean expand, int weight, int quality, List<LootCondition> conditions, List<LootFunction> functions) -
Uses of LootCondition in net.minecraft.loot.function
Modifier and TypeFieldDescriptionprivate final ImmutableList.Builder<LootCondition>
ConditionalLootFunction.Builder.conditionList
protected final List<LootCondition>
ConditionalLootFunction.conditions
private final Function<List<LootCondition>,
LootFunction> ConditionalLootFunction.Joiner.joiner
Modifier and TypeMethodDescriptionprotected static <T extends ConditionalLootFunction>
com.mojang.datafixers.Products.P1<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>,List<LootCondition>> ConditionalLootFunction.addConditionsField
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> instance) protected List<LootCondition>
ConditionalLootFunction.Builder.getConditions()
Modifier and TypeMethodDescriptionprotected static ConditionalLootFunction.Builder<?>
ConditionalLootFunction.builder
(Function<List<LootCondition>, LootFunction> joiner) ModifierConstructorDescriptionprivate
ApplyBonusLootFunction
(List<LootCondition> conditions, RegistryEntry<Enchantment> enchantment, ApplyBonusLootFunction.Formula formula) protected
ConditionalLootFunction
(List<LootCondition> conditions) private
CopyNameLootFunction
(List<LootCondition> conditions, CopyNameLootFunction.Source source) (package private)
CopyNbtLootFunction
(List<LootCondition> conditions, LootNbtProvider source, List<CopyNbtLootFunction.Operation> operations) private
CopyStateFunction
(List<LootCondition> conditions, RegistryEntry<Block> block, List<String> properties) (package private)
CopyStateFunction
(List<LootCondition> conditions, RegistryEntry<Block> block, Set<Property<?>> properties) (package private)
EnchantRandomlyLootFunction
(List<LootCondition> conditions, Optional<RegistryEntryList<Enchantment>> enchantments) (package private)
EnchantWithLevelsLootFunction
(List<LootCondition> conditions, LootNumberProvider range, boolean treasureEnchantmentsAllowed) (package private)
ExplorationMapLootFunction
(List<LootCondition> conditions, TagKey<Structure> destination, MapIcon.Type decoration, byte zoom, int searchRadius, boolean skipExistingChunks) private
ExplosionDecayLootFunction
(List<LootCondition> conditions) FillPlayerHeadLootFunction
(List<LootCondition> conditions, LootContext.EntityTarget entity) private
FurnaceSmeltLootFunction
(List<LootCondition> conditions) Joiner
(Function<List<LootCondition>, LootFunction> joiner) private
LimitCountLootFunction
(List<LootCondition> conditions, BoundedIntUnaryOperator limit) (package private)
LootingEnchantLootFunction
(List<LootCondition> conditions, LootNumberProvider countRange, int limit) private
ReferenceLootFunction
(List<LootCondition> conditions, Identifier name) (package private)
SetAttributesLootFunction
(List<LootCondition> conditions, List<SetAttributesLootFunction.Attribute> attributes) (package private)
SetBannerPatternFunction
(List<LootCondition> conditions, List<com.mojang.datafixers.util.Pair<RegistryEntry<BannerPattern>, DyeColor>> patterns, boolean append) (package private)
SetContentsLootFunction
(List<LootCondition> conditions, RegistryEntry<BlockEntityType<?>> blockEntityType, List<LootPoolEntry> entries) private
SetCountLootFunction
(List<LootCondition> conditions, LootNumberProvider countRange, boolean add) private
SetDamageLootFunction
(List<LootCondition> conditions, LootNumberProvider durabilityRange, boolean add) (package private)
SetEnchantmentsLootFunction
(List<LootCondition> conditions, Map<RegistryEntry<Enchantment>, LootNumberProvider> enchantments, boolean add) private
SetInstrumentLootFunction
(List<LootCondition> conditions, TagKey<Instrument> options) private
SetLootTableLootFunction
(List<LootCondition> conditions, Identifier id, long seed, RegistryEntry<BlockEntityType<?>> blockEntityType) SetLoreLootFunction
(List<LootCondition> conditions, boolean replace, List<Text> lore, Optional<LootContext.EntityTarget> entity) private
SetNameLootFunction
(List<LootCondition> conditions, Optional<Text> name, Optional<LootContext.EntityTarget> entity) private
SetNbtLootFunction
(List<LootCondition> conditions, NbtCompound nbt) private
SetPotionLootFunction
(List<LootCondition> conditions, RegistryEntry<Potion> potion) (package private)
SetStewEffectLootFunction
(List<LootCondition> conditions, List<SetStewEffectLootFunction.StewEffect> stewEffects) -
Uses of LootCondition in net.minecraft.predicate.entity
Modifier and TypeFieldDescriptionprivate final List<LootCondition>
LootContextPredicate.conditions
Modifier and TypeMethodDescriptionstatic LootContextPredicate
LootContextPredicate.create
(LootCondition[] conditions) ModifierConstructorDescription(package private)
LootContextPredicate
(List<LootCondition> conditions) -
Uses of LootCondition in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static boolean
ExecuteCommand.testLootCondition
(ServerCommandSource source, LootCondition condition)