Uses of Interface
net.minecraft.world.level.storage.loot.LootContextUser
Packages that use LootContextUser
Package
Description
-
Uses of LootContextUser in net.minecraft.world.level.storage.loot
Methods in net.minecraft.world.level.storage.loot with type parameters of type LootContextUserModifier and TypeMethodDescriptionprivate static <T extends LootContextUser>
LootDataType.Validator<T> LootDataType.createSimpleValidator()Methods in net.minecraft.world.level.storage.loot with parameters of type LootContextUserModifier and TypeMethodDescriptionvoidValidationContext.validateUser(LootContextUser lootContextUser) Validate the given LootContextUser. -
Uses of LootContextUser in net.minecraft.world.level.storage.loot.functions
Subinterfaces of LootContextUser in net.minecraft.world.level.storage.loot.functionsModifier and TypeInterfaceDescriptioninterfaceA LootItemFunction modifies an ItemStack based on the current LootContext.Classes in net.minecraft.world.level.storage.loot.functions that implement LootContextUserModifier and TypeClassDescriptionclassLootItemFunction that modifies the stack's count based on an enchantment level on the tool using various formulas.classLootItemFunction that reduces a stack's count based on the explosion radius.classLootItemFunction that copies a set of block state properties to the"BlockStateTag"NBT tag of the ItemStack.classclassclassLootItemFunction that sets the stack's name by copying it from somewhere else, such as the killing player.classclassLootItemFunction that applies a random enchantment to the stack.classApplies a random enchantment to the stack.classConvert any empty maps into explorer maps that lead to a structure that is nearest to the current, if present.invalid reference
LootContextParams.ORIGIN
classLootItemFunction that applies the"SkullOwner"NBT tag to any player heads based on the givenLootContext.EntityTarget.classclassclassA LootItemFunction that limits the stack's count to fall within a givenIntRange.classA LootItemFunction that only modifies the stacks if a list of predicates passes.classclassclassLootItemFunction that adds a list of attribute modifiers to the stacks.classLootItemFunction that sets the banner patterns for a banner item.classclassclassLootItemFunction that sets the contents of a container such as a chest by setting theBlocKEntityTagof the stacks.classLootItemFunction that sets the LootTable and optionally the loot table seed on the stack'sBlockEntityTag.classclassclassLootItemFunction that sets a stack's enchantments.classclassclassclassLootItemFunction that sets the stack's count based on aNumberProvider, optionally adding to any existing count.classLootItemFunction that sets the stack's damage based on aNumberProvider, optionally adding to any existing damage.classclassLootItemFunction that sets a stack's lore tag, optionally replacing any previously present lore.classLootItemFunction that sets a stack's name.classclassclassLootItemFunction that adds an effect to any suspicious stew items.classclassclassLootItemFunction that tries to smelt any items using.invalid reference
RecipeType.SMELTINGclass -
Uses of LootContextUser in net.minecraft.world.level.storage.loot.parameters
Methods in net.minecraft.world.level.storage.loot.parameters with parameters of type LootContextUserModifier and TypeMethodDescriptionvoidLootContextParamSet.validateUser(ProblemReporter problemReporter, LootContextUser lootContextUser) voidLootContextParamSet.validateUser(ValidationContext validationContext, LootContextUser lootContextUser) Validate that all parameters referenced by the given LootContextUser are present in this set. -
Uses of LootContextUser in net.minecraft.world.level.storage.loot.predicates
Subinterfaces of LootContextUser in net.minecraft.world.level.storage.loot.predicatesClasses in net.minecraft.world.level.storage.loot.predicates that implement LootContextUserModifier and TypeClassDescriptionclassclassfinal recordA LootItemCondition that provides a random chance based on the level of a certain enchantment on the tool.classfinal recordA LootItemCondition that refers to another LootItemCondition by its ID.final recordA LootItemCondition which checksLootContextParams.ORIGINandLootContextParams.DAMAGE_SOURCEagainst aDamageSourcePredicate.final recordfinal recordA LootItemCondition that checks if an Entity selected by aLootContext.EntityTargethas a given set of scores.classA LootItemCondition that checks whether an item should survive from an explosion or not.final recordA LootItemCondition that inverts the output of another one.final recordLootItemCondition that checks theposition against ainvalid reference
LootContextParams.ORIGINLocationPredicateafter applying an offset to the origin position.final recordA LootItemCondition that checks whether the block state matches a given Block andStatePropertiesPredicate.final recordA LootItemCondition that checks a givenEntityPredicateagainst a givenLootContext.EntityTarget.classA LootItemCondition that matches if the last damage to an entity was done by a player.final recordA LootItemCondition that succeeds with a given probability.final recordfinal recordA LootItemCondition that checks the tool against anItemPredicate.final recordfinal recordLootItemCondition that checks if a number provided by aNumberProvideris within anIntRange.final recordA LootItemCondition that checks whether it currently raining or thundering. -
Uses of LootContextUser in net.minecraft.world.level.storage.loot.providers.number
Subinterfaces of LootContextUser in net.minecraft.world.level.storage.loot.providers.numberClasses in net.minecraft.world.level.storage.loot.providers.number that implement LootContextUserModifier and TypeClassDescriptionfinal recordA number provider which generates a random number based on a binomial distribution.final recordANumberProviderthat provides a constant value.final recordfinal recordProvides a number by reading the score of a scoreboard member whose name is provided by aScoreboardNameProvider.final recordfinal recordGenerates a random number which is uniformly distributed between a minimum and a maximum. -
Uses of LootContextUser in net.neoforged.neoforge.common.loot
Classes in net.neoforged.neoforge.common.loot that implement LootContextUserModifier and TypeClassDescriptionclassThis LootItemCondition "neoforge:can_item_perform_ability" can be used to check if an item can perform a given ItemAbility.class