mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-26 06:53:20 +00:00
* Reimplement forge blockstates variant through the use of a pseudo-model that handles the model loading, retexturing, custom data, etc. on behalf of the blockstates loader. This model gets injected into the model registry with an autogenerated unique name, to not collide with other model locations. * Fix model loaders not being properly initialized by calling the reload method from the loader register function. In 1.12, registering a reload listener caused the listener to be called right away from the register method. This is not true anymore.
20 lines
637 B
Diff
20 lines
637 B
Diff
--- a/net/minecraft/client/renderer/model/Variant.java
|
|
+++ b/net/minecraft/client/renderer/model/Variant.java
|
|
@@ -13,7 +13,7 @@
|
|
import net.minecraftforge.api.distmarker.OnlyIn;
|
|
|
|
@OnlyIn(Dist.CLIENT)
|
|
-public class Variant implements ISprite {
|
|
+public class Variant implements ISprite, net.minecraftforge.client.model.ISmartVariant {
|
|
private final ResourceLocation field_188050_a;
|
|
private final ModelRotation field_188051_b;
|
|
private final boolean field_188052_c;
|
|
@@ -30,6 +30,7 @@
|
|
return this.field_188050_a;
|
|
}
|
|
|
|
+ @Deprecated
|
|
public ModelRotation func_188048_b() {
|
|
return this.field_188051_b;
|
|
}
|