diff options
author | ingle <inglettronald@gmail.com> | 2022-10-28 12:17:26 -0500 |
---|---|---|
committer | ingle <inglettronald@gmail.com> | 2022-10-28 12:17:26 -0500 |
commit | bfa2b37155711e2a907f15d6e56d18378ae4f723 (patch) | |
tree | ffae5faade666c6ed631f8f8c438def680c9fc27 /src/main/java/dulkirmod | |
parent | fba8ecf8f06c03c36c8d4823fe5e5928bad98d32 (diff) | |
download | DulkirMod-bfa2b37155711e2a907f15d6e56d18378ae4f723.tar.gz DulkirMod-bfa2b37155711e2a907f15d6e56d18378ae4f723.tar.bz2 DulkirMod-bfa2b37155711e2a907f15d6e56d18378ae4f723.zip |
+ Efficiency improvements
+ command for setting leap highlight
+ (I THINK) abiphone dnd (on by default)
Diffstat (limited to 'src/main/java/dulkirmod')
-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; } } } |