Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove 32x textures #3276

Merged
merged 39 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
3ccacc4
Leaves, Breads and Pizzas re texture
BlueHero233 May 23, 2024
c5d8acc
Crop Blocks Added
BlueHero233 May 24, 2024
1a5c5f2
Merge branch 'GTNewHorizons:master' into master
BlueHero233 Aug 5, 2024
c261401
Merge branch 'GTNewHorizons:master' into master
BlueHero233 Aug 5, 2024
875643f
Merge branch 'GTNewHorizons:master' into master
BlueHero233 Aug 22, 2024
a093989
Merge branch 'GTNewHorizons:master' into master
BlueHero233 Aug 26, 2024
378c53f
Merge branch 'GTNewHorizons:master' into master
BlueHero233 Aug 27, 2024
75ecc2c
Merge branch 'GTNewHorizons:master' into master
BlueHero233 Aug 29, 2024
48f3074
Merge branch 'GTNewHorizons:master' into master
BlueHero233 Aug 31, 2024
70b936f
Merge branch 'GTNewHorizons:master' into master
BlueHero233 Sep 3, 2024
18fb41c
Merge branch 'GTNewHorizons:master' into master
BlueHero233 Sep 7, 2024
aac05da
Merge branch 'GTNewHorizons:master' into master
BlueHero233 Sep 10, 2024
32530ba
Merge branch 'GTNewHorizons:master' into master
BlueHero233 Sep 12, 2024
1a6f70d
Merge branch 'GTNewHorizons:master' into master
BlueHero233 Sep 15, 2024
37cd4e2
Merge branch 'GTNewHorizons:master' into master
BlueHero233 Sep 17, 2024
a1bb3dc
Merge branch 'GTNewHorizons:master' into master
BlueHero233 Sep 19, 2024
df6fbf4
Merge branch 'GTNewHorizons:master' into master
BlueHero233 Sep 20, 2024
8aec74a
Merge branch 'GTNewHorizons:master' into master
BlueHero233 Sep 23, 2024
ac97445
GT++ REMOVE 32x
BlueHero233 Sep 24, 2024
891c7be
Part 2
BlueHero233 Sep 25, 2024
1d0e871
Texture pathing
BlueHero233 Sep 25, 2024
5734354
Merge branch 'master' into remove-32x-textures
Dream-Master Sep 25, 2024
e1315b7
Subatomic Particles
BlueHero233 Sep 28, 2024
0ee2dd9
Merge remote-tracking branch 'origin/remove-32x-textures' into remove…
BlueHero233 Sep 28, 2024
4584a56
Fireproof Gloves
BlueHero233 Sep 29, 2024
c32748b
Merge branch 'GTNewHorizons:master' into remove-32x-textures
BlueHero233 Sep 29, 2024
d239acf
More Stuff
BlueHero233 Sep 30, 2024
079ad34
Pellets, cube, matrix
BlueHero233 Sep 30, 2024
74992fc
Algae texture
BlueHero233 Sep 30, 2024
07b397c
More turbine Shenanigans
BlueHero233 Sep 30, 2024
8a5b59f
More turbine Shenanigans
BlueHero233 Sep 30, 2024
e0d805c
Charge packs, beamline particles
BlueHero233 Oct 1, 2024
4693cad
Algae biomass, blank
BlueHero233 Oct 1, 2024
df509f3
Merge branch 'master' into remove-32x-textures
BlueHero233 Oct 1, 2024
8200ec7
Revert class rename
BlueHero233 Oct 1, 2024
5ce7490
Change requested fixes
BlueHero233 Oct 1, 2024
a204864
Merge branch 'master' into remove-32x-textures
BlueHero233 Oct 1, 2024
947e587
Strange spotless bug
BlueHero233 Oct 1, 2024
95a8b0e
Bruh
BlueHero233 Oct 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/gregtech/common/blocks/BlockCasings8.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,6 @@ public IIcon getIcon(IBlockAccess aWorld, int xCoord, int yCoord, int zCoord, in
}
}

