mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
fixed hardcoding
This commit is contained in:
parent
04b23c3ef9
commit
58d2a64165
@ -14,26 +14,28 @@ import net.minecraft.item.ItemStack;
|
|||||||
public class GasCentrifugeRecipes {
|
public class GasCentrifugeRecipes {
|
||||||
|
|
||||||
public static enum PseudoFluidType {
|
public static enum PseudoFluidType {
|
||||||
NONE (0, 0, "NONE", "Empty", new ItemStack(ModItems.polaroid, 0)),
|
NONE (0, 0, "NONE", "Empty", false, new ItemStack(ModItems.polaroid, 0)),
|
||||||
|
|
||||||
NUF6 (400, 300, "LEUF6", "Natural UF6", new ItemStack(ModItems.nugget_u238, 1)),
|
NUF6 (400, 300, "LEUF6", "Natural UF6", false, new ItemStack(ModItems.nugget_u238, 1)),
|
||||||
LEUF6 (300, 200, "MEUF6", "Low Enriched UF6", new ItemStack(ModItems.nugget_u238, 1), new ItemStack(ModItems.fluorite, 1)),
|
LEUF6 (300, 200, "MEUF6", "Low Enriched UF6", false, new ItemStack(ModItems.nugget_u238, 1), new ItemStack(ModItems.fluorite, 1)),
|
||||||
MEUF6 (200, 100, "HEUF6", "Medium Enriched UF6", new ItemStack(ModItems.nugget_u238, 1)),
|
MEUF6 (200, 100, "HEUF6", "Medium Enriched UF6", false, new ItemStack(ModItems.nugget_u238, 1)),
|
||||||
HEUF6 (300, 0, "NONE", "High Enriched UF6", new ItemStack(ModItems.nugget_u238, 2), new ItemStack(ModItems.nugget_u235, 1), new ItemStack(ModItems.fluorite, 1)),
|
HEUF6 (300, 0, "NONE", "High Enriched UF6", true, new ItemStack(ModItems.nugget_u238, 2), new ItemStack(ModItems.nugget_u235, 1), new ItemStack(ModItems.fluorite, 1)),
|
||||||
|
|
||||||
PF6 (300, 0, "NONE", "Plutonium Hexafluoride", new ItemStack(ModItems.nugget_pu238, 1), new ItemStack(ModItems.nugget_pu_mix, 2), new ItemStack(ModItems.fluorite, 1));
|
PF6 (300, 0, "NONE", "Plutonium Hexafluoride", false, new ItemStack(ModItems.nugget_pu238, 1), new ItemStack(ModItems.nugget_pu_mix, 2), new ItemStack(ModItems.fluorite, 1));
|
||||||
|
|
||||||
int fluidConsumed;
|
int fluidConsumed;
|
||||||
int fluidProduced;
|
int fluidProduced;
|
||||||
String outputFluid;
|
String outputFluid;
|
||||||
String name;
|
String name;
|
||||||
|
boolean isHighSpeed;
|
||||||
ItemStack[] output;
|
ItemStack[] output;
|
||||||
|
|
||||||
PseudoFluidType(int fluidConsumed, int fluidProduced, String outputFluid, String name, ItemStack... output) {
|
PseudoFluidType(int fluidConsumed, int fluidProduced, String outputFluid, String name, boolean isHighSpeed, ItemStack... output) {
|
||||||
this.fluidConsumed = fluidConsumed;
|
this.fluidConsumed = fluidConsumed;
|
||||||
this.fluidProduced = fluidProduced;
|
this.fluidProduced = fluidProduced;
|
||||||
this.outputFluid = outputFluid;
|
this.outputFluid = outputFluid;
|
||||||
this.name = name;
|
this.name = name;
|
||||||
|
this.isHighSpeed = isHighSpeed;
|
||||||
this.output = output;
|
this.output = output;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -53,6 +55,10 @@ public class GasCentrifugeRecipes {
|
|||||||
return this.name;
|
return this.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean getIfHighSpeed() {
|
||||||
|
return this.isHighSpeed;
|
||||||
|
}
|
||||||
|
|
||||||
public ItemStack[] getOutput() {
|
public ItemStack[] getOutput() {
|
||||||
return this.output;
|
return this.output;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -145,7 +145,7 @@ public class TileEntityMachineGasCent extends TileEntityMachineBase implements I
|
|||||||
|
|
||||||
ItemStack[] list = inputTank.getTankType().getOutput();
|
ItemStack[] list = inputTank.getTankType().getOutput();
|
||||||
|
|
||||||
if(this.inputTank.getTankType() == PseudoFluidType.HEUF6)
|
if(this.inputTank.getTankType().getIfHighSpeed())
|
||||||
if(!(slots[5] != null && slots[5].getItem() == ModItems.upgrade_gc_speed))
|
if(!(slots[5] != null && slots[5].getItem() == ModItems.upgrade_gc_speed))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user