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
100kEUStore | |
10kCoolantStore | |
10kEUStore | |
10kkEUPack | |
10kkEUStore | |
180kCoolantStore | |
1kkEUStore | |
300kEUPack | |
30kCoolantStore | |
360kCoolantStore |
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
private void cureAllPotions(World world, EntityPlayer entityPlayer) { | |
List<PotionEffect> activePotions = new ArrayList(entityPlayer.getActivePotionEffects()); | |
for(PotionEffect potionEffect : activePotions) { | |
entityPlayer.removePotionEffect(potionEffect.getPotionID()); | |
} | |
} |
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
public static String getLocalString(String key) { | |
LanguageRegistry lr = LanguageRegistry.instance(); | |
String localString = lr.getStringLocalization(key); | |
if(localString.equals("")) { | |
localString = lr.getStringLocalization(key, "en_GB"); | |
} | |
return localString; | |
} |
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
public void updateArm(TileEntitySynthesis synthesis) { | |
float horizontalTimer; | |
float verticalTimer; | |
float newX; | |
float newY; | |
animationTimer += 0.1F; | |
//ARM UP | |
if(animationTimer > 0.0F && animationTimer <= 10.0F) { | |
verticalTimer = animationTimer; | |
newY = MinechemHelper.translateValue(verticalTimer, 0.0F, 10.0F, 13, 11); |
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
package ljdp.minechem.client; | |
import ljdp.minechem.common.ModMinechem; | |
import org.lwjgl.opengl.GL11; | |
import cpw.mods.fml.client.FMLClientHandler; | |
import net.minecraft.client.renderer.entity.RenderItem; | |
import net.minecraft.item.ItemStack; |
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
package ljdp.minechem.client; | |
import ljdp.minechem.common.ModMinechem; | |
import org.lwjgl.opengl.GL11; | |
import cpw.mods.fml.client.FMLClientHandler; | |
import net.minecraft.client.renderer.entity.RenderItem; | |
import net.minecraft.item.ItemStack; |
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
package ljdp.minechem.client; | |
import cpw.mods.fml.client.FMLClientHandler; | |
import cpw.mods.fml.client.registry.ClientRegistry; | |
import cpw.mods.fml.client.registry.RenderingRegistry; | |
import cpw.mods.fml.common.Side; | |
import cpw.mods.fml.common.registry.TickRegistry; | |
import net.minecraft.world.World; | |
import net.minecraftforge.client.ForgeHooksClient; | |
import net.minecraftforge.client.MinecraftForgeClient; |
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
package ljdp.minechem.client; | |
import org.lwjgl.opengl.GL11; | |
import ljdp.minechem.common.ModMinechem; | |
import ljdp.minechem.common.tileentity.TileEntityMicroscope; | |
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; | |
import net.minecraft.tileentity.TileEntity; | |
import net.minecraftforge.client.ForgeHooksClient; |
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
package ljdp.minechem.client; | |
import java.util.EnumSet; | |
import org.lwjgl.opengl.GL11; | |
import ljdp.minechem.common.MinechemBlocks; | |
import net.minecraft.client.Minecraft; | |
import net.minecraft.client.renderer.Tessellator; |
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
--------------------- | |
-- main.lua | |
--------------------- | |
local printerThread | |
local time | |
local function printTextFromPrinterThread() | |
local printText = printerThread:get('print') | |
if printText then |