Skip to content

Commit

Permalink
start work on indicator overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude committed Dec 22, 2023
1 parent 7ac52f4 commit f485491
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
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.IQuantumController;
import gregtech.api.capability.IQuantumStorage;
import gregtech.api.gui.GuiTextures;
Expand All @@ -18,6 +22,9 @@
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;

import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand All @@ -41,6 +48,11 @@ public MetaTileEntityQuantumStorage(ResourceLocation metaTileEntityId) {
super(metaTileEntityId);
}

@SideOnly(Side.CLIENT)
protected void renderIndicatorOverly(CCRenderState renderState, Matrix4 translation, IVertexOperation[] pipeline) {
// todo create indicator overlay
}

@Override
public void setConnected(IQuantumController controller) {
if (getWorld().isRemote) return;
Expand Down

0 comments on commit f485491

Please sign in to comment.