return Textures.BlockIcons.MACHINE_CASING_SOLID_STEEL.getIcon();
return Textures.BlockIcons.MACHINE_CASING_ADVANCEDGAS.getIcon();
BlueHero233 marked this conversation as resolved.
Show resolved Hide resolved
}
}
35 changes: 14 additions & 21 deletions src/main/java/gtPlusPlus/core/item/chemistry/IonParticles.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import gregtech.api.enums.Materials;
import gtPlusPlus.core.item.base.misc.BaseItemParticle;
import gtPlusPlus.core.material.MaterialsElements;
import gtPlusPlus.core.util.Utils;

public class IonParticles extends BaseItemParticle {
Expand All @@ -24,16 +23,17 @@ public class IonParticles extends BaseItemParticle {
public static HashMap<Integer, String> MetaToNameMap = new HashMap<>();

public IonParticles() {
super("Ion", MaterialsElements.NAMES.length, EnumRarity.rare);
super("Ion", ions.length, EnumRarity.rare);
}

public static IIcon[] overlays = new IIcon[MaterialsElements.NAMES.length];
public static IIcon baseTexture;
public static final String[] ions = new String[] { "Hydrogen", "Helium" };

public IIcon[] texture = new IIcon[ions.length];

static {
// Generate Ions
int key = 0;
for (String s : MaterialsElements.NAMES) {
for (String s : ions) {
// Map names to Meta
NameToMetaMap.put(Utils.sanitizeString(s.toLowerCase()), key);
MetaToNameMap.put(key, Utils.sanitizeString(s.toLowerCase()));
Expand All @@ -60,7 +60,7 @@ public String getUnlocalizedName() {

@Override
public String getUnlocalizedName(final ItemStack itemStack) {
return "item.particle.ion" + "." + MaterialsElements.NAMES[itemStack.getItemDamage()];
return "item.particle.ion." + ions[itemStack.getItemDamage()];
}

private static boolean createNBT(ItemStack rStack) {
Expand All @@ -72,7 +72,7 @@ private static boolean createNBT(ItemStack rStack) {
return true;
}

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

public static final boolean setChargeState(final ItemStack aStack, final long aCharge) {
public static boolean setChargeState(final ItemStack aStack, final long aCharge) {
NBTTagCompound aNBT = aStack.getTagCompound();
if (aNBT != null) {
aNBT = aNBT.getCompoundTag("Ion");
Expand All @@ -102,8 +102,7 @@ public double getDurabilityForDisplay(ItemStack stack) {
if (stack.getTagCompound() == null) {
createNBT(stack);
}
double chargeState = getChargeState(stack);
return chargeState;
return (double) getChargeState(stack);
}

@Override
Expand Down Expand Up @@ -131,23 +130,21 @@ public void addInformation(ItemStack stack, EntityPlayer player, List list, bool
+ " Ion with a "
+ aState
+ " charge state of "
+ aCharge
+ "");
+ aCharge);
}
super.addInformation(stack, player, list, bool);
}

@Override
public void registerIcons(IIconRegister reg) {
for (int i = 0; i < IonParticles.overlays.length; i++) {
IonParticles.overlays[i] = reg.registerIcon(GTPlusPlus.ID + ":" + "ion/" + i);
for (int i = 0; i < this.texture.length; i++) {
this.texture[i] = reg.registerIcon(GTPlusPlus.ID + ":ion" + i);
}
IonParticles.baseTexture = reg.registerIcon(GTPlusPlus.ID + ":" + "ion/IonBase");
}

@Override
public IIcon getIconFromDamage(int meta) {
return IonParticles.overlays[meta];
return this.texture[meta];
}

@Override
Expand All @@ -157,11 +154,7 @@ public boolean requiresMultipleRenderPasses() {

@Override
public IIcon getIconFromDamageForRenderPass(int aMeta, int aPass) {
if (aPass == 0) {
return IonParticles.baseTexture;
} else {
return IonParticles.overlays[aMeta];
}
return this.texture[aMeta];
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ public StandardBaseParticles() {
MetaToNameMap.put(key, Utils.sanitizeString(s.toLowerCase()));
for (Particle o : Particle.aMap) {
int aColour = 0;
if (o.mParticleName.toLowerCase()
.equals(s.toLowerCase())) {
if (o.mParticleName.equalsIgnoreCase(s)) {
if (o.mParticleType == ElementaryGroup.BARYON) {
aColour = Utils.rgbtoHexValue(174, 226, 156);
aColourMap.put(key++, aColour);
Expand Down Expand Up @@ -109,7 +108,6 @@ public int getColorFromItemStack(final ItemStack stack, final int HEX_OxFFFFFF)
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean bool) {
Particle aCharge = getParticle(stack);
EnumChatFormatting aColour = EnumChatFormatting.GRAY;
String aState = aColour + "Unknown" + EnumChatFormatting.RESET;
if (aCharge != null) {
String aGroup = aCharge.mParticleType.name()
.toLowerCase();
Expand All @@ -130,13 +128,11 @@ public void addInformation(ItemStack stack, EntityPlayer player, List list, bool
} else if (aGroup.toLowerCase()
.contains("meson")) {
aColour = EnumChatFormatting.WHITE;
} else {
aColour = EnumChatFormatting.GRAY;
}
String aFirstLet = aGroup.substring(0, 1)
.toUpperCase();
aGroup = aGroup.replaceFirst(aGroup.substring(0, 1), aFirstLet);
aState = aColour + aGroup + EnumChatFormatting.RESET;
String aState = aColour + aGroup + EnumChatFormatting.RESET;
list.add(EnumChatFormatting.GRAY + "Type: " + aState);
}
super.addInformation(stack, player, list, bool);
Expand All @@ -145,7 +141,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) {
NotAPenguin0 marked this conversation as resolved.
Show resolved Hide resolved
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) {
NotAPenguin0 marked this conversation as resolved.
Show resolved Hide resolved
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 ItemDehydratorCoil() {

@Override
public void registerIcons(IIconRegister reg) {
this.icons[0] = reg.registerIcon(GTPlusPlus.ID + ":" + "dehydrator/itemDehydratorCoil_0");
this.icons[1] = reg.registerIcon(GTPlusPlus.ID + ":" + "dehydrator/itemDehydratorCoil_1");
this.icons[2] = reg.registerIcon(GTPlusPlus.ID + ":" + "dehydrator/itemDehydratorCoil_2");
this.icons[3] = reg.registerIcon(GTPlusPlus.ID + ":" + "dehydrator/itemDehydratorCoil_3");
this.icons[0] = reg.registerIcon(GTPlusPlus.ID + ":itemDehydratorCoil_0");
this.icons[1] = reg.registerIcon(GTPlusPlus.ID + ":itemDehydratorCoil_1");
this.icons[2] = reg.registerIcon(GTPlusPlus.ID + ":itemDehydratorCoil_2");
this.icons[3] = reg.registerIcon(GTPlusPlus.ID + ":itemDehydratorCoil_3");
}

@Override
Expand Down
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 All @@ -58,13 +58,4 @@ public String getItemStackDisplayName(final ItemStack tItem) {
return StatCollector
.translateToLocalFormatted("item.itemDehydratorCoilWire.name", GTValues.VN[tItem.getItemDamage() + 4]);
}

/*
* @Override 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,150,50); } return
* HEX_OxFFFFFF; }
*/

}
2 changes: 0 additions & 2 deletions src/main/java/gtPlusPlus/core/material/MaterialsElements.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

public final class MaterialsElements {

public static final String[] NAMES = new String[] { "Hydrogen", "Helium" };
BlueHero233 marked this conversation as resolved.
Show resolved Hide resolved

// First 50 Elements
public final Material HYDROGEN = MaterialUtils.generateMaterialFromGtENUM(Materials.Hydrogen);
public final Material HELIUM = MaterialUtils.generateMaterialFromGtENUM(Materials.Helium);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gtPlusPlus/core/material/Particle.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public class Particle {
UNKNOWN = new Particle(ElementaryGroup.UNKNOWN, "Unknown");
}

public static enum ElementaryGroup {
public enum ElementaryGroup {
BlueHero233 marked this conversation as resolved.
Show resolved Hide resolved
QUARK,
LEPTON,
BOSON,
Expand Down
Loading