Uses of Interface
net.minecraft.loot.function.LootFunction
Package
Description
-
Uses of LootFunction in net.minecraft.command.argument
Modifier and TypeMethodDescriptionstatic LootFunction
IdentifierArgumentType.getItemModifierArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) -
Uses of LootFunction in net.minecraft.loot
Modifier and TypeFieldDescriptionprivate final ImmutableList.Builder<LootFunction>
LootPool.Builder.functions
private final List<LootFunction>
LootPool.functions
private final ImmutableList.Builder<LootFunction>
LootTable.Builder.functions
private final List<LootFunction>
LootTable.functions
static final LootDataType<LootFunction>
LootDataType.ITEM_MODIFIERS
private final List<LootFunction>
AndFunction.terms
Modifier and TypeMethodDescriptionstatic AndFunction
AndFunction.create
(List<LootFunction> terms) -
Uses of LootFunction in net.minecraft.loot.context
Modifier and TypeMethodDescriptionstatic LootContext.Entry<LootFunction>
LootContext.itemModifier
(LootFunction itemModifier) Modifier and TypeMethodDescriptionstatic LootContext.Entry<LootFunction>
LootContext.itemModifier
(LootFunction itemModifier) -
Uses of LootFunction in net.minecraft.loot.entry
Modifier and TypeFieldDescriptionprivate final ImmutableList.Builder<LootFunction>
LeafEntry.Builder.functions
protected final List<LootFunction>
LeafEntry.functions
Modifier and TypeMethodDescriptionprotected List<LootFunction>
LeafEntry.Builder.getFunctions()
protected static <T extends LeafEntry>
com.mojang.datafixers.Products.P4<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>,Integer, Integer, List<LootCondition>, List<LootFunction>> LeafEntry.method_53290
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> instance) -
Uses of LootFunction in net.minecraft.loot.function
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<LootFunction>
LootFunctionTypes.BASE_CODEC
private final com.mojang.serialization.Codec<? extends LootFunction>
LootFunctionType.codec
The field for thecodec
record component.static final com.mojang.serialization.Codec<LootFunction>
LootFunctionTypes.CODEC
private final Function<List<LootCondition>,
LootFunction> ConditionalLootFunction.Joiner.joiner
Modifier and TypeMethodDescriptionConditionalLootFunction.Joiner.build()
CopyNbtLootFunction.Builder.build()
CopyStateFunction.Builder.build()
EnchantRandomlyLootFunction.Builder.build()
EnchantWithLevelsLootFunction.Builder.build()
ExplorationMapLootFunction.Builder.build()
LootFunction.Builder.build()
LootingEnchantLootFunction.Builder.build()
SetAttributesLootFunction.Builder.build()
SetBannerPatternFunction.Builder.build()
SetContentsLootFunction.Builder.build()
SetEnchantmentsLootFunction.Builder.build()
SetLoreLootFunction.Builder.build()
SetStewEffectLootFunction.Builder.build()
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<? extends LootFunction>
LootFunctionType.codec()
Returns the value of thecodec
record component.Modifier and TypeMethodDescriptionprotected static ConditionalLootFunction.Builder<?>
ConditionalLootFunction.builder
(Function<List<LootCondition>, LootFunction> joiner) private static LootFunctionType
LootFunctionTypes.register
(String id, com.mojang.serialization.Codec<? extends LootFunction> codec) ModifierConstructorDescriptionJoiner
(Function<List<LootCondition>, LootFunction> joiner) LootFunctionType
(com.mojang.serialization.Codec<? extends LootFunction> codec) Creates an instance of aLootFunctionType
record class. -
Uses of LootFunction in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static int
ItemCommand.executeBlockCopyBlock
(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, BlockPos pos, int slot, LootFunction modifier) private static int
ItemCommand.executeBlockCopyEntity
(ServerCommandSource source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot, LootFunction modifier) private static int
ItemCommand.executeBlockModify
(ServerCommandSource source, BlockPos pos, int slot, LootFunction modifier) private static int
ItemCommand.executeEntityCopyBlock
(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targets, int slot, LootFunction modifier) private static int
ItemCommand.executeEntityCopyEntity
(ServerCommandSource source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot, LootFunction modifier) private static int
ItemCommand.executeEntityModify
(ServerCommandSource source, Collection<? extends Entity> targets, int slot, LootFunction modifier) private static ItemStack
ItemCommand.getStackWithModifier
(ServerCommandSource source, LootFunction modifier, ItemStack stack)