diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/dulkirmod/mixins/MixinGuiContainer.java | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/main/java/dulkirmod/mixins/MixinGuiContainer.java b/src/main/java/dulkirmod/mixins/MixinGuiContainer.java index 6796703..2ffa02d 100644 --- a/src/main/java/dulkirmod/mixins/MixinGuiContainer.java +++ b/src/main/java/dulkirmod/mixins/MixinGuiContainer.java @@ -4,7 +4,11 @@ import dulkirmod.features.Croesus; import dulkirmod.features.DungeonLeap; import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.gui.inventory.GuiContainer; +import net.minecraft.client.renderer.GlStateManager; +import net.minecraft.init.Blocks; import net.minecraft.inventory.Slot; +import net.minecraft.item.EnumDyeColor; +import net.minecraft.item.ItemStack; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; @@ -18,7 +22,25 @@ public abstract class MixinGuiContainer extends GuiScreen { ci.cancel(); } if (DungeonLeap.Companion.inLeapMenu() && DungeonLeap.Companion.isHighlightedLeapPlayer(slotIn)) { - // TODO + ci.cancel(); + + ItemStack stack = new ItemStack(Blocks.wool, 1, EnumDyeColor.GREEN.getMetadata()); + + this.zLevel = 100.0F; + this.itemRender.zLevel = 100.0F; + + GlStateManager.enableDepth(); + this.itemRender.renderItemAndEffectIntoGUI( + stack, + slotIn.xDisplayPosition, + slotIn.yDisplayPosition + ); + this.itemRender.renderItemOverlayIntoGUI(this.fontRendererObj, stack, + slotIn.xDisplayPosition, slotIn.yDisplayPosition, "" + ); + + this.itemRender.zLevel = 0.0F; + this.zLevel = 0.0F; } } } |