mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
expectation management
wowwe, the wastes were getting a bit too spaghetti for my liking
This commit is contained in:
parent
0af3e1eac6
commit
54a2855efa
@ -1,34 +0,0 @@
|
|||||||
package com.hbm.items.machine;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import com.hbm.items.ItemEnumMulti;
|
|
||||||
import com.hbm.items.machine.ItemZirnoxRod.EnumZirnoxType;
|
|
||||||
import com.hbm.util.EnumUtil;
|
|
||||||
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
|
||||||
import net.minecraft.item.Item;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
|
|
||||||
public class ItemDepletedWaste extends ItemEnumMulti {
|
|
||||||
|
|
||||||
public ItemDepletedWaste(Class<? extends Enum> theEnum, boolean multiName, boolean multiTexture) {
|
|
||||||
super(theEnum, multiName, multiTexture);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public void getSubItems(Item item, CreativeTabs tab, List list) {
|
|
||||||
for(int i = 0; i < theEnum.getEnumConstants().length; i++) {
|
|
||||||
if(theEnum == ItemZirnoxRod.EnumZirnoxType.class) { //i could make an interface or a base enum, but it's only used for 'nox rods anyway
|
|
||||||
EnumZirnoxType num = EnumUtil.grabEnumSafely(EnumZirnoxType.class, i);
|
|
||||||
if(!num.breeding) list.add(new ItemStack(item, 1, i)); //wastes' ordinals are always equal to their fuels' ordinals
|
|
||||||
} else
|
|
||||||
list.add(new ItemStack(item, 1, i));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//TODO: cooling stuff
|
|
||||||
}
|
|
||||||
@ -64,26 +64,18 @@ public class ItemZirnoxRod extends ItemEnumMulti {
|
|||||||
public static enum EnumZirnoxType {
|
public static enum EnumZirnoxType {
|
||||||
NATURAL_URANIUM_FUEL(250_000, 30),
|
NATURAL_URANIUM_FUEL(250_000, 30),
|
||||||
URANIUM_FUEL(200_000, 50),
|
URANIUM_FUEL(200_000, 50),
|
||||||
TH232(20_000, 0, true),
|
TH232(20_000, 0),
|
||||||
THORIUM_FUEL(200_000, 40),
|
THORIUM_FUEL(200_000, 40),
|
||||||
MOX_FUEL(165_000, 75),
|
MOX_FUEL(165_000, 75),
|
||||||
PLUTONIUM_FUEL(175_000, 65),
|
PLUTONIUM_FUEL(175_000, 65),
|
||||||
U233_FUEL(150_000, 100),
|
U233_FUEL(150_000, 100),
|
||||||
U235_FUEL(165_000, 85),
|
U235_FUEL(165_000, 85),
|
||||||
LES_FUEL(150_000, 150),
|
LES_FUEL(150_000, 150),
|
||||||
LITHIUM(20_000, 0, true),
|
LITHIUM(20_000, 0),
|
||||||
ZFB_MOX(50_000, 35);
|
ZFB_MOX(50_000, 35);
|
||||||
|
|
||||||
public int maxLife;
|
public int maxLife;
|
||||||
public int heat;
|
public int heat;
|
||||||
/** Doesn't auto-generate a waste type, waste rods, etc. */
|
|
||||||
public boolean breeding = false;
|
|
||||||
|
|
||||||
private EnumZirnoxType(int life, int heat, boolean breeding) {
|
|
||||||
this.maxLife = life;
|
|
||||||
this.heat = heat;
|
|
||||||
this.breeding = breeding;
|
|
||||||
}
|
|
||||||
|
|
||||||
private EnumZirnoxType(int life, int heat) {
|
private EnumZirnoxType(int life, int heat) {
|
||||||
this.maxLife = life;
|
this.maxLife = life;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user