Skip to content

Commit

Permalink
rebrand
Browse files Browse the repository at this point in the history
  • Loading branch information
lordIcocain committed Dec 18, 2024
1 parent 1d6ee4d commit 859865d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 12 deletions.
34 changes: 24 additions & 10 deletions src/main/java/appeng/parts/networking/PartCreativeEnergy.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;

import org.lwjgl.opengl.GL11;

Expand All @@ -12,7 +11,7 @@
import appeng.api.networking.energy.IAEPowerStorage;
import appeng.api.parts.IPartCollisionHelper;
import appeng.api.parts.IPartRenderHelper;
import appeng.client.texture.TextureUtils;
import appeng.client.texture.CableBusTextures;
import appeng.parts.AEBasePart;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
Expand All @@ -26,29 +25,44 @@ public PartCreativeEnergy(final ItemStack is) {

@Override
public void getBoxes(final IPartCollisionHelper bch) {
bch.addBox(6, 6, 10, 10, 10, 16);
bch.addBox(6, 6, 11, 10, 10, 12);
bch.addBox(4, 4, 12, 12, 12, 13);
}

@Override
@SideOnly(Side.CLIENT)
public void renderInventory(final IPartRenderHelper rh, final RenderBlocks renderer) {
GL11.glTranslated(-0.2, -0.3, 0.0);

rh.setTexture(this.getItemStack().getIconIndex());
rh.setBounds(6.0f, 6.0f, 5.0f, 10.0f, 10.0f, 11.0f);
rh.setTexture(
CableBusTextures.PartTunnelSides.getIcon(),
CableBusTextures.PartTunnelSides.getIcon(),
CableBusTextures.BlockP2PTunnel2.getIcon(),
this.getItemStack().getIconIndex(),
CableBusTextures.PartTunnelSides.getIcon(),
CableBusTextures.PartTunnelSides.getIcon());
rh.setBounds(4.0f, 4.0f, 12.0f, 12.0f, 12.0f, 13.0f);
rh.renderInventoryBox(renderer);
rh.setTexture(null);
}

@Override
@SideOnly(Side.CLIENT)
public void renderStatic(final int x, final int y, final int z, final IPartRenderHelper rh,
final RenderBlocks renderer) {
final IIcon myIcon = TextureUtils.checkTexture(this.getItemStack().getIconIndex());
rh.setTexture(myIcon);
rh.setBounds(6, 6, 10, 10, 10, 16);
rh.setTexture(
CableBusTextures.PartTunnelSides.getIcon(),
CableBusTextures.PartTunnelSides.getIcon(),
CableBusTextures.BlockP2PTunnel2.getIcon(),
this.getItemStack().getIconIndex(),
CableBusTextures.PartTunnelSides.getIcon(),
CableBusTextures.PartTunnelSides.getIcon());
rh.setBounds(4, 4, 12, 12, 12, 13);
rh.renderBlock(x, y, z, renderer);

rh.setTexture(CableBusTextures.BlockP2PTunnel2.getIcon());

rh.setBounds(6, 6, 11, 10, 10, 12);
rh.renderBlock(x, y, z, renderer);
rh.setTexture(null);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ item.appliedenergistics2.ItemPart.P2PTunnel.name=P2P Tunnel
item.appliedenergistics2.ItemPart.PatternTerminal.name=ME Pattern Terminal
item.appliedenergistics2.ItemPart.PatternTerminalEx.name=ME Processing Pattern Terminal
item.appliedenergistics2.ItemPart.QuartzFiber.name=Quartz Fiber
item.appliedenergistics2.ItemPart.PartCreativeEnergy.name=Creative Energy Fiber
item.appliedenergistics2.ItemPart.PartCreativeEnergy.name=Creative Energy Anchor
item.appliedenergistics2.ItemPart.StorageBus.name=ME Storage Bus
item.appliedenergistics2.ItemPart.Terminal.name=ME Terminal
item.appliedenergistics2.ItemPart.CraftingTerminal.name=ME Crafting Terminal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
shapeless=
ae2:ItemPart.QuartzFiber ae2:BlockCreativeEnergyCell
ae2:ItemPart.CableAnchor ae2:BlockCreativeEnergyCell
-> 1 ae2:ItemPart.PartCreativeEnergy
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 859865d

Please sign in to comment.