Skip to content

Commit

Permalink
Creative item bus
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorbatron committed Sep 10, 2024
1 parent 9ee0bbd commit 5e935c8
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/main/java/com/zorbatron/zbgt/api/render/ZBGTTextures.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class ZBGTTextures {
// Multiblock part overlays
public static SimpleOverlayRenderer WATER_OVERLAY_INFINITY;
public static SimpleOverlayRenderer ITEM_OVERLAY_INFINITY;
public static SimpleOverlayRenderer SWIRLY_INFINITY;

// GUI overlays
public static TextureArea ITEM_FLUID_OVERLAY;
Expand All @@ -31,8 +32,9 @@ public class ZBGTTextures {
public static SimpleOverlayRenderer IRIDIUM_CASING;

public static void preInit() {
WATER_OVERLAY_INFINITY = new SimpleOverlayRenderer("overlay/machine/overlay_water_infinity");
ITEM_OVERLAY_INFINITY = new SimpleOverlayRenderer("overlay/machine/overlay_item_infinity");
WATER_OVERLAY_INFINITY = new SimpleOverlayRenderer("overlay/machine/water_infinity");
ITEM_OVERLAY_INFINITY = new SimpleOverlayRenderer("overlay/machine/item_infinity");
SWIRLY_INFINITY = new SimpleOverlayRenderer("overlay/machine/swirly_infinity");

ITEM_FLUID_OVERLAY = TextureArea.fullImage("textures/gui/widget/item_fluid.png");
AUTO_PULL = TextureArea.fullImage("textures/gui/widget/auto_pull.png");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import gregtech.api.metatileentity.interfaces.IGregTechTileEntity;
import gregtech.api.metatileentity.multiblock.IMultiblockAbilityPart;
import gregtech.api.metatileentity.multiblock.MultiblockAbility;
import gregtech.client.renderer.texture.Textures;
import gregtech.client.utils.TooltipHelper;
import gregtech.common.metatileentities.multi.multiblockpart.MetaTileEntityMultiblockNotifiablePart;

Expand Down Expand Up @@ -113,7 +114,8 @@ public void renderMetaTileEntity(CCRenderState renderState, @NotNull Matrix4 tra
IVertexOperation[] pipeline) {
super.renderMetaTileEntity(renderState, translation, pipeline);
if (shouldRenderOverlay()) {
ZBGTTextures.WATER_OVERLAY_INFINITY.renderSided(getFrontFacing(), renderState, translation, pipeline);
Textures.FLUID_HATCH_INPUT_OVERLAY.renderSided(getFrontFacing(), renderState, translation, pipeline);
ZBGTTextures.SWIRLY_INFINITY.renderSided(getFrontFacing(), renderState, translation, pipeline);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import com.zorbatron.zbgt.ZBGTUtility;
import com.zorbatron.zbgt.api.capability.impl.InfiniteItemStackHandler;
import com.zorbatron.zbgt.api.render.ZBGTTextures;
import com.zorbatron.zbgt.client.widgets.PhantomSlotNoTextWidget;

import codechicken.lib.render.CCRenderState;
Expand Down Expand Up @@ -101,7 +102,7 @@ public void renderMetaTileEntity(CCRenderState renderState, Matrix4 translation,

if (shouldRenderOverlay()) {
Textures.ITEM_HATCH_INPUT_OVERLAY.renderSided(getFrontFacing(), renderState, translation, pipeline);
Textures.CREATIVE_CONTAINER_OVERLAY.renderSided(getFrontFacing(), renderState, translation, pipeline);
ZBGTTextures.SWIRLY_INFINITY.renderSided(getFrontFacing(), renderState, translation, pipeline);
}
}

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"animation":{
"frametime": 2
}
}

0 comments on commit 5e935c8

Please sign in to comment.