Package net.minecraft.resources
Class FunctionReloader
- java.lang.Object
-
- net.minecraft.resources.FunctionReloader
-
- All Implemented Interfaces:
IFutureReloadListener
public class FunctionReloader extends java.lang.Object implements IFutureReloadListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
-
Field Summary
Fields Modifier and Type Field Description private com.mojang.brigadier.CommandDispatcher<CommandSource>
dispatcher
private int
functionCompilationLevel
private java.util.Map<ResourceLocation,FunctionObject>
functions
private static org.apache.logging.log4j.Logger
LOGGER
private static int
PATH_PREFIX_LENGTH
private static int
PATH_SUFFIX_LENGTH
private ITagCollection<FunctionObject>
tags
private TagCollectionReader<FunctionObject>
tagsLoader
-
Constructor Summary
Constructors Constructor Description FunctionReloader(int p_i232596_1_, com.mojang.brigadier.CommandDispatcher<CommandSource> p_i232596_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<FunctionObject>
getFunction(ResourceLocation p_240940_1_)
java.util.Map<ResourceLocation,FunctionObject>
getFunctions()
ITag<FunctionObject>
getTag(ResourceLocation p_240943_1_)
ITagCollection<FunctionObject>
getTags()
private static java.util.List<java.lang.String>
readLines(IResourceManager p_240934_0_, ResourceLocation p_240934_1_)
java.util.concurrent.CompletableFuture<java.lang.Void>
reload(IFutureReloadListener.IStage p_215226_1_, IResourceManager p_215226_2_, IProfiler p_215226_3_, IProfiler p_215226_4_, java.util.concurrent.Executor p_215226_5_, java.util.concurrent.Executor p_215226_6_)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.resources.IFutureReloadListener
getName
-
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
PATH_PREFIX_LENGTH
private static final int PATH_PREFIX_LENGTH
-
PATH_SUFFIX_LENGTH
private static final int PATH_SUFFIX_LENGTH
-
functions
private volatile java.util.Map<ResourceLocation,FunctionObject> functions
-
tagsLoader
private final TagCollectionReader<FunctionObject> tagsLoader
-
tags
private volatile ITagCollection<FunctionObject> tags
-
functionCompilationLevel
private final int functionCompilationLevel
-
dispatcher
private final com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher
-
-
Constructor Detail
-
FunctionReloader
public FunctionReloader(int p_i232596_1_, com.mojang.brigadier.CommandDispatcher<CommandSource> p_i232596_2_)
-
-
Method Detail
-
getFunction
public java.util.Optional<FunctionObject> getFunction(ResourceLocation p_240940_1_)
-
getFunctions
public java.util.Map<ResourceLocation,FunctionObject> getFunctions()
-
getTags
public ITagCollection<FunctionObject> getTags()
-
getTag
public ITag<FunctionObject> getTag(ResourceLocation p_240943_1_)
-
reload
public java.util.concurrent.CompletableFuture<java.lang.Void> reload(IFutureReloadListener.IStage p_215226_1_, IResourceManager p_215226_2_, IProfiler p_215226_3_, IProfiler p_215226_4_, java.util.concurrent.Executor p_215226_5_, java.util.concurrent.Executor p_215226_6_)
- Specified by:
reload
in interfaceIFutureReloadListener
-
readLines
private static java.util.List<java.lang.String> readLines(IResourceManager p_240934_0_, ResourceLocation p_240934_1_)
-
-