From 384567c4a5fd3e18c10ee1007e2803bf9e21cffa Mon Sep 17 00:00:00 2001 From: Guichaguri Date: Thu, 23 Feb 2017 23:01:09 -0300 Subject: [PATCH] Added Forge slot methods to creative container (#3581) --- .../inventory/GuiContainerCreative.java.patch | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/patches/minecraft/net/minecraft/client/gui/inventory/GuiContainerCreative.java.patch b/patches/minecraft/net/minecraft/client/gui/inventory/GuiContainerCreative.java.patch index c8b64f2127..525e496780 100644 --- a/patches/minecraft/net/minecraft/client/gui/inventory/GuiContainerCreative.java.patch +++ b/patches/minecraft/net/minecraft/client/gui/inventory/GuiContainerCreative.java.patch @@ -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 =====================================*/ + } + }