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 TypeMethodDescriptionvoid
ValidationContext.validateUser
(LootContextUser pLootContextUser) 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 TypeInterfaceDescriptioninterface
A LootItemFunction modifies an ItemStack based on the current LootContext.Classes in net.minecraft.world.level.storage.loot.functions that implement LootContextUserModifier and TypeClassDescriptionclass
LootItemFunction that modifies the stack's count based on an enchantment level on the tool using various formulas.class
LootItemFunction that reduces a stack's count based on the explosion radius.class
LootItemFunction that copies a set of block state properties to the"BlockStateTag"
NBT tag of the ItemStack.class
class
class
LootItemFunction that sets the stack's name by copying it from somewhere else, such as the killing player.class
class
LootItemFunction that applies a random enchantment to the stack.class
Applies a random enchantment to the stack.class
Convert any empty maps into explorer maps that lead to a structure that is nearest to the currentinvalid reference
LootContextParams.ORIGIN
class
LootItemFunction that applies the"SkullOwner"
NBT tag to any player heads based on the givenLootContext.EntityTarget
.class
class
class
A LootItemFunction that limits the stack's count to fall within a givenIntRange
.class
A LootItemFunction that only modifies the stacks if a list of predicates passes.class
class
class
LootItemFunction that adds a list of attribute modifiers to the stacks.class
LootItemFunction that sets the banner patterns for a banner item.class
class
class
LootItemFunction that sets the contents of a container such as a chest by setting theBlocKEntityTag
of the stacks.class
LootItemFunction that sets the LootTable and optionally the loot table seed on the stack'sBlockEntityTag
.class
class
class
LootItemFunction that sets a stack's enchantments.class
class
class
class
LootItemFunction that sets the stack's count based on aNumberProvider
, optionally adding to any existing count.class
LootItemFunction that sets the stack's damage based on aNumberProvider
, optionally adding to any existing damage.class
class
LootItemFunction that sets a stack's lore tag, optionally replacing any previously present lore.class
LootItemFunction that sets a stack's name.class
class
class
LootItemFunction that adds an effect to any suspicious stew items.class
class
class
LootItemFunction that tries to smelt any items usinginvalid reference
RecipeType.SMELTING
class
-
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 TypeMethodDescriptionvoid
LootContextParamSet.validateUser
(ProblemReporter pProblemReporter, LootContextUser pLootContextUser) void
LootContextParamSet.validateUser
(ValidationContext pValidationContext, LootContextUser pLootContextUser) 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 TypeClassDescriptionclass
class
final record
A LootItemCondition that provides a random chance based on the level of a certain enchantment on the tool.class
final record
A LootItemCondition that refers to another LootItemCondition by its ID.final record
A LootItemCondition which checksLootContextParams.ORIGIN
andLootContextParams.DAMAGE_SOURCE
against aDamageSourcePredicate
.final record
final record
A LootItemCondition that checks if an Entity selected by aLootContext.EntityTarget
has a given set of scores.class
A LootItemCondition that checks whether an item should survive from an explosion or not.final record
A LootItemCondition that inverts the output of another one.final record
LootItemCondition that checks theinvalid reference
LootContextParams.ORIGIN
LocationPredicate
after applying an offset to the origin position.final record
A LootItemCondition that checks whether the block state matches a given Block andStatePropertiesPredicate
.final record
A LootItemCondition that checks a givenEntityPredicate
against a givenLootContext.EntityTarget
.class
A LootItemCondition that matches if the last damage to an entity was done by a player.final record
A LootItemCondition that succeeds with a given probability.final record
final record
A LootItemCondition that checks the tool against anItemPredicate
.final record
final record
LootItemCondition that checks if a number provided by aNumberProvider
is within anIntRange
.final record
A 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 record
A number provider which generates a random number based on a binomial distribution.final record
ANumberProvider
that provides a constant value.final record
final record
Provides a number by reading the score of a scoreboard member whose name is provided by aScoreboardNameProvider
.final record
final record
Generates 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 TypeClassDescriptionclass
This LootItemCondition "neoforge:can_item_perform_ability" can be used to check if an item can perform a given ItemAbility.class
-
Uses of LootContextUser in net.neoforged.testframework.condition
Classes in net.neoforged.testframework.condition that implement LootContextUser