Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
addition of blacklisting alloy and nether molten fluids in mystcraft …
…ages via IMC NBT formatted messages
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package tconstruct.compat.mystcraft; | ||
|
||
import net.minecraftforge.fluids.FluidStack; | ||
import cpw.mods.fml.common.event.FMLInterModComms; | ||
import net.minecraft.nbt.NBTTagCompound; | ||
import tconstruct.common.TContent; | ||
public class MystImcHandler { | ||
public static String[] FluidBlackList = new String[]{"moltenInvar", "moltenElectrum", "moltenBronze","moltenAluminumBrass","moltenManyullyn","MoltenAlumite", "moltenCobalt","moltenArdite"};// = new String[](); | ||
|
||
public static void blacklistFluids(){ | ||
for(String nm: FluidBlackList){ | ||
// check if exists?? | ||
SendFluidIMCBLMsg(nm); | ||
} | ||
} | ||
public static void SendFluidIMCBLMsg(String FluidName){ | ||
NBTTagCompound NBTMsg = new NBTTagCompound(); | ||
NBTMsg.setCompoundTag("fluidsymbol",new NBTTagCompound()); | ||
NBTMsg.getCompoundTag("fluidsymbol").setFloat("rarity", 0.0F); | ||
NBTMsg.getCompoundTag("fluidsymbol").setFloat("grammarweight", 0.0F); | ||
NBTMsg.getCompoundTag("fluidsymbol").setFloat("instabilityPerBlock ", 10000F);// renders creative symbol useless | ||
NBTMsg.getCompoundTag("fluidsymbol").setString("fluidname", FluidName); | ||
FMLInterModComms.sendMessage("Mystcraft", "fluidsymbol", NBTMsg); | ||
} | ||
|
||
} |