Files
MinecraftForge/patches/minecraft/net/minecraft/client/renderer/model/Variant.java.patch
T
David Quintana 5e9380ab85 Fix forge blockstates and custom model loading (#6154)
* 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.
2019-10-08 00:18:29 +02:00

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;
}