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 TypeFieldDescription(package private) final LootFunction[]
LootPool.functions
(package private) final LootFunction[]
LootTable.functions
Modifier and TypeFieldDescriptionprivate final List<LootFunction>
LootPool.Builder.functions
private final List<LootFunction>
LootTable.Builder.functions
ModifierConstructorDescription(package private)
LootPool
(LootPoolEntry[] entries, LootCondition[] conditions, LootFunction[] functions, LootNumberProvider rolls, LootNumberProvider bonusRolls) (package private)
LootTable
(LootContextType type, LootPool[] pools, LootFunction[] functions) -
Uses of LootFunction in net.minecraft.loot.entry
Modifier and TypeMethodDescriptionLeafEntry.Factory.build
(int weight, int quality, LootCondition[] conditions, LootFunction[] functions) protected DynamicEntry
DynamicEntry.Serializer.fromJson
(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, int int2, int int3, LootCondition[] lootCondition, LootFunction[] lootFunction) EmptyEntry.Serializer.fromJson
(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, int int2, int int3, LootCondition[] lootCondition, LootFunction[] lootFunction) protected ItemEntry
ItemEntry.Serializer.fromJson
(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, int int2, int int3, LootCondition[] lootCondition, LootFunction[] lootFunction) protected abstract T
LeafEntry.Serializer.fromJson
(JsonObject entryJson, JsonDeserializationContext context, int weight, int quality, LootCondition[] conditions, LootFunction[] functions) protected LootTableEntry
LootTableEntry.Serializer.fromJson
(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, int int2, int int3, LootCondition[] lootCondition, LootFunction[] lootFunction) protected TagEntry
TagEntry.Serializer.fromJson
(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, int int2, int int3, LootCondition[] lootCondition, LootFunction[] lootFunction) ModifierConstructorDescription(package private)
DynamicEntry
(Identifier name, int weight, int quality, LootCondition[] conditions, LootFunction[] functions) (package private)
EmptyEntry
(int weight, int quality, LootCondition[] conditions, LootFunction[] functions) (package private)
ItemEntry
(Item item, int weight, int quality, LootCondition[] conditions, LootFunction[] functions) protected
LeafEntry
(int weight, int quality, LootCondition[] conditions, LootFunction[] functions) (package private)
LootTableEntry
(Identifier id, int weight, int quality, LootCondition[] conditions, LootFunction[] functions) (package private)
TagEntry
(TagKey<Item> name, boolean expand, int weight, int quality, LootCondition[] conditions, LootFunction[] functions) -
Uses of LootFunction in net.minecraft.loot.function
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
private static class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeFieldDescriptionprotected final LootFunction[]
LootFunctionManager.AndFunction.functions
Modifier and TypeFieldDescriptionprivate Map<Identifier,
LootFunction> LootFunctionManager.functions
private final Function<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()
LootFunctionManager.get
(Identifier id) LootFunctionManager.getOrDefault
(Identifier id, LootFunction fallback) Modifier and TypeMethodDescriptionLootFunctionManager.getOrDefault
(Identifier id, LootFunction fallback) Modifier and TypeMethodDescriptionprotected static ConditionalLootFunction.Builder<?>
ConditionalLootFunction.builder
(Function<LootCondition[], LootFunction> joiner) private static LootFunctionType
LootFunctionTypes.register
(String id, JsonSerializer<? extends LootFunction> jsonSerializer) ModifierConstructorDescriptionJoiner
(Function<LootCondition[], LootFunction> joiner) LootFunctionType
(JsonSerializer<? extends LootFunction> jsonSerializer) -
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)