net.minecraft.server.function

public class FunctionLoader

implements ResourceReloader

net.minecraft.server.ServerFunctionLibrary
net.minecraft.class_5349
net.minecraft.server.function.FunctionLoader

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_25326
LOGGER
public static final RegistryKey<Registry<CommandFunction<ServerCommandSource>>>
TYPE_KEY
field_51976
FUNCTION_REGISTRY_KEY
private static final ResourceFinder
LISTER
field_39978
FINDER
private volatile Map<Identifier, CommandFunction<ServerCommandSource>>
functions
field_25329
functions
private final TagGroupLoader<CommandFunction<ServerCommandSource>>
tagsLoader
field_25330
tagLoader
private volatile Map<Identifier, List<CommandFunction<ServerCommandSource>>>
tags
field_25801
tags
private final PermissionPredicate
functionCompilationPermissions
field_25331
permissions
private final com.mojang.brigadier.CommandDispatcher<ServerCommandSource>
dispatcher
field_25332
commandDispatcher

Constructor summary

ModifierConstructor
public (PermissionPredicate permissions, com.mojang.brigadier.CommandDispatcher<ServerCommandSource> commandDispatcher)

Method summary

Modifier and TypeMethod
public Optional<CommandFunction<ServerCommandSource>>
getFunction(Identifier id)
method_29456(class_2960 arg0)
get(Identifier id)
public Map<Identifier, CommandFunction<ServerCommandSource>>
getFunctions()
method_29447()
getFunctions()
public List<CommandFunction<ServerCommandSource>>
getTag(Identifier tag)
method_29459(class_2960 arg0)
getTagOrEmpty(Identifier id)
public Iterable<Identifier>
getAvailableTags()
method_29458()
getTags()
public CompletableFuture<Void>
reload(PreparableReloadListener$SharedState currentReload, Executor taskExecutor, PreparableReloadListener$PreparationBarrier preparationBarrier, Executor reloadExecutor)
method_25931(class_3302$class_11558 arg0, Executor arg1, class_3302$class_4045 arg2, Executor arg3)
reload(ResourceReloader$Store arg0, Executor arg1, ResourceReloader$Synchronizer arg2, Executor arg3)
private static List<String>
readLines(Resource resource)
method_29450(class_3298 arg0)
readLines(Resource resource)
private void
lambda$reload$8(com.mojang.datafixers.util.Pair arg0)
method_29453(com.mojang.datafixers.util.Pair arg0)
method_29453(com.mojang.datafixers.util.Pair intermediate)
private static void
lambda$reload$7(com.google.common.collect.ImmutableMap$Builder arg0, Identifier arg1, CompletableFuture arg2)
method_29452(com.google.common.collect.ImmutableMap$Builder arg0, class_2960 arg1, CompletableFuture arg2)
method_29452(com.google.common.collect.ImmutableMap$Builder arg0, Identifier id, CompletableFuture functionFuture)
private static Object
lambda$reload$6(Identifier arg0, com.google.common.collect.ImmutableMap$Builder arg1, CommandFunction arg2, Throwable arg3)
method_29457(class_2960 arg0, com.google.common.collect.ImmutableMap$Builder arg1, class_2158 arg2, Throwable arg3)
method_29457(Identifier arg0, com.google.common.collect.ImmutableMap$Builder arg1, CommandFunction function, Throwable ex)
private CompletionStage
lambda$reload$5(Executor arg0, Map arg1)
method_29449(Executor arg0, Map arg1)
method_29449(Executor arg0, Map functions)
private static Map
lambda$reload$4(Map arg0, Void arg1, Throwable arg2)
method_29455(Map arg0, Void arg1, Throwable arg2)
method_29455(Map arg0, Void unused, Throwable ex)
private CommandFunction
lambda$reload$3(Map$Entry arg0, Identifier arg1, CommandSourceStack arg2)
method_29451(Map$Entry arg0, class_2960 arg1, class_2168 arg2)
method_29451(Map$Entry arg0, Identifier arg1, ServerCommandSource arg2)
private static Map
lambda$reload$2(ResourceManager arg0)
method_45141(class_3300 arg0)
method_45141(ResourceManager arg0)
private Map
lambda$reload$1(ResourceManager arg0)
method_33324(class_3300 arg0)
method_33324(ResourceManager arg0)
private Optional
lambda$new$0(Identifier arg0, boolean arg1)
method_64567(class_2960 arg0, boolean arg1)
method_64567(Identifier id, boolean required)