Skip to content

Commit

Permalink
Part 2
Browse files Browse the repository at this point in the history
Boiler Chassi and Volumetric Flasks by @SABITRON
Hypervisor Matrix by bapy_ on discord
Moved dehydrator wires, particles to higher folder
  • Loading branch information
BlueHero233 committed Sep 25, 2024
1 parent ac97445 commit 891c7be
Show file tree
Hide file tree
Showing 90 changed files with 19 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public void addInformation(ItemStack stack, EntityPlayer player, List list, bool
@Override
public void registerIcons(IIconRegister reg) {
for (int i = 0; i < this.icons.length; i++) {
this.icons[i] = reg.registerIcon(GTPlusPlus.ID + ":" + "particle/new/" + i);
this.icons[i] = reg.registerIcon(GTPlusPlus.ID + ":particle/" + i);
}
}

Expand Down
28 changes: 9 additions & 19 deletions src/main/java/gtPlusPlus/core/item/general/ItemAirFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@

import cpw.mods.fml.common.registry.GameRegistry;
import gtPlusPlus.core.creative.AddToCreativeTab;
import gtPlusPlus.core.util.Utils;

public class ItemAirFilter extends Item {

public IIcon[] icons = new IIcon[1];
public IIcon[] icons = new IIcon[2];

public ItemAirFilter() {
super();
Expand All @@ -33,12 +32,13 @@ public ItemAirFilter() {

@Override
public void registerIcons(IIconRegister reg) {
this.icons[0] = reg.registerIcon(GTPlusPlus.ID + ":" + "itemAirFilter");
this.icons[0] = reg.registerIcon(GTPlusPlus.ID + ":itemAirFilter1");
this.icons[1] = reg.registerIcon(GTPlusPlus.ID + ":itemAirFilter2");
}

@Override
public IIcon getIconFromDamage(int meta) {
return this.icons[0];
return this.icons[meta];
}

@Override
Expand All @@ -60,7 +60,7 @@ public String getItemStackDisplayName(final ItemStack tItem) {
return "Air Filter";
}

String itemName = tItem == null ? "Air Filter" : super.getItemStackDisplayName(tItem);
String itemName = "Air Filter";
String suffixName = "";
if (tItem.getItemDamage() == 0) {
suffixName = " [Tier 1]";
Expand All @@ -70,15 +70,6 @@ public String getItemStackDisplayName(final ItemStack tItem) {
return (itemName + suffixName);
}

@Override
public int getColorFromItemStack(final ItemStack stack, int HEX_OxFFFFFF) {
int meta = stack.getItemDamage();
if (meta == 1) {
HEX_OxFFFFFF = Utils.rgbtoHexValue(150, 180, 35);
}
return HEX_OxFFFFFF;
}

private static boolean createNBT(ItemStack rStack) {
final NBTTagCompound tagMain = new NBTTagCompound();
final NBTTagCompound tagNBT = new NBTTagCompound();
Expand All @@ -88,11 +79,11 @@ private static boolean createNBT(ItemStack rStack) {
return true;
}

public static final long getFilterMaxDamage(final ItemStack aStack) {
public static long getFilterMaxDamage(final ItemStack aStack) {
return aStack.getItemDamage() == 0 ? 50 : 2500;
}

public static final long getFilterDamage(final ItemStack aStack) {
public static long getFilterDamage(final ItemStack aStack) {
NBTTagCompound aNBT = aStack.getTagCompound();
if (aNBT != null) {
aNBT = aNBT.getCompoundTag("AirFilter");
Expand All @@ -105,7 +96,7 @@ public static final long getFilterDamage(final ItemStack aStack) {
return 0L;
}

public static final boolean setFilterDamage(final ItemStack aStack, final long aDamage) {
public static boolean setFilterDamage(final ItemStack aStack, final long aDamage) {
NBTTagCompound aNBT = aStack.getTagCompound();
if (aNBT != null) {
aNBT = aNBT.getCompoundTag("AirFilter");
Expand All @@ -124,8 +115,7 @@ public double getDurabilityForDisplay(ItemStack stack) {
}
double currentDamage = getFilterDamage(stack);
double meta = getFilterMaxDamage(stack);
double durabilitypercent = currentDamage / meta;
return durabilitypercent;
return currentDamage / meta;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@

import cpw.mods.fml.common.registry.GameRegistry;
import gtPlusPlus.core.creative.AddToCreativeTab;
import gtPlusPlus.core.util.Utils;

public class ItemBoilerChassis extends Item {

public IIcon[] icons = new IIcon[1];
public IIcon[] icons = new IIcon[3];

public ItemBoilerChassis() {
super();
Expand All @@ -30,12 +29,14 @@ public ItemBoilerChassis() {

@Override
public void registerIcons(IIconRegister reg) {
this.icons[0] = reg.registerIcon(GTPlusPlus.ID + ":" + "itemBoilerChassis");
this.icons[0] = reg.registerIcon(GTPlusPlus.ID + ":itemBoilerChassis1");
this.icons[1] = reg.registerIcon(GTPlusPlus.ID + ":itemBoilerChassis2");
this.icons[2] = reg.registerIcon(GTPlusPlus.ID + ":itemBoilerChassis3");
}

@Override
public IIcon getIconFromDamage(int meta) {
return this.icons[0];
return this.icons[meta];
}

@Override
Expand All @@ -54,19 +55,4 @@ public String getUnlocalizedName(ItemStack stack) {
public String getItemStackDisplayName(final ItemStack tItem) {
return StatCollector.translateToLocalFormatted("item.itemBoilerChassis.name", tItem.getItemDamage());
}

@Override // TODO
public int getColorFromItemStack(final ItemStack stack, int HEX_OxFFFFFF) {
int meta = stack.getItemDamage();
if (meta == 0) {
HEX_OxFFFFFF = Utils.rgbtoHexValue(10, 110, 30);
} else if (meta == 1) {
HEX_OxFFFFFF = Utils.rgbtoHexValue(150, 180, 35);
} else if (meta == 2) {
HEX_OxFFFFFF = Utils.rgbtoHexValue(200, 85, 40);
} else if (meta == 3) {
HEX_OxFFFFFF = Utils.rgbtoHexValue(255, 100, 50);
}
return HEX_OxFFFFFF;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ public ItemDehydratorCoilWire() {

@Override
public void registerIcons(IIconRegister reg) {
this.icons[0] = reg.registerIcon(GTPlusPlus.ID + ":" + "dehydrator/itemDehydratorCoilWire_0");
this.icons[1] = reg.registerIcon(GTPlusPlus.ID + ":" + "dehydrator/itemDehydratorCoilWire_1");
this.icons[2] = reg.registerIcon(GTPlusPlus.ID + ":" + "dehydrator/itemDehydratorCoilWire_2");
this.icons[3] = reg.registerIcon(GTPlusPlus.ID + ":" + "dehydrator/itemDehydratorCoilWire_3");
this.icons[0] = reg.registerIcon(GTPlusPlus.ID + ":/itemDehydratorCoilWire_0");
this.icons[1] = reg.registerIcon(GTPlusPlus.ID + ":/itemDehydratorCoilWire_1");
this.icons[2] = reg.registerIcon(GTPlusPlus.ID + ":/itemDehydratorCoilWire_2");
this.icons[3] = reg.registerIcon(GTPlusPlus.ID + ":/itemDehydratorCoilWire_3");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,6 @@ public ResourceLocation getTextureFile() {
public static final CustomIcon Overlay_Machine_Screen_Logo = new CustomIcon("TileEntities/adv_machine_screen_logo");

// Machine Controller Overlays
// public static final CustomIcon Overlay_Machine_Controller_Default = new CustomIcon(
// "iconsets/OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE_ANIMATED");
// public static final CustomIcon Overlay_Machine_Controller_Default_Active = new CustomIcon(
// "iconsets/OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE_ANIMATED_ACTIVE");

// oMCD = Overlay_Machine_Controller_Default
public static final CustomIcon oMCDSolarTower = new CustomIcon("iconsets/controllerFaces/solarTower");
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.
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.
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.
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.
Binary file not shown.
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.
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.
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.
Binary file not shown.
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.
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.
Binary file not shown.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Diff not rendered.
Binary file modified src/main/resources/assets/miscutils/textures/items/particle/0.png
Binary file modified src/main/resources/assets/miscutils/textures/items/particle/1.png
Binary file modified src/main/resources/assets/miscutils/textures/items/particle/11.png
Binary file modified src/main/resources/assets/miscutils/textures/items/particle/14.png
Binary file modified src/main/resources/assets/miscutils/textures/items/particle/15.png
Binary file modified src/main/resources/assets/miscutils/textures/items/particle/17.png
Binary file modified src/main/resources/assets/miscutils/textures/items/particle/18.png
Binary file modified src/main/resources/assets/miscutils/textures/items/particle/19.png
Binary file modified src/main/resources/assets/miscutils/textures/items/particle/2.png
Binary file modified src/main/resources/assets/miscutils/textures/items/particle/20.png
Binary file modified src/main/resources/assets/miscutils/textures/items/particle/21.png
Binary file modified src/main/resources/assets/miscutils/textures/items/particle/22.png
Binary file modified src/main/resources/assets/miscutils/textures/items/particle/23.png
Binary file modified src/main/resources/assets/miscutils/textures/items/particle/24.png
Binary file modified src/main/resources/assets/miscutils/textures/items/particle/3.png
Binary file modified src/main/resources/assets/miscutils/textures/items/particle/4.png
Binary file modified src/main/resources/assets/miscutils/textures/items/particle/5.png
Binary file modified src/main/resources/assets/miscutils/textures/items/particle/6.png
Binary file modified src/main/resources/assets/miscutils/textures/items/particle/7.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.

0 comments on commit 891c7be

Please sign in to comment.