mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-24 22:14:31 +00:00
Allow overriding AluminumBrass as the metal pattern material
This commit is contained in:
1 parent
eded799e61
commit
6e342b2c70
2 files changed
+18
-3
No files matched your search
@@ -188,6 +188,7 @@ public class TinkerSmeltery {
|
||||
public static Block speedBlock;
|
||||
public static Fluid bloodFluid;
|
||||
public static Block blood;
|
||||
private static FluidType metalPatternFluidType;
|
||||
|
||||
@Handler
|
||||
public void preInit(FMLPreInitializationEvent event) {
|
||||
@@ -608,6 +609,7 @@ public class TinkerSmeltery {
|
||||
@Handler
|
||||
public void init(FMLInitializationEvent event) {
|
||||
proxy.initialize();
|
||||
loadMetalPatternMaterial();
|
||||
craftingTableRecipes();
|
||||
addRecipesForSmeltery();
|
||||
addRecipesForTableCasting();
|
||||
@@ -621,6 +623,10 @@ public class TinkerSmeltery {
|
||||
modIntegration();
|
||||
}
|
||||
|
||||
private static void loadMetalPatternMaterial() {
|
||||
metalPatternFluidType = FluidType.getFluidType(PHConstruct.metalCastFluidTypeName);
|
||||
}
|
||||
|
||||
private void craftingTableRecipes() {
|
||||
|
||||
String[] patSurround = { "###", "#m#", "###" };
|
||||
@@ -1000,7 +1006,7 @@ public class TinkerSmeltery {
|
||||
// Blank
|
||||
tableCasting.addCastingRecipe(
|
||||
new ItemStack(TinkerTools.blankPattern, 1, 1),
|
||||
new FluidStack(TinkerSmeltery.moltenAlubrassFluid, TConstruct.ingotLiquidValue),
|
||||
new FluidStack(metalPatternFluidType.fluid, TConstruct.ingotLiquidValue),
|
||||
80);
|
||||
if (!PHConstruct.removeGoldCastRecipes) {
|
||||
tableCasting.addCastingRecipe(
|
||||
@@ -1358,7 +1364,7 @@ public class TinkerSmeltery {
|
||||
int delay) {
|
||||
tableCasting.addCastingRecipe(
|
||||
pattern,
|
||||
new FluidStack(TinkerSmeltery.moltenAlubrassFluid, TConstruct.ingotLiquidValue),
|
||||
new FluidStack(metalPatternFluidType.fluid, TConstruct.ingotLiquidValue),
|
||||
shape,
|
||||
delay);
|
||||
if (!PHConstruct.removeGoldCastRecipes) {
|
||||
@@ -1649,7 +1655,7 @@ public class TinkerSmeltery {
|
||||
|
||||
// Items
|
||||
Smeltery.addMelting(
|
||||
FluidType.getFluidType("AluminumBrass"),
|
||||
metalPatternFluidType,
|
||||
new ItemStack(TinkerTools.blankPattern, 4, 1),
|
||||
-50,
|
||||
TConstruct.ingotLiquidValue);
|
||||
|
||||
@@ -315,6 +315,12 @@ public class PHConstruct {
|
||||
new String[] { "wanion.avaritiaddons.block.chest.infinity.TileEntityInfinityChest" })
|
||||
.getStringList());
|
||||
|
||||
metalCastFluidTypeName = config.get(
|
||||
"CrossmodInteractions",
|
||||
"Metal cast FluidType",
|
||||
"AluminumBrass",
|
||||
"For pack maintainers. Defines the LiquidType used to create metal casts.").getString();
|
||||
|
||||
/* Save the configuration file only if it has changed */
|
||||
if (config.hasChanged()) config.save();
|
||||
|
||||
@@ -508,4 +514,7 @@ public class PHConstruct {
|
||||
public static boolean extraBlockUpdates;
|
||||
public static String[] heartDropBlacklist;
|
||||
public static Set<String> craftingStationBlacklist;
|
||||
|
||||
// Crossmod interactions
|
||||
public static String metalCastFluidTypeName;
|
||||
}
|
||||
Reference in new issue
Block a user