Added Forge slot methods to creative container (#3581)

This commit is contained in:
Guichaguri authored and LexManos committed 2017-02-23 18:01:09 -08:00
1 parent d3e4fde2b2
commit 384567c4a5
1 file changed
+38
@@ -264,3 +264,41 @@
}
public int func_147056_g()
@@ -984,5 +1081,37 @@
{
return this.field_148332_b.func_82869_a(p_82869_1_);
}
+
+ /*========================================= FORGE START =====================================*/
+ public net.minecraft.util.ResourceLocation getBackgroundLocation()
+ {
+ return this.field_148332_b.getBackgroundLocation();
+ }
+
+ public void setBackgroundLocation(net.minecraft.util.ResourceLocation texture)
+ {
+ this.field_148332_b.setBackgroundLocation(texture);
+ }
+
+ public void setBackgroundName(String name)
+ {
+ this.field_148332_b.setBackgroundName(name);
+ }
+
+ public net.minecraft.client.renderer.texture.TextureAtlasSprite getBackgroundSprite()
+ {
+ return this.field_148332_b.getBackgroundSprite();
+ }
+
+ public int getSlotIndex()
+ {
+ return this.field_148332_b.getSlotIndex();
+ }
+
+ public boolean isSameInventory(Slot other)
+ {
+ return this.field_148332_b.isSameInventory(other);
+ }
+ /*========================================= FORGE END =====================================*/
}
}