From d9ccca74d016cb824ab8dc214f85a73493b7bc9f Mon Sep 17 00:00:00 2001 From: Robert Seifert Date: Thu, 9 May 2013 03:38:23 -0400 Subject: [PATCH] removed beam and tracer methods each mod should create its own methods for this in its proxies --- src/minecraft/dark/library/DarkMain.java | 35 ------------------- .../library/terminal/TileEntityTerminal.java | 2 -- 2 files changed, 37 deletions(-) diff --git a/src/minecraft/dark/library/DarkMain.java b/src/minecraft/dark/library/DarkMain.java index 87e6356ab..1bef184fb 100644 --- a/src/minecraft/dark/library/DarkMain.java +++ b/src/minecraft/dark/library/DarkMain.java @@ -1,16 +1,11 @@ package dark.library; -import java.awt.Color; import java.io.File; import java.util.logging.Logger; -import net.minecraft.world.World; import net.minecraftforge.common.Configuration; -import universalelectricity.core.vector.Vector3; import basiccomponents.common.BasicComponents; -import cpw.mods.fml.client.FMLClientHandler; import cpw.mods.fml.common.Loader; -import dark.library.effects.FXBeam; public class DarkMain { @@ -29,36 +24,6 @@ public class DarkMain public static final Logger LOGGER = Logger.getLogger("Dark-Lib"); - - - /** - * Renders a laser beam from one power to another by a set color for a set time - * - * @param world - world this laser is to be rendered in - * @param position - start vector3 - * @param target - end vector3 - * @param color - color of the beam - * @param age - life of the beam in 1/20 secs - */ - public static void renderBeam(World world, Vector3 position, Vector3 target, Color color, int age) - { - if (world.isRemote) - { - FMLClientHandler.instance().getClient().effectRenderer.addEffect(new FXBeam(world, position, target, color, DarkMain.TEXTURE_DIRECTORY + "", age)); - } - } - - /** - * Renders a bullet tracer from one spot to another will later be replaced with start and degree - */ - public static void renderTracer(World world, Vector3 position, Vector3 target) - { - if (world.isRemote) - { - FMLClientHandler.instance().getClient().effectRenderer.addEffect(new FXBeam(world, position, target, Color.DARK_GRAY, DarkMain.TEXTURE_DIRECTORY + "traceStream.png", 5, true)); - } - } - /** * Loads most of the items from basic components to be used */ diff --git a/src/minecraft/dark/library/terminal/TileEntityTerminal.java b/src/minecraft/dark/library/terminal/TileEntityTerminal.java index 70da513c0..92bb210b6 100644 --- a/src/minecraft/dark/library/terminal/TileEntityTerminal.java +++ b/src/minecraft/dark/library/terminal/TileEntityTerminal.java @@ -13,13 +13,11 @@ import net.minecraft.network.packet.Packet250CustomPayload; import universalelectricity.core.vector.Vector3; import universalelectricity.prefab.network.IPacketReceiver; import universalelectricity.prefab.network.PacketManager; -import calclavia.lib.TileEntityUniversalRunnable; import com.google.common.io.ByteArrayDataInput; import cpw.mods.fml.common.FMLLog; import cpw.mods.fml.common.network.PacketDispatcher; -import dark.library.PowerSystems; import dark.library.access.AccessLevel; import dark.library.access.UserAccess; import dark.library.access.interfaces.ISpecialAccess;