From f32c25035fb7e6c5a346bb21da0f4a13c63a24fd Mon Sep 17 00:00:00 2001 From: Ghzdude <44148655+ghzdude@users.noreply.github.com> Date: Thu, 21 Dec 2023 20:25:16 -0700 Subject: [PATCH] sbobless --- .../gregtech/client/renderer/texture/Textures.java | 3 ++- .../storage/MetaTileEntityQuantumEnergyAcceptor.java | 11 +++++------ .../storage/MetaTileEntityQuantumExtender.java | 1 - .../storage/MetaTileEntityQuantumStorage.java | 9 ++++++--- .../MetaTileEntityQuantumStorageController.java | 4 ++-- 5 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/main/java/gregtech/client/renderer/texture/Textures.java b/src/main/java/gregtech/client/renderer/texture/Textures.java index 30068df7a37..86da98492fe 100644 --- a/src/main/java/gregtech/client/renderer/texture/Textures.java +++ b/src/main/java/gregtech/client/renderer/texture/Textures.java @@ -107,7 +107,8 @@ public class Textures { "casings/quantum/controller_active"); public static final SimpleOverlayRenderer QUANTUM_CONTROLLER_INACTIVE = new SimpleOverlayRenderer( "casings/quantum/controller_inactive"); - public static final SimpleOverlayRenderer QUANTUM_PROXY_INACTIVE = new SimpleOverlayRenderer("casings/quantum/proxy_inactive"); + public static final SimpleOverlayRenderer QUANTUM_PROXY_INACTIVE = new SimpleOverlayRenderer( + "casings/quantum/proxy_inactive"); public static final SimpleOverlayRenderer QUANTUM_PROXY_ACTIVE = new SimpleOverlayRenderer( "casings/quantum/proxy_active"); public static final SimpleOverlayRenderer QUANTUM_EXTENDER = new SimpleOverlayRenderer("casings/quantum/extender"); diff --git a/src/main/java/gregtech/common/metatileentities/storage/MetaTileEntityQuantumEnergyAcceptor.java b/src/main/java/gregtech/common/metatileentities/storage/MetaTileEntityQuantumEnergyAcceptor.java index 2c4a74ee5c1..21aec5c4360 100644 --- a/src/main/java/gregtech/common/metatileentities/storage/MetaTileEntityQuantumEnergyAcceptor.java +++ b/src/main/java/gregtech/common/metatileentities/storage/MetaTileEntityQuantumEnergyAcceptor.java @@ -1,20 +1,19 @@ package gregtech.common.metatileentities.storage; -import codechicken.lib.render.CCRenderState; -import codechicken.lib.render.pipeline.IVertexOperation; -import codechicken.lib.vec.Matrix4; - import gregtech.api.capability.GregtechCapabilities; import gregtech.api.capability.IEnergyContainer; import gregtech.api.metatileentity.MetaTileEntity; import gregtech.api.metatileentity.interfaces.IGregTechTileEntity; - import gregtech.client.renderer.texture.Textures; import net.minecraft.util.EnumFacing; import net.minecraft.util.ResourceLocation; import net.minecraftforge.common.capabilities.Capability; +import codechicken.lib.render.CCRenderState; +import codechicken.lib.render.pipeline.IVertexOperation; +import codechicken.lib.vec.Matrix4; + public class MetaTileEntityQuantumEnergyAcceptor extends MetaTileEntityQuantumStorage { public MetaTileEntityQuantumEnergyAcceptor(ResourceLocation metaTileEntityId) { @@ -23,7 +22,7 @@ public MetaTileEntityQuantumEnergyAcceptor(ResourceLocation metaTileEntityId) { @Override public void renderMetaTileEntity(CCRenderState renderState, Matrix4 translation, IVertexOperation[] pipeline) { - Textures.QUANTUM_CASING.render(renderState, translation,pipeline); + Textures.QUANTUM_CASING.render(renderState, translation, pipeline); Textures.ENERGY_IN_HI.renderSided(getFrontFacing(), renderState, translation, pipeline); } diff --git a/src/main/java/gregtech/common/metatileentities/storage/MetaTileEntityQuantumExtender.java b/src/main/java/gregtech/common/metatileentities/storage/MetaTileEntityQuantumExtender.java index 01906ad5656..81a3b7f113b 100644 --- a/src/main/java/gregtech/common/metatileentities/storage/MetaTileEntityQuantumExtender.java +++ b/src/main/java/gregtech/common/metatileentities/storage/MetaTileEntityQuantumExtender.java @@ -10,7 +10,6 @@ import net.minecraft.client.renderer.texture.TextureAtlasSprite; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.network.PacketBuffer; -import net.minecraft.util.EnumFacing; import net.minecraft.util.ResourceLocation; import codechicken.lib.render.CCRenderState; diff --git a/src/main/java/gregtech/common/metatileentities/storage/MetaTileEntityQuantumStorage.java b/src/main/java/gregtech/common/metatileentities/storage/MetaTileEntityQuantumStorage.java index 8747463fc5e..554180d3fde 100644 --- a/src/main/java/gregtech/common/metatileentities/storage/MetaTileEntityQuantumStorage.java +++ b/src/main/java/gregtech/common/metatileentities/storage/MetaTileEntityQuantumStorage.java @@ -168,7 +168,8 @@ public void receiveCustomData(int dataId, PacketBuffer buf) { if (this.connectedIcon != null) { this.connectedIcon.setImage(GuiTextures.GREGTECH_LOGO); - String pos = String.format("X=%d, Z=%d, Y=%d", controllerPos.getX(), controllerPos.getZ(), controllerPos.getY()); + String pos = String.format("X=%d, Z=%d, Y=%d", controllerPos.getX(), controllerPos.getZ(), + controllerPos.getY()); this.connectedIcon.setTooltip("Connected to Quantum Controller at/n" + pos); } } else if (dataId == REMOVE_CONTROLLER) { @@ -199,10 +200,12 @@ public void readFromNBT(NBTTagCompound data) { protected ImageWidget createConnectedGui(int y) { // todo do something for rendering a highlight at the controller - connectedIcon = new ImageWidget(151, y, 18, 18, isConnected() ? GuiTextures.GREGTECH_LOGO : GuiTextures.GREGTECH_LOGO_DARK); + connectedIcon = new ImageWidget(151, y, 18, 18, + isConnected() ? GuiTextures.GREGTECH_LOGO : GuiTextures.GREGTECH_LOGO_DARK); if (isConnected()) { - String pos = String.format("X=%d, Z=%d, Y=%d", controllerPos.getX(), controllerPos.getZ(), controllerPos.getY()); + String pos = String.format("X=%d, Z=%d, Y=%d", controllerPos.getX(), controllerPos.getZ(), + controllerPos.getY()); connectedIcon.setTooltip("Connected to Quantum Controller at/n" + pos); } diff --git a/src/main/java/gregtech/common/metatileentities/storage/MetaTileEntityQuantumStorageController.java b/src/main/java/gregtech/common/metatileentities/storage/MetaTileEntityQuantumStorageController.java index a28ffd74955..5701c024af2 100644 --- a/src/main/java/gregtech/common/metatileentities/storage/MetaTileEntityQuantumStorageController.java +++ b/src/main/java/gregtech/common/metatileentities/storage/MetaTileEntityQuantumStorageController.java @@ -118,10 +118,10 @@ public void receiveCustomData(int dataId, @NotNull PacketBuffer buf) { @Override public void renderMetaTileEntity(CCRenderState renderState, Matrix4 translation, IVertexOperation[] pipeline) { var front = isPowered() ? - Textures.QUANTUM_CONTROLLER_FRONT_ACTIVE: + Textures.QUANTUM_CONTROLLER_FRONT_ACTIVE : Textures.QUANTUM_CONTROLLER_FRONT_INACTIVE; var sides = isPowered() ? - Textures.QUANTUM_CONTROLLER_ACTIVE: + Textures.QUANTUM_CONTROLLER_ACTIVE : Textures.QUANTUM_CONTROLLER_INACTIVE; front.renderSided(getFrontFacing(), renderState, translation, pipeline);