diff options
author | inglettronald <71849533+inglettronald@users.noreply.github.com> | 2022-11-04 00:52:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-04 00:52:28 -0500 |
commit | 91ee32e41b3e1be0959c879ba8f93876fbfaf9af (patch) | |
tree | 04b9f07f661135b5d56403cdfc1d82ed26d3d3f5 /src/main/java/dulkirmod/mixins/MixinGuiContainer.java | |
parent | 21171955bde8025ad31b72ebfaf57019d0cecf36 (diff) | |
parent | 7c58ed97df75ad721fd14133a49b1a64de257179 (diff) | |
download | DulkirMod-91ee32e41b3e1be0959c879ba8f93876fbfaf9af.tar.gz DulkirMod-91ee32e41b3e1be0959c879ba8f93876fbfaf9af.tar.bz2 DulkirMod-91ee32e41b3e1be0959c879ba8f93876fbfaf9af.zip |
Merge pull request #3 from hannibal002/java_reformat
Java Reformat
Diffstat (limited to 'src/main/java/dulkirmod/mixins/MixinGuiContainer.java')
-rw-r--r-- | src/main/java/dulkirmod/mixins/MixinGuiContainer.java | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/main/java/dulkirmod/mixins/MixinGuiContainer.java b/src/main/java/dulkirmod/mixins/MixinGuiContainer.java index 2ffa02d..2b9b070 100644 --- a/src/main/java/dulkirmod/mixins/MixinGuiContainer.java +++ b/src/main/java/dulkirmod/mixins/MixinGuiContainer.java @@ -16,31 +16,31 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; @Mixin(GuiContainer.class) public abstract class MixinGuiContainer extends GuiScreen { - @Inject(at=@At("HEAD"), method="drawSlot", cancellable = true) + @Inject(at = @At("HEAD"), method = "drawSlot", cancellable = true) public void drawSlot(Slot slotIn, CallbackInfo ci) { if (Croesus.Companion.inCroesus() && Croesus.Companion.isChestOpened(slotIn)) { ci.cancel(); } if (DungeonLeap.Companion.inLeapMenu() && DungeonLeap.Companion.isHighlightedLeapPlayer(slotIn)) { - ci.cancel(); + ci.cancel(); - ItemStack stack = new ItemStack(Blocks.wool, 1, EnumDyeColor.GREEN.getMetadata()); + ItemStack stack = new ItemStack(Blocks.wool, 1, EnumDyeColor.GREEN.getMetadata()); - this.zLevel = 100.0F; - this.itemRender.zLevel = 100.0F; + 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, "" - ); + 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; + this.itemRender.zLevel = 0.0F; + this.zLevel = 0.0F; } } } |