Package net.minecraft.resources
Class DataPackRegistries
- java.lang.Object
-
- net.minecraft.resources.DataPackRegistries
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class DataPackRegistries extends java.lang.Object implements java.lang.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description private AdvancementManager
advancements
private Commands
commands
private static java.util.concurrent.CompletableFuture<Unit>
DATA_RELOAD_INITIAL_TASK
private FunctionReloader
functionLibrary
private LootTableManager
lootTables
private LootPredicateManager
predicateManager
private RecipeManager
recipes
private IReloadableResourceManager
resources
private NetworkTagManager
tagManager
-
Constructor Summary
Constructors Constructor Description DataPackRegistries(Commands.EnvironmentType p_i232598_1_, int p_i232598_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
AdvancementManager
getAdvancements()
Commands
getCommands()
FunctionReloader
getFunctionLibrary()
LootTableManager
getLootTables()
LootPredicateManager
getPredicateManager()
RecipeManager
getRecipeManager()
IResourceManager
getResourceManager()
ITagCollectionSupplier
getTags()
static java.util.concurrent.CompletableFuture<DataPackRegistries>
loadResources(java.util.List<IResourcePack> p_240961_0_, Commands.EnvironmentType p_240961_1_, int p_240961_2_, java.util.concurrent.Executor p_240961_3_, java.util.concurrent.Executor p_240961_4_)
void
updateGlobals()
-
-
-
Field Detail
-
DATA_RELOAD_INITIAL_TASK
private static final java.util.concurrent.CompletableFuture<Unit> DATA_RELOAD_INITIAL_TASK
-
resources
private final IReloadableResourceManager resources
-
commands
private final Commands commands
-
recipes
private final RecipeManager recipes
-
tagManager
private final NetworkTagManager tagManager
-
predicateManager
private final LootPredicateManager predicateManager
-
lootTables
private final LootTableManager lootTables
-
advancements
private final AdvancementManager advancements
-
functionLibrary
private final FunctionReloader functionLibrary
-
-
Constructor Detail
-
DataPackRegistries
public DataPackRegistries(Commands.EnvironmentType p_i232598_1_, int p_i232598_2_)
-
-
Method Detail
-
getFunctionLibrary
public FunctionReloader getFunctionLibrary()
-
getPredicateManager
public LootPredicateManager getPredicateManager()
-
getLootTables
public LootTableManager getLootTables()
-
getTags
public ITagCollectionSupplier getTags()
-
getRecipeManager
public RecipeManager getRecipeManager()
-
getCommands
public Commands getCommands()
-
getAdvancements
public AdvancementManager getAdvancements()
-
getResourceManager
public IResourceManager getResourceManager()
-
loadResources
public static java.util.concurrent.CompletableFuture<DataPackRegistries> loadResources(java.util.List<IResourcePack> p_240961_0_, Commands.EnvironmentType p_240961_1_, int p_240961_2_, java.util.concurrent.Executor p_240961_3_, java.util.concurrent.Executor p_240961_4_)
-
updateGlobals
public void updateGlobals()
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-