Skip to content

Commit

Permalink
delete AlgaeGrowthRequirement, it's an empty class
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexdoru committed Sep 25, 2024
1 parent bef39ba commit 232fee9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

public class ItemAgrichemBase extends Item {

protected final IIcon base[];
protected final IIcon[] base;

/*
* 0 - Algae Biomass 1 - Green Algae Biomass 2 - Brown Algae Biomass 3 - Golden-Brown Algae Biomass 4 - Red Algae
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import static gregtech.api.enums.Mods.GTPlusPlus;

import java.util.ArrayList;
import java.util.List;

import net.minecraft.client.renderer.texture.IIconRegister;
Expand Down Expand Up @@ -188,11 +187,9 @@ public AlgaeGeneticData getSpeciesData(ItemStack aStack) {
NBTTagCompound aTag;
if (!aStack.hasTagCompound() || aStack.getTagCompound()
.hasNoTags()) {
aTag = new NBTTagCompound();
AlgaeGeneticData aGenes;
if (aStack.getItemDamage() < 3 || aStack.getItemDamage() > 5) {
aGenes = new AlgaeGeneticData();
aTag = aGenes.writeToNBT();
} else {
byte aTemp, aLifespan;
float aFert, aSpeed;
Expand All @@ -212,10 +209,9 @@ public AlgaeGeneticData getSpeciesData(ItemStack aStack) {
aFert,
aSpeed,
aLifespan,
0,
new ArrayList<>());
aTag = aGenes.writeToNBT();
0);
}
aTag = aGenes.writeToNBT();
} else {
aTag = aStack.getTagCompound();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package gtPlusPlus.plugin.agrichem.logic;

import java.util.ArrayList;

import net.minecraft.nbt.NBTTagCompound;

public class AlgaeGeneticData {
Expand All @@ -24,15 +22,12 @@ public class AlgaeGeneticData {

private final float mProductionSpeed;

private final ArrayList<AlgaeGrowthRequirement> mSpecialRequirements;

public AlgaeGeneticData() {
this(true, true, true, true, (byte) 0, 1f, 1f, (byte) 30, 0, new ArrayList<>());
this(true, true, true, true, (byte) 0, 1f, 1f, (byte) 30, 0);
}

public AlgaeGeneticData(boolean isDominant, boolean requiresLight, boolean isSalt, boolean isFresh,
byte aTempTolerance, float aFertility, float aSpeed, byte aLifespan, int aGeneration,
ArrayList<AlgaeGrowthRequirement> aRequirements) {
byte aTempTolerance, float aFertility, float aSpeed, byte aLifespan, int aGeneration) {
mIsDominant = isDominant;
mRequiresLight = requiresLight;
mSaltWater = isSalt;
Expand All @@ -42,7 +37,6 @@ public AlgaeGeneticData(boolean isDominant, boolean requiresLight, boolean isSal
mProductionSpeed = aSpeed;
mLifespan = aLifespan;
mGeneration = aGeneration;
mSpecialRequirements = aRequirements;
}

public AlgaeGeneticData(NBTTagCompound aNBT) {
Expand All @@ -67,7 +61,6 @@ public AlgaeGeneticData(NBTTagCompound aNBT) {
mLifespan = aNBT.getByte("mLifespan");
mGeneration = aNBT.getInteger("mGeneration");
}
mSpecialRequirements = new ArrayList<>();
}

/**
Expand Down Expand Up @@ -109,10 +102,6 @@ public final int getGeneration() {
return this.mGeneration;
}

public final ArrayList<AlgaeGrowthRequirement> getSpecialRequirements() {
return this.mSpecialRequirements;
}

public NBTTagCompound writeToNBT() {
NBTTagCompound aGenes = new NBTTagCompound();
aGenes.setBoolean("mIsDominant", this.mIsDominant);
Expand Down

This file was deleted.

0 comments on commit 232fee9

Please sign in to comment.