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
Subclasses with type arguments of type LootItemFunction in net.minecraft.commands.argumentsMethods in net.minecraft.commands.arguments that return types with arguments of type LootItemFunctionModifier and TypeMethodDescriptionstatic Holder<LootItemFunction> ResourceOrIdArgument.getLootModifier(CommandContext<CommandSourceStack> context, String name) -
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_MODIFIERstatic final Registry<MapCodec<? extends LootItemFunction>> BuiltInRegistries.LOOT_FUNCTION_TYPEstatic final ResourceKey<Registry<MapCodec<? extends LootItemFunction>>> Registries.LOOT_FUNCTION_TYPE -
Uses of LootItemFunction in net.minecraft.server.commands
Method parameters in net.minecraft.server.commands with type arguments of type LootItemFunctionModifier and TypeMethodDescriptionprivate static ItemStackItemCommands.applyModifier(CommandSourceStack source, Holder<LootItemFunction> modifier, ItemStack item) private static intItemCommands.blockToBlock(CommandSourceStack source, BlockPos sourcePos, int sourceSlot, BlockPos targetPos, int targetSlot, Holder<LootItemFunction> modifier) private static intItemCommands.blockToEntities(CommandSourceStack source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targetEntities, int targetSlot, Holder<LootItemFunction> modifier) private static intItemCommands.entityToBlock(CommandSourceStack source, Entity sourceEntity, int sourceSlot, BlockPos targetPos, int targetSlot, Holder<LootItemFunction> modifier) private static intItemCommands.entityToEntities(CommandSourceStack source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targetEntities, int targetSlot, Holder<LootItemFunction> modifier) private static intItemCommands.modifyBlockItem(CommandSourceStack source, BlockPos pos, int slot, Holder<LootItemFunction> modifier) private static intItemCommands.modifyEntityItem(CommandSourceStack source, Collection<? extends Entity> entities, int slot, Holder<LootItemFunction> modifier) -
Uses of LootItemFunction in net.minecraft.world.item.trading
Fields in net.minecraft.world.item.trading with type parameters of type LootItemFunctionModifier and TypeFieldDescriptionprivate final List<LootItemFunction> VillagerTrade.givenItemModifiersMethods in net.minecraft.world.item.trading that return LootItemFunctionMethods in net.minecraft.world.item.trading that return types with arguments of type LootItemFunctionModifier and TypeMethodDescriptionprivate static List<LootItemFunction> VillagerTrades.dyedItem(HolderGetter<Item> items, Item expectedItem) static List<LootItemFunction> VillagerTrades.enchantedBook(HolderGetter<Item> items, Optional<HolderSet<Enchantment>> options) static List<LootItemFunction> VillagerTrades.enchantedBook(HolderGetter<Item> items, Holder<Enchantment> enchantment, int level) static List<LootItemFunction> VillagerTrades.enchantedItem(HolderGetter<Item> items, Optional<HolderSet<Enchantment>> options, Item expectedItem) static List<LootItemFunction> VillagerTrades.enchantedItem(HolderGetter<Item> items, Holder<Enchantment> enchantment, int level, Item expectedItem) Constructor parameters in net.minecraft.world.item.trading with type arguments of type LootItemFunctionModifierConstructorDescriptionVillagerTrade(TradeCost wants, Optional<TradeCost> additionalWants, ItemStackTemplate gives, int maxUses, int xp, float reputationDiscount, Optional<LootItemCondition> merchantPredicate, List<LootItemFunction> givenItemModifiers) VillagerTrade(TradeCost wants, Optional<TradeCost> additionalWants, ItemStackTemplate gives, int maxUses, int xp, float reputationDiscount, Optional<LootItemCondition> merchantPredicate, List<LootItemFunction> givenItemModifiers, Optional<HolderSet<Enchantment>> doubleTradePriceEnchantments) privateVillagerTrade(TradeCost wants, Optional<TradeCost> additionalWants, ItemStackTemplate gives, NumberProvider maxUses, NumberProvider reputationDiscount, NumberProvider xp, Optional<LootItemCondition> merchantPredicate, List<LootItemFunction> givenItemModifiers, Optional<HolderSet<Enchantment>> doubleTradePriceEnchantments) VillagerTrade(TradeCost wants, ItemStackTemplate gives, int maxUses, int xp, float reputationDiscount, Optional<LootItemCondition> merchantPredicate, List<LootItemFunction> givenItemModifiers) -
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.functionsprivate final List<LootItemFunction> LootPool.functionsprivate final com.google.common.collect.ImmutableList.Builder<LootItemFunction> LootTable.Builder.functionsprivate final List<LootItemFunction> LootTable.functionsstatic final LootDataType<LootItemFunction> LootDataType.MODIFIERMethods 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.functionsprotected final List<LootItemFunction> LootPoolSingletonContainer.functionsMethods 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>
Products.P4<RecordCodecBuilder.Mu<T>, Integer, Integer, List<LootItemCondition>, List<LootItemFunction>> LootPoolSingletonContainer.singletonFields(RecordCodecBuilder.Instance<T> i) -
Uses of LootItemFunction in net.minecraft.world.level.storage.loot.functions
Classes in net.minecraft.world.level.storage.loot.functions that implement LootItemFunctionModifier and TypeClassDescriptionclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassclassFields in net.minecraft.world.level.storage.loot.functions declared as LootItemFunctionFields in net.minecraft.world.level.storage.loot.functions with type parameters of type LootItemFunctionModifier and TypeFieldDescriptionstatic final Codec<Holder<LootItemFunction>> LootItemFunctions.CODECprivate final Function<List<LootItemCondition>, LootItemFunction> LootItemConditionalFunction.DummyBuilder.constructorprivate final List<LootItemFunction> SequenceFunction.functionsprivate final ResourceKey<LootItemFunction> FunctionReference.nameprivate Optional<LootItemFunction> FilteredFunction.Builder.onFailprivate final Optional<LootItemFunction> FilteredFunction.onFailprivate Optional<LootItemFunction> FilteredFunction.Builder.onPassprivate final Optional<LootItemFunction> FilteredFunction.onPassstatic final Codec<LootItemFunction> LootItemFunctions.ROOT_CODECstatic final Codec<LootItemFunction> LootItemFunctions.TYPED_CODECMethods 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()FilteredFunction.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 TypeMethodDescriptionstatic MapCodec<? extends LootItemFunction> LootItemFunctions.bootstrap(Registry<MapCodec<? extends LootItemFunction>> registry) MapCodec<? extends LootItemFunction> LootItemFunction.codec()Method parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type LootItemFunctionModifier and TypeMethodDescriptionstatic MapCodec<? extends LootItemFunction> LootItemFunctions.bootstrap(Registry<MapCodec<? extends LootItemFunction>> registry) static LootItemConditionalFunction.Builder<?> FunctionReference.functionReference(ResourceKey<LootItemFunction> name) static SequenceFunctionSequenceFunction.of(List<LootItemFunction> functions) FilteredFunction.Builder.onFail(Optional<LootItemFunction> onFail) FilteredFunction.Builder.onPass(Optional<LootItemFunction> onPass) static LootItemConditionalFunction.Builder<?> LootItemConditionalFunction.simpleBuilder(Function<List<LootItemCondition>, LootItemFunction> constructor) Constructors in net.minecraft.world.level.storage.loot.functions with parameters of type LootItemFunctionModifierConstructorDescriptionModifyContainerContents(List<LootItemCondition> predicates, ContainerComponentManipulator<?> component, LootItemFunction modifier) Constructor parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type LootItemFunctionModifierConstructorDescriptionDummyBuilder(Function<List<LootItemCondition>, LootItemFunction> constructor) FilteredFunction(List<LootItemCondition> predicates, ItemPredicate filter, Optional<LootItemFunction> onPass, Optional<LootItemFunction> onFail) privateFunctionReference(List<LootItemCondition> predicates, ResourceKey<LootItemFunction> name) privateSequenceFunction(List<LootItemFunction> functions)