net.minecraft.server.function

public class FunctionLoader

implements ResourceReloader

net.minecraft.server.ServerFunctionLibrary
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
LOGGER
field_25326
LOGGER
public static final RegistryKey<Registry<CommandFunction<ServerCommandSource>>>
TYPE_KEY
TYPE_KEY
field_51976
FUNCTION_REGISTRY_KEY
private static final ResourceFinder
LISTER
LISTER
field_39978
FINDER
private volatile Map<Identifier, CommandFunction<ServerCommandSource>>
functions
functions
field_25329
functions
private final TagGroupLoader<CommandFunction<ServerCommandSource>>
tagsLoader
tagsLoader
field_25330
tagLoader
private volatile Map<Identifier, List<CommandFunction<ServerCommandSource>>>
tags
tags
field_25801
tags
private final PermissionPredicate
functionCompilationPermissions
functionCompilationPermissions
field_25331
permissions
private final com.mojang.brigadier.CommandDispatcher<ServerCommandSource>
dispatcher
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)
getFunction(Identifier id)
method_29456(class_2960 arg0)
get(Identifier id)
public Map<Identifier, CommandFunction<ServerCommandSource>>
getFunctions()
getFunctions()
method_29447()
getFunctions()
public List<CommandFunction<ServerCommandSource>>
getTag(Identifier tag)
getTag(Identifier tag)
method_29459(class_2960 arg0)
getTagOrEmpty(Identifier id)
public Iterable<Identifier>
getAvailableTags()
getAvailableTags()
method_29458()
getTags()
public CompletableFuture<Void>
reload(PreparableReloadListener$SharedState currentReload, Executor taskExecutor, PreparableReloadListener$PreparationBarrier preparationBarrier, Executor reloadExecutor)
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)
readLines(Resource resource)
method_29450(class_3298 arg0)
readLines(Resource resource)