Package net.minecraft.server.function
Class FunctionLoader
java.lang.Object
net.minecraft.server.function.FunctionLoader
- All Implemented Interfaces:
ResourceReloadListener
public class FunctionLoader extends Object implements ResourceReloadListener
- Mappings:
Namespace Name official wm
intermediary net/minecraft/class_5349
named net/minecraft/server/function/FunctionLoader
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloadListener
ResourceReloadListener.Synchronizer
-
Field Summary
Fields Modifier and Type Field Description private com.mojang.brigadier.CommandDispatcher<ServerCommandSource>
commandDispatcher
private Map<Identifier,CommandFunction>
functions
private int
level
private static Logger
LOGGER
private static int
PATH_PREFIX_LENGTH
private static int
PATH_SUFFIX_LENGTH
private TagGroupLoader<CommandFunction>
tagLoader
private TagGroup<CommandFunction>
tags
-
Constructor Summary
Constructors Constructor Description FunctionLoader(int level, com.mojang.brigadier.CommandDispatcher<ServerCommandSource> commandDispatcher)
-
Method Summary
Modifier and Type Method Description Optional<CommandFunction>
get(Identifier id)
Map<Identifier,CommandFunction>
getFunctions()
Tag<CommandFunction>
getOrCreateTag(Identifier id)
TagGroup<CommandFunction>
getTags()
private static List<String>
readLines(ResourceManager resourceManager, Identifier id)
CompletableFuture<Void>
reload(ResourceReloadListener.Synchronizer synchronizer, ResourceManager manager, Profiler prepareProfiler, Profiler applyProfiler, Executor prepareExecutor, Executor applyExecutor)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.resource.ResourceReloadListener
getName
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lwm;a:Lorg/apache/logging/log4j/Logger;
intermediary field_25326
Lnet/minecraft/class_5349;field_25326:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/server/function/FunctionLoader;LOGGER:Lorg/apache/logging/log4j/Logger;
-
PATH_PREFIX_LENGTH
private static final int PATH_PREFIX_LENGTH- Mappings:
Namespace Name Mixin selector official b
Lwm;b:I
intermediary field_25327
Lnet/minecraft/class_5349;field_25327:I
named PATH_PREFIX_LENGTH
Lnet/minecraft/server/function/FunctionLoader;PATH_PREFIX_LENGTH:I
-
PATH_SUFFIX_LENGTH
private static final int PATH_SUFFIX_LENGTH- Mappings:
Namespace Name Mixin selector official c
Lwm;c:I
intermediary field_25328
Lnet/minecraft/class_5349;field_25328:I
named PATH_SUFFIX_LENGTH
Lnet/minecraft/server/function/FunctionLoader;PATH_SUFFIX_LENGTH:I
-
functions
- Mappings:
Namespace Name Mixin selector official d
Lwm;d:Ljava/util/Map;
intermediary field_25329
Lnet/minecraft/class_5349;field_25329:Ljava/util/Map;
named functions
Lnet/minecraft/server/function/FunctionLoader;functions:Ljava/util/Map;
-
tagLoader
- Mappings:
Namespace Name Mixin selector official e
Lwm;e:Laff;
intermediary field_25330
Lnet/minecraft/class_5349;field_25330:Lnet/minecraft/class_3503;
named tagLoader
Lnet/minecraft/server/function/FunctionLoader;tagLoader:Lnet/minecraft/tag/TagGroupLoader;
-
tags
- Mappings:
Namespace Name Mixin selector official f
Lwm;f:Lafd;
intermediary field_25801
Lnet/minecraft/class_5349;field_25801:Lnet/minecraft/class_5414;
named tags
Lnet/minecraft/server/function/FunctionLoader;tags:Lnet/minecraft/tag/TagGroup;
-
level
private final int level- Mappings:
Namespace Name Mixin selector official g
Lwm;g:I
intermediary field_25331
Lnet/minecraft/class_5349;field_25331:I
named level
Lnet/minecraft/server/function/FunctionLoader;level:I
-
commandDispatcher
- Mappings:
Namespace Name Mixin selector official h
Lwm;h:Lcom/mojang/brigadier/CommandDispatcher;
intermediary field_25332
Lnet/minecraft/class_5349;field_25332:Lcom/mojang/brigadier/CommandDispatcher;
named commandDispatcher
Lnet/minecraft/server/function/FunctionLoader;commandDispatcher:Lcom/mojang/brigadier/CommandDispatcher;
-
-
Constructor Details
-
FunctionLoader
public FunctionLoader(int level, com.mojang.brigadier.CommandDispatcher<ServerCommandSource> commandDispatcher)- Mappings:
Namespace Name Mixin selector official <init>
Lwm;<init>(ILcom/mojang/brigadier/CommandDispatcher;)V
intermediary <init>
Lnet/minecraft/class_5349;<init>(ILcom/mojang/brigadier/CommandDispatcher;)V
named <init>
Lnet/minecraft/server/function/FunctionLoader;<init>(ILcom/mojang/brigadier/CommandDispatcher;)V
-
-
Method Details
-
get
- Mappings:
Namespace Name Mixin selector official a
Lwm;a(Lwb;)Ljava/util/Optional;
intermediary method_29456
Lnet/minecraft/class_5349;method_29456(Lnet/minecraft/class_2960;)Ljava/util/Optional;
named get
Lnet/minecraft/server/function/FunctionLoader;get(Lnet/minecraft/util/Identifier;)Ljava/util/Optional;
-
getFunctions
- Mappings:
Namespace Name Mixin selector official a
Lwm;a()Ljava/util/Map;
intermediary method_29447
Lnet/minecraft/class_5349;method_29447()Ljava/util/Map;
named getFunctions
Lnet/minecraft/server/function/FunctionLoader;getFunctions()Ljava/util/Map;
-
getTags
- Mappings:
Namespace Name Mixin selector official b
Lwm;b()Lafd;
intermediary method_29458
Lnet/minecraft/class_5349;method_29458()Lnet/minecraft/class_5414;
named getTags
Lnet/minecraft/server/function/FunctionLoader;getTags()Lnet/minecraft/tag/TagGroup;
-
getOrCreateTag
- Mappings:
Namespace Name Mixin selector official b
Lwm;b(Lwb;)Lafc;
intermediary method_29459
Lnet/minecraft/class_5349;method_29459(Lnet/minecraft/class_2960;)Lnet/minecraft/class_3494;
named getOrCreateTag
Lnet/minecraft/server/function/FunctionLoader;getOrCreateTag(Lnet/minecraft/util/Identifier;)Lnet/minecraft/tag/Tag;
-
reload
public CompletableFuture<Void> reload(ResourceReloadListener.Synchronizer synchronizer, ResourceManager manager, Profiler prepareProfiler, Profiler applyProfiler, Executor prepareExecutor, Executor applyExecutor)- Specified by:
reload
in interfaceResourceReloadListener
- Mappings:
Namespace Name Mixin selector official a
Lacs;a(Lacs$a;Lacx;Laos;Laos;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
intermediary method_25931
Lnet/minecraft/class_3302;method_25931(Lnet/minecraft/class_3302$class_4045;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;Lnet/minecraft/class_3695;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
named reload
Lnet/minecraft/resource/ResourceReloadListener;reload(Lnet/minecraft/resource/ResourceReloadListener$Synchronizer;Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;Lnet/minecraft/util/profiler/Profiler;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
-
readLines
- Mappings:
Namespace Name Mixin selector official a
Lwm;a(Lacx;Lwb;)Ljava/util/List;
intermediary method_29450
Lnet/minecraft/class_5349;method_29450(Lnet/minecraft/class_3300;Lnet/minecraft/class_2960;)Ljava/util/List;
named readLines
Lnet/minecraft/server/function/FunctionLoader;readLines(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/Identifier;)Ljava/util/List;
-