Uses of Interface
net.minecraft.world.level.storage.loot.functions.LootItemFunction
Packages that use LootItemFunction
Package
Description
-
Uses of LootItemFunction in net.minecraft.commands.arguments
Methods in net.minecraft.commands.arguments that return types with arguments of type LootItemFunctionModifier and TypeMethodDescriptionstatic Holder
<LootItemFunction> ResourceOrIdArgument.getLootModifier
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_335678_, String p_336178_) -
Uses of LootItemFunction in net.minecraft.core.registries
Fields in net.minecraft.core.registries with type parameters of type LootItemFunctionModifier and TypeFieldDescriptionstatic final ResourceKey
<Registry<LootItemFunction>> Registries.ITEM_MODIFIER
-
Uses of LootItemFunction in net.minecraft.server.commands
Method parameters in net.minecraft.server.commands with type arguments of type LootItemFunctionModifier and TypeMethodDescriptionprivate static ItemStack
ItemCommands.applyModifier
(CommandSourceStack pSource, Holder<LootItemFunction> pModifier, ItemStack pStack) private static int
ItemCommands.blockToBlock
(CommandSourceStack pSource, BlockPos pSourcePos, int pSourceSlot, BlockPos pPos, int pSlot, Holder<LootItemFunction> pModifier) private static int
ItemCommands.blockToEntities
(CommandSourceStack pSource, BlockPos pPos, int pSourceSlot, Collection<? extends Entity> pTargets, int pSlot, Holder<LootItemFunction> pModifier) private static int
ItemCommands.entityToBlock
(CommandSourceStack pSource, Entity pSourceEntity, int pSourceSlot, BlockPos pPos, int pSlot, Holder<LootItemFunction> pModifier) private static int
ItemCommands.entityToEntities
(CommandSourceStack pSource, Entity pSourceEntity, int pSourceSlot, Collection<? extends Entity> pTargets, int pSlot, Holder<LootItemFunction> pModifier) private static int
ItemCommands.modifyBlockItem
(CommandSourceStack pSource, BlockPos pPos, int pSlot, Holder<LootItemFunction> pModifier) private static int
ItemCommands.modifyEntityItem
(CommandSourceStack pSource, Collection<? extends Entity> pTargets, int pSourceSlot, Holder<LootItemFunction> pModifer) -
Uses of LootItemFunction in net.minecraft.world.level.storage.loot
Fields in net.minecraft.world.level.storage.loot with type parameters of type LootItemFunctionModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableList.Builder
<LootItemFunction> LootPool.Builder.functions
private final List
<LootItemFunction> LootPool.functions
private final com.google.common.collect.ImmutableList.Builder
<LootItemFunction> LootTable.Builder.functions
private final List
<LootItemFunction> LootTable.functions
static final LootDataType
<LootItemFunction> LootDataType.MODIFIER
Methods in net.minecraft.world.level.storage.loot that return types with arguments of type LootItemFunctionMethods in net.minecraft.world.level.storage.loot with parameters of type LootItemFunction -
Uses of LootItemFunction in net.minecraft.world.level.storage.loot.entries
Fields in net.minecraft.world.level.storage.loot.entries with type parameters of type LootItemFunctionModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableList.Builder
<LootItemFunction> LootPoolSingletonContainer.Builder.functions
protected final List
<LootItemFunction> LootPoolSingletonContainer.functions
Functions that are ran on the entry.Methods in net.minecraft.world.level.storage.loot.entries that return types with arguments of type LootItemFunctionModifier and TypeMethodDescriptionprotected List
<LootItemFunction> LootPoolSingletonContainer.Builder.getFunctions()
protected static <T extends LootPoolSingletonContainer>
com.mojang.datafixers.Products.P4<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>, Integer, Integer, List<LootItemCondition>, List<LootItemFunction>> LootPoolSingletonContainer.singletonFields
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> p_299239_) -
Uses of LootItemFunction in net.minecraft.world.level.storage.loot.functions
Classes in net.minecraft.world.level.storage.loot.functions with type parameters of type LootItemFunctionModifier and TypeClassDescriptionfinal record
LootItemFunctionType<T extends LootItemFunction>
The SerializerType forLootItemFunction
.Classes in net.minecraft.world.level.storage.loot.functions that implement LootItemFunctionModifier 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
Fields in net.minecraft.world.level.storage.loot.functions declared as LootItemFunctionModifier and TypeFieldDescriptionprivate final LootItemFunction
FilteredFunction.modifier
private final LootItemFunction
ModifyContainerContents.modifier
Fields in net.minecraft.world.level.storage.loot.functions with type parameters of type LootItemFunctionModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Holder<LootItemFunction>> LootItemFunctions.CODEC
private final Function
<List<LootItemCondition>, LootItemFunction> LootItemConditionalFunction.DummyBuilder.constructor
private final List
<LootItemFunction> SequenceFunction.functions
private final ResourceKey
<LootItemFunction> FunctionReference.name
static final com.mojang.serialization.Codec
<LootItemFunction> LootItemFunctions.ROOT_CODEC
static final com.mojang.serialization.Codec
<LootItemFunction> LootItemFunctions.TYPED_CODEC
Methods in net.minecraft.world.level.storage.loot.functions with type parameters of type LootItemFunctionModifier and TypeMethodDescriptionprivate static <T extends LootItemFunction>
LootItemFunctionType<T> Methods in net.minecraft.world.level.storage.loot.functions that return LootItemFunctionModifier and TypeMethodDescriptionCopyBlockState.Builder.build()
CopyComponentsFunction.Builder.build()
CopyCustomDataFunction.Builder.build()
EnchantedCountIncreaseFunction.Builder.build()
EnchantRandomlyFunction.Builder.build()
EnchantWithLevelsFunction.Builder.build()
ExplorationMapFunction.Builder.build()
LootItemConditionalFunction.DummyBuilder.build()
LootItemFunction.Builder.build()
SetAttributesFunction.Builder.build()
SetBannerPatternFunction.Builder.build()
SetContainerContents.Builder.build()
SetEnchantmentsFunction.Builder.build()
SetLoreFunction.Builder.build()
SetStewEffectFunction.Builder.build()
Methods in net.minecraft.world.level.storage.loot.functions that return types with arguments of type LootItemFunctionModifier and TypeMethodDescriptionLootItemFunctionType
<? extends LootItemFunction> LootItemFunction.getType()
Method parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type LootItemFunctionModifier and TypeMethodDescriptionstatic LootItemConditionalFunction.Builder
<?> FunctionReference.functionReference
(ResourceKey<LootItemFunction> pKey) static SequenceFunction
SequenceFunction.of
(List<LootItemFunction> pFunctions) static LootItemConditionalFunction.Builder
<?> LootItemConditionalFunction.simpleBuilder
(Function<List<LootItemCondition>, LootItemFunction> pConstructor) Constructors in net.minecraft.world.level.storage.loot.functions with parameters of type LootItemFunctionModifierConstructorDescriptionFilteredFunction
(List<LootItemCondition> p_341370_, ItemPredicate p_341210_, LootItemFunction p_340816_) ModifyContainerContents
(List<LootItemCondition> p_340981_, ContainerComponentManipulator<?> p_341205_, LootItemFunction p_341360_) Constructor parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type LootItemFunctionModifierConstructorDescriptionDummyBuilder
(Function<List<LootItemCondition>, LootItemFunction> pConstructor) private
FunctionReference
(List<LootItemCondition> p_298661_, ResourceKey<LootItemFunction> p_335440_) private
SequenceFunction
(List<LootItemFunction> p_299323_)