This file contains hidden or 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 initConfig(Configuration config){ | |
config.getCategory("crafting"); | |
electricFloodlight = config.getBoolean("electricFloodlightEnabled", "crafting", true, "Enables the electric FloodLight"); | |
config.getCategory("general"); | |
energyUsage = config.getInt("energyUsage","general", 5,0,1000,"Energy Usage in RF/t for the electric FloodLight"); | |
refreshRate = config.getInt("refreshRate","general", 3,0,100,"How many Phantom lights should be updated per tick (Higher is faster, but lags more)"); | |
} |
This file contains hidden or 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 de.keridos.floodlights.tileentity; | |
import cofh.api.energy.EnergyStorage; | |
import cofh.api.energy.IEnergyHandler; | |
import de.keridos.floodlights.handler.ConfigHandler; | |
import de.keridos.floodlights.handler.LightHandler; | |
import de.keridos.floodlights.reference.Names; | |
import net.minecraft.nbt.NBTTagCompound; | |
import net.minecraft.world.World; | |
import net.minecraftforge.common.util.ForgeDirection; |
This file contains hidden or 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 de.keridos.floodlights.tileentity; | |
import cofh.api.energy.EnergyStorage; | |
import cofh.api.energy.IEnergyHandler; | |
import de.keridos.floodlights.handler.ConfigHandler; | |
import de.keridos.floodlights.handler.LightHandler; | |
import de.keridos.floodlights.reference.Names; | |
import net.minecraft.nbt.NBTTagCompound; | |
import net.minecraft.world.World; | |
import net.minecraftforge.common.util.ForgeDirection; |
This file contains hidden or 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
@SideOnly(Side.CLIENT) | |
public class CustomBlockRenderer implements ISimpleBlockRenderingHandler{ | |
@Override | |
public void renderInventoryBlock(Block block, int metadata, int modelID, | |
RenderBlocks renderer) { | |
Tessellator t = Tessellator.instance; | |
t.startDrawingQuads(); | |
t.setNormal(-1, 0, 0); | |
renderer.renderFaceXNeg(block, 0, 0, 0, renderer.getBlockIconFromSideAndMetadata(block, ForgeDirection.WEST.ordinal(), 1)); |
This file contains hidden or 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 de.keridos.floodlights.client.gui; | |
import de.keridos.floodlights.client.gui.container.ContainerCarbonFloodlight; | |
import de.keridos.floodlights.reference.Textures; | |
import de.keridos.floodlights.tileentity.TileEntityCarbonFloodlight; | |
import net.minecraft.client.gui.inventory.GuiContainer; | |
import net.minecraft.entity.player.InventoryPlayer; | |
import net.minecraft.util.ResourceLocation; | |
import org.lwjgl.opengl.GL11; |
This file contains hidden or 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
INFO MultiMC 5, (c) 2013 MultiMC Contributors | |
INFO Version : "0.5" | |
INFO Git commit : "214fa57d7c775dc22ef44dd8f87cbb01ba9b1310" | |
INFO Work dir before adjustment : "E:/Programme/Minecraft/MultiMC5" | |
INFO Work dir after adjustment : "E:/Programme/Minecraft/MultiMC5" | |
INFO Adjusted by : "Command line E:/Programme/Minecraft/MultiMC5" | |
INFO Binary path : "E:/Programme/Minecraft/MultiMC5" | |
INFO Application root path : "E:/Programme/Minecraft/MultiMC5" | |
INFO Static data path : "E:/Programme/Minecraft/MultiMC5" | |
INFO New FTB setup |
This file contains hidden or 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
buildscript { | |
repositories { | |
mavenCentral() | |
maven { | |
name = "forge" | |
url = "http://files.minecraftforge.net/maven" | |
} | |
maven { | |
name = "sonatype" | |
url = "https://oss.sonatype.org/content/repositories/snapshots/" |
This file contains hidden or 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 boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float p_149727_7_, float p_149727_8_, float p_149727_9_) { | |
if (player.getHeldItem() == null && !world.isRemote && player.isSneaking()) { | |
((TileEntityElectricFloodlight) world.getTileEntity(x, y, z)).toggleInverted(); | |
boolean b = ((TileEntityElectricFloodlight) world.getTileEntity(x, y, z)).getInverted(); | |
player.addChatMessage(new ChatComponentText("Light now: " + (b ? "inverted" : "not inverted"))); | |
} else if (player.getHeldItem() != null && !world.isRemote && player.isSneaking()) { | |
Logger.getGlobal().info("poke, found item") ; | |
if (player.getHeldItem().getItem() == getMinecraftItem("stick")) { | |
((TileEntityElectricFloodlight) world.getTileEntity(x, y, z)).changeMode(player); | |
} |
This file contains hidden or 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 wideConeSource(int sourceX, int sourceY, int sourceZ, ForgeDirection direction, boolean remove) { | |
for (int i = 1; i <= configHandler.rangeConeFloodlight / 2; i++) { | |
for (int j = 1; j <= 8; j++) { | |
int a = i; | |
int b = 0; | |
int c = 0; | |
switch (j) { | |
case 0: | |
b += i; | |
case 1: |
This file contains hidden or 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
"FloodLights": { | |
"function": "CheckCurse", | |
"active": true, | |
"curse": { | |
"id": "224728", | |
"name": "floodlights", | |
"regex": "FloodLights-(?P<mc>.+?)-(?P<version>.+).jar" | |
} | |
} |
OlderNewer