mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-28 07:55:53 +00:00
Forge 1.20
- Creative mode tabs are now a registry; the `BuildContents` event was renamed to `BuildCreativeModeTabContentsEvent` and moved it to its own class - The pack format is now 15 for both resource packs and data packs - `ScreenUtils` was deprecated in favor of a `GuiGraphics` extension - Forge and the MDK were updated to Gradle 8 and FG6 - The Forge common config file was removed (it only contained the deprecated old fields for resource caching, which was removed in 1.19.3) - Registry dummy entries were removed - `RemappingVertexPipeline` was fixed to forward the `endVertex()` call - Forge tool tags were removed in favor of vanilla ones Co-authored-by: ChampionAsh5357 <[email protected]> Co-authored-by: coehlrich <[email protected]> Co-authored-by: Dennis C <[email protected]> Co-authored-by: Matyrobbrt <[email protected]>
This commit is contained in:
1 parent
658e614dc1
commit
d8c84e2949
568 files changed
+5114
-5807
No files matched your search
@@ -1,32 +1,30 @@
|
||||
--- a/net/minecraft/server/ReloadableServerResources.java
|
||||
+++ b/net/minecraft/server/ReloadableServerResources.java
|
||||
@@ -31,12 +_,12 @@
|
||||
@@ -29,10 +_,10 @@
|
||||
private static final CompletableFuture<Unit> f_206846_ = CompletableFuture.completedFuture(Unit.INSTANCE);
|
||||
private final CommandBuildContext.Configurable f_214300_;
|
||||
private final Commands f_206847_;
|
||||
- private final RecipeManager f_206848_ = new RecipeManager();
|
||||
+ private final RecipeManager f_206848_;
|
||||
private final TagManager f_206849_;
|
||||
private final PredicateManager f_206850_ = new PredicateManager();
|
||||
private final LootTables f_206851_ = new LootTables(this.f_206850_);
|
||||
private final ItemModifierManager f_206852_ = new ItemModifierManager(this.f_206850_, this.f_206851_);
|
||||
- private final ServerAdvancementManager f_206853_ = new ServerAdvancementManager(this.f_206850_);
|
||||
private final LootDataManager f_278467_ = new LootDataManager();
|
||||
- private final ServerAdvancementManager f_206853_ = new ServerAdvancementManager(this.f_278467_);
|
||||
+ private final ServerAdvancementManager f_206853_;
|
||||
private final ServerFunctionLibrary f_206854_;
|
||||
|
||||
public ReloadableServerResources(RegistryAccess.Frozen p_206857_, FeatureFlagSet p_250695_, Commands.CommandSelection p_206858_, int p_206859_) {
|
||||
@@ -45,6 +_,10 @@
|
||||
@@ -41,6 +_,10 @@
|
||||
this.f_206847_ = new Commands(p_206858_, this.f_214300_);
|
||||
this.f_214300_.m_254905_(CommandBuildContext.MissingTagAccessPolicy.CREATE_NEW);
|
||||
this.f_206854_ = new ServerFunctionLibrary(p_206859_, this.f_206847_.m_82094_());
|
||||
+ // Forge: Create context object and pass it to the recipe manager.
|
||||
+ this.context = new net.minecraftforge.common.crafting.conditions.ConditionContext(this.f_206849_);
|
||||
+ this.f_206848_ = new RecipeManager(context);
|
||||
+ this.f_206853_ = new ServerAdvancementManager(this.f_206850_, context);
|
||||
+ this.f_206853_ = new ServerAdvancementManager(this.f_278467_, context);
|
||||
}
|
||||
|
||||
public ServerFunctionLibrary m_206860_() {
|
||||
@@ -81,7 +_,9 @@
|
||||
@@ -69,7 +_,9 @@
|
||||
|
||||
public static CompletableFuture<ReloadableServerResources> m_247740_(ResourceManager p_248588_, RegistryAccess.Frozen p_251163_, FeatureFlagSet p_250212_, Commands.CommandSelection p_249301_, int p_251126_, Executor p_249136_, Executor p_249601_) {
|
||||
ReloadableServerResources reloadableserverresources = new ReloadableServerResources(p_251163_, p_250212_, p_249301_, p_251126_);
|
||||
@@ -37,7 +35,7 @@
|
||||
reloadableserverresources.f_214300_.m_254905_(CommandBuildContext.MissingTagAccessPolicy.FAIL);
|
||||
}).thenApply((p_214306_) -> {
|
||||
return reloadableserverresources;
|
||||
@@ -93,6 +_,7 @@
|
||||
@@ -81,6 +_,7 @@
|
||||
m_206870_(p_206869_, p_214315_);
|
||||
});
|
||||
Blocks.m_50758_();
|
||||
@@ -45,7 +43,7 @@
|
||||
}
|
||||
|
||||
private static <T> void m_206870_(RegistryAccess p_206871_, TagManager.LoadResult<T> p_206872_) {
|
||||
@@ -103,5 +_,16 @@
|
||||
@@ -91,5 +_,16 @@
|
||||
return List.copyOf(p_214312_.getValue());
|
||||
}));
|
||||
p_206871_.m_175515_(resourcekey).m_203652_(map);
|
||||
|
||||
Reference in new issue
Block a user