1.21.3 update

This commit is contained in:
LexManos committed 2024-10-25 18:04:34 -07:00
1 parent c22589b5b3
commit 086bcb7148
806 files changed
+6314 -10501

No files matched your search

@@ -1,6 +1,6 @@
--- a/net/minecraft/client/resources/model/ModelManager.java
+++ b/net/minecraft/client/resources/model/ModelManager.java
@@ -63,13 +_,14 @@
@@ -71,13 +_,14 @@
TextureAtlas.LOCATION_BLOCKS,
ResourceLocation.withDefaultNamespace("blocks")
);
@@ -16,15 +16,15 @@
public ModelManager(TextureManager p_119406_, BlockColors p_119407_, int p_119408_) {
this.blockColors = p_119407_;
@@ -100,6 +_,7 @@
Executor p_249221_
@@ -102,6 +_,7 @@
public final CompletableFuture<Void> reload(
PreparableReloadListener.PreparationBarrier p_249079_, ResourceManager p_251134_, Executor p_250550_, Executor p_249221_
) {
p_250336_.startTick();
+ net.minecraftforge.client.model.geometry.GeometryLoaderManager.init();
CompletableFuture<Map<ResourceLocation, BlockModel>> completablefuture = loadBlockModels(p_251134_, p_250550_);
CompletableFuture<Map<ResourceLocation, List<BlockStateModelLoader.LoadedJson>>> completablefuture1 = loadBlockStates(p_251134_, p_250550_);
CompletableFuture<ModelBakery> completablefuture2 = completablefuture.thenCombineAsync(
@@ -214,6 +_,8 @@
UnbakedModel unbakedmodel = MissingBlockModel.missingModel();
BlockStateModelLoader blockstatemodelloader = new BlockStateModelLoader(unbakedmodel);
CompletableFuture<Map<ResourceLocation, UnbakedModel>> completablefuture = loadBlockModels(p_251134_, p_250550_);
@@ -253,6 +_,8 @@
.collect(Collectors.joining("\n"))
)
);
@@ -32,17 +32,17 @@
+ net.minecraftforge.client.ForgeHooksClient.onModifyBakingResult(p_248945_.getBakedTopLevelModels(), p_248945_);
p_252136_.popPush("dispatch");
Map<ModelResourceLocation, BakedModel> map = p_248945_.getBakedTopLevelModels();
BakedModel bakedmodel = map.get(ModelBakery.MISSING_MODEL_VARIANT);
@@ -243,6 +_,8 @@
BakedModel bakedmodel = map.get(MissingBlockModel.VARIANT);
@@ -284,6 +_,8 @@
this.bakedRegistry = modelbakery.getBakedTopLevelModels();
this.modelGroups = modelbakery.getModelGroups();
this.modelGroups = p_248996_.modelGroups;
this.missingModel = p_248996_.missingModel;
+ this.modelBakery = modelbakery;
+ net.minecraftforge.client.ForgeHooksClient.onModelBake(this, this.bakedRegistry, modelbakery);
p_251960_.popPush("cache");
this.blockModelShaper.replaceCache(p_248996_.modelCache);
p_251960_.pop();
@@ -268,6 +_,7 @@
@@ -308,6 +_,7 @@
}
public TextureAtlas getAtlas(ResourceLocation p_119429_) {
@@ -50,7 +50,7 @@
return this.atlases.getAtlas(p_119429_);
}
@@ -278,6 +_,10 @@
@@ -318,6 +_,10 @@
public void updateMaxMipLevel(int p_119411_) {
this.maxMipmapLevels = p_119411_;