mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-19 03:49:07 +00:00
Update buildscript & spotlessApply
This commit is contained in:
1 parent
e4329e2b8f
commit
8683a345c3
818 files changed
+51123
-49403
No files matched your search
@@ -3,65 +3,64 @@ package binnie.genetics.item;
|
||||
import binnie.core.item.IItemMisc;
|
||||
import binnie.core.util.I18N;
|
||||
import binnie.genetics.Genetics;
|
||||
import java.util.List;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public enum GeneticsItems implements IItemMisc {
|
||||
LaboratoryCasing("casingIron"),
|
||||
DNADye("dnaDye"),
|
||||
FluorescentDye("dyeFluor"),
|
||||
Enzyme("enzyme"),
|
||||
GrowthMedium("growthMedium"),
|
||||
EmptySequencer("sequencerEmpty"),
|
||||
EmptySerum("serumEmpty"),
|
||||
EmptyGenome("genomeEmpty"),
|
||||
Cylinder("cylinderEmpty"),
|
||||
IntegratedCircuit("integratedCircuit"),
|
||||
IntegratedCPU("integratedCPU"),
|
||||
IntegratedCasing("casingCircuit");
|
||||
LaboratoryCasing("casingIron"),
|
||||
DNADye("dnaDye"),
|
||||
FluorescentDye("dyeFluor"),
|
||||
Enzyme("enzyme"),
|
||||
GrowthMedium("growthMedium"),
|
||||
EmptySequencer("sequencerEmpty"),
|
||||
EmptySerum("serumEmpty"),
|
||||
EmptyGenome("genomeEmpty"),
|
||||
Cylinder("cylinderEmpty"),
|
||||
IntegratedCircuit("integratedCircuit"),
|
||||
IntegratedCPU("integratedCPU"),
|
||||
IntegratedCasing("casingCircuit");
|
||||
|
||||
protected IIcon icon;
|
||||
protected String name;
|
||||
protected String iconPath;
|
||||
protected IIcon icon;
|
||||
protected String name;
|
||||
protected String iconPath;
|
||||
|
||||
GeneticsItems(String name) {
|
||||
this.name = name;
|
||||
this.iconPath = name;
|
||||
}
|
||||
GeneticsItems(String name) {
|
||||
this.name = name;
|
||||
this.iconPath = name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIcon(ItemStack itemStack) {
|
||||
return icon;
|
||||
}
|
||||
@Override
|
||||
public IIcon getIcon(ItemStack itemStack) {
|
||||
return icon;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerIcons(IIconRegister register) {
|
||||
icon = Genetics.proxy.getIcon(register, iconPath);
|
||||
}
|
||||
@Override
|
||||
public void registerIcons(IIconRegister register) {
|
||||
icon = Genetics.proxy.getIcon(register, iconPath);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(List data) {
|
||||
// ignored
|
||||
}
|
||||
@Override
|
||||
public void addInformation(List data) {
|
||||
// ignored
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName(ItemStack itemStack) {
|
||||
return I18N.localise("genetics.item." + name + ".name");
|
||||
}
|
||||
@Override
|
||||
public String getName(ItemStack itemStack) {
|
||||
return I18N.localise("genetics.item." + name + ".name");
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack get(int count) {
|
||||
if (Genetics.itemGenetics == null) {
|
||||
return null;
|
||||
}
|
||||
return new ItemStack(Genetics.itemGenetics, count, ordinal());
|
||||
}
|
||||
@Override
|
||||
public ItemStack get(int count) {
|
||||
if (Genetics.itemGenetics == null) {
|
||||
return null;
|
||||
}
|
||||
return new ItemStack(Genetics.itemGenetics, count, ordinal());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isActive() {
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
public boolean isActive() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user