Starting to separate core from content
At some point in the near future the core will need to act as a library more than a mod. Though it will still need to have its common items, and blocks. Such as parts, and ores. Machines like the battery box, wire, and generator will be moved to another mod.
This commit is contained in:
parent
3907ef6ebe
commit
3fd7b8e229
142 changed files with 301 additions and 354 deletions
|
@ -5,6 +5,7 @@ IF NOT "a%1"=="a" (set "com=%1")
|
||||||
|
|
||||||
cd ..\
|
cd ..\
|
||||||
git commit -am "%com%"
|
git commit -am "%com%"
|
||||||
|
git submodule foreach git pull origin master
|
||||||
git push origin master
|
git push origin master
|
||||||
cd ..\
|
cd ..\
|
||||||
cd Assembly-Line
|
cd Assembly-Line
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
package dark.api;
|
package dark.api;
|
||||||
|
|
||||||
import universalelectricity.core.electricity.ElectricityPack;
|
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import dark.api.energy.EnergyPack;
|
|
||||||
import dark.api.save.ISaveObj;
|
import dark.api.save.ISaveObj;
|
||||||
import dark.api.save.NBTFileHelper;
|
import dark.api.save.NBTFileHelper;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.api.fluid;
|
package dark.api;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package dark.api.access;
|
package dark.api.access;
|
||||||
|
|
||||||
import mffs.api.security.Permission;
|
|
||||||
|
|
||||||
/** Constants that represent nodes by which machines and entities used in combination with
|
/** Constants that represent nodes by which machines and entities used in combination with
|
||||||
* ISpecialAccess to limit users on what they can do. These nodes should be used in the same way by
|
* ISpecialAccess to limit users on what they can do. These nodes should be used in the same way by
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package dark.api.energy;
|
package dark.api.energy;
|
||||||
|
|
||||||
import dark.api.parts.ITileConnector;
|
import dark.api.tilenetwork.ITileConnector;
|
||||||
|
|
||||||
public interface IEnergyDevice extends ITileConnector
|
public interface IEnergyDevice extends ITileConnector
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package dark.api.energy;
|
package dark.api.energy;
|
||||||
|
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
import net.minecraftforge.common.ForgeDirection;
|
||||||
import dark.api.parts.ITileConnector;
|
import dark.api.tilenetwork.ITileConnector;
|
||||||
|
|
||||||
/** Think of this in the same way as an electrical device from UE. getforce methods are designed to
|
/** Think of this in the same way as an electrical device from UE. getforce methods are designed to
|
||||||
* get the idea amount of force that a side should be outputting at the time. Apply force is the
|
* get the idea amount of force that a side should be outputting at the time. Apply force is the
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package dark.api.energy;
|
package dark.api.energy;
|
||||||
|
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
import net.minecraftforge.common.ForgeDirection;
|
||||||
import dark.api.parts.ITileConnector;
|
import dark.api.tilenetwork.ITileConnector;
|
||||||
|
|
||||||
/** Used by TileEntities or Entities to show heat stored and cooling rate of the object
|
/** Used by TileEntities or Entities to show heat stored and cooling rate of the object
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package dark.api.energy;
|
package dark.api.energy;
|
||||||
|
|
||||||
import dark.api.parts.ITileConnector;
|
import dark.api.tilenetwork.ITileConnector;
|
||||||
|
|
||||||
/** A tileEntity that receives a pressure driven fluid. Suggested to use some of the class from
|
/** A tileEntity that receives a pressure driven fluid. Suggested to use some of the class from
|
||||||
* net.minecraftforge.liquids too make your machine work with other fluid mods that don't use
|
* net.minecraftforge.liquids too make your machine work with other fluid mods that don't use
|
||||||
|
|
|
@ -20,8 +20,8 @@ import net.minecraftforge.common.MinecraftForge;
|
||||||
import net.minecraftforge.event.Cancelable;
|
import net.minecraftforge.event.Cancelable;
|
||||||
import net.minecraftforge.event.Event;
|
import net.minecraftforge.event.Event;
|
||||||
import universalelectricity.core.vector.Vector3;
|
import universalelectricity.core.vector.Vector3;
|
||||||
import dark.core.common.items.EnumTool;
|
|
||||||
import dark.core.helpers.ItemWorldHelper;
|
import dark.core.helpers.ItemWorldHelper;
|
||||||
|
import dark.machines.common.items.EnumTool;
|
||||||
|
|
||||||
/** An event triggered by entities or tiles that create lasers
|
/** An event triggered by entities or tiles that create lasers
|
||||||
*
|
*
|
||||||
|
|
|
@ -16,11 +16,11 @@ import com.builtbroken.common.Pair;
|
||||||
|
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
import cpw.mods.fml.common.registry.GameRegistry;
|
||||||
import dark.api.ColorCode;
|
import dark.api.ColorCode;
|
||||||
import dark.core.common.CoreRecipeLoader;
|
|
||||||
import dark.core.common.items.EnumMaterial;
|
|
||||||
import dark.core.common.items.EnumOrePart;
|
|
||||||
import dark.core.common.items.ItemOreDirv;
|
|
||||||
import dark.core.helpers.AutoCraftingManager;
|
import dark.core.helpers.AutoCraftingManager;
|
||||||
|
import dark.machines.common.CoreRecipeLoader;
|
||||||
|
import dark.machines.common.items.EnumMaterial;
|
||||||
|
import dark.machines.common.items.EnumOrePart;
|
||||||
|
import dark.machines.common.items.ItemOreDirv;
|
||||||
|
|
||||||
/** Recipes for ore processor machines
|
/** Recipes for ore processor machines
|
||||||
*
|
*
|
||||||
|
|
|
@ -2,8 +2,6 @@ package dark.api.save;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
|
||||||
|
|
||||||
/** Used in combination with the save manager and other managers to say this object needs to be save
|
/** Used in combination with the save manager and other managers to say this object needs to be save
|
||||||
* since its not connected with the world
|
* since its not connected with the world
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
package dark.api.parts;
|
package dark.api.tilenetwork;
|
||||||
|
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import universalelectricity.core.vector.Vector3;
|
import universalelectricity.core.vector.Vector3;
|
||||||
|
|
||||||
|
/** Use by tiles to control the path of motion of an item threw a tile network such as items pipes
|
||||||
|
*
|
||||||
|
* @author DarkGuardsman */
|
||||||
public interface IMotionPath
|
public interface IMotionPath
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -13,7 +16,7 @@ public interface IMotionPath
|
||||||
* the tile as the controller doesn't know the range of control of the tile. Though it does
|
* the tile as the controller doesn't know the range of control of the tile. Though it does
|
||||||
* limit itself to blocks around the entity. So if your tile only effects entities above it
|
* limit itself to blocks around the entity. So if your tile only effects entities above it
|
||||||
* within its bound then make sure the tile is inside those bounds
|
* within its bound then make sure the tile is inside those bounds
|
||||||
*
|
*
|
||||||
* @param entity - entity in question
|
* @param entity - entity in question
|
||||||
* @param from - direction the entity came from
|
* @param from - direction the entity came from
|
||||||
* @return true if it can, false if something is wrong like no power, or solid side */
|
* @return true if it can, false if something is wrong like no power, or solid side */
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.api.parts;
|
package dark.api.tilenetwork;
|
||||||
|
|
||||||
/** Used on tiles that can contain more than one tile network. Currently WIP so don't use unless you
|
/** Used on tiles that can contain more than one tile network. Currently WIP so don't use unless you
|
||||||
* know what your doing. When using this use networks like items and store them in slots.
|
* know what your doing. When using this use networks like items and store them in slots.
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.api.parts;
|
package dark.api.tilenetwork;
|
||||||
|
|
||||||
import universalelectricity.core.block.IElectricalStorage;
|
import universalelectricity.core.block.IElectricalStorage;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.api.parts;
|
package dark.api.tilenetwork;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.api.parts;
|
package dark.api.tilenetwork;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.api.parts;
|
package dark.api.tilenetwork;
|
||||||
|
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
import net.minecraftforge.common.ForgeDirection;
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
package dark.api.parts;
|
package dark.api.tilenetwork;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
|
|
||||||
/** Applied to network entities that don't exist in the world but manage its tiles
|
/** Applies to objects that act as a collection of tile entities.
|
||||||
*
|
*
|
||||||
* @author DarkGuardsman */
|
* @author DarkGuardsman */
|
||||||
public interface ITileNetwork
|
public interface ITileNetwork
|
||||||
{
|
{
|
||||||
|
@ -16,7 +16,7 @@ public interface ITileNetwork
|
||||||
public Set<INetworkPart> getMembers();
|
public Set<INetworkPart> getMembers();
|
||||||
|
|
||||||
/** Called when something want the network to add the tile
|
/** Called when something want the network to add the tile
|
||||||
*
|
*
|
||||||
* @param entity - tile in question
|
* @param entity - tile in question
|
||||||
* @param member - add it as a member if true
|
* @param member - add it as a member if true
|
||||||
* @return true if added without issue */
|
* @return true if added without issue */
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.registration;
|
package dark.core;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.registration;
|
package dark.core;
|
||||||
|
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.client.renderer.texture.IconRegister;
|
import net.minecraft.client.renderer.texture.IconRegister;
|
||||||
|
@ -8,8 +8,8 @@ import net.minecraftforge.fluids.BlockFluidFinite;
|
||||||
import net.minecraftforge.fluids.Fluid;
|
import net.minecraftforge.fluids.Fluid;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import dark.core.common.DarkMain;
|
|
||||||
import dark.core.prefab.ModPrefab;
|
import dark.core.prefab.ModPrefab;
|
||||||
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
public class BlockFluid extends BlockFluidFinite
|
public class BlockFluid extends BlockFluidFinite
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.registration;
|
package dark.core;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.registration;
|
package dark.core;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
|
@ -15,7 +15,7 @@ import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||||
import cpw.mods.fml.common.versioning.ArtifactVersion;
|
import cpw.mods.fml.common.versioning.ArtifactVersion;
|
||||||
import cpw.mods.fml.common.versioning.VersionParser;
|
import cpw.mods.fml.common.versioning.VersionParser;
|
||||||
import cpw.mods.fml.common.versioning.VersionRange;
|
import cpw.mods.fml.common.versioning.VersionRange;
|
||||||
import dark.core.common.DarkMain;
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
public class DarkCoreModContainer extends DummyModContainer
|
public class DarkCoreModContainer extends DummyModContainer
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.registration;
|
package dark.core;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
@ -21,11 +21,11 @@ import com.builtbroken.common.Pair;
|
||||||
import cpw.mods.fml.common.Loader;
|
import cpw.mods.fml.common.Loader;
|
||||||
import cpw.mods.fml.common.SidedProxy;
|
import cpw.mods.fml.common.SidedProxy;
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
import cpw.mods.fml.common.registry.GameRegistry;
|
||||||
import dark.core.common.DarkMain;
|
|
||||||
import dark.core.interfaces.IExtraInfo;
|
import dark.core.interfaces.IExtraInfo;
|
||||||
import dark.core.interfaces.IExtraInfo.IExtraBlockInfo;
|
import dark.core.interfaces.IExtraInfo.IExtraBlockInfo;
|
||||||
import dark.core.interfaces.IExtraInfo.IExtraItemInfo;
|
import dark.core.interfaces.IExtraInfo.IExtraItemInfo;
|
||||||
import dark.core.prefab.machine.BlockMachine;
|
import dark.core.prefab.machine.BlockMachine;
|
||||||
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
/** Handler to make registering all parts of a mod's objects that are loaded into the game by forge
|
/** Handler to make registering all parts of a mod's objects that are loaded into the game by forge
|
||||||
*
|
*
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.registration;
|
package dark.core;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.item.ItemBlock;
|
import net.minecraft.item.ItemBlock;
|
|
@ -12,7 +12,7 @@ import universalelectricity.core.vector.Vector3;
|
||||||
import com.google.common.io.ByteArrayDataInput;
|
import com.google.common.io.ByteArrayDataInput;
|
||||||
|
|
||||||
import cpw.mods.fml.common.network.Player;
|
import cpw.mods.fml.common.network.Player;
|
||||||
import dark.core.common.DarkMain;
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
public class PacketManagerEffects implements IPacketManager
|
public class PacketManagerEffects implements IPacketManager
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,7 @@ import com.google.common.io.ByteArrayDataInput;
|
||||||
|
|
||||||
import cpw.mods.fml.common.network.PacketDispatcher;
|
import cpw.mods.fml.common.network.PacketDispatcher;
|
||||||
import cpw.mods.fml.common.network.Player;
|
import cpw.mods.fml.common.network.Player;
|
||||||
import dark.core.common.DarkMain;
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
public class PacketManagerEntity implements IPacketManager
|
public class PacketManagerEntity implements IPacketManager
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,8 +11,8 @@ import com.google.common.io.ByteArrayDataInput;
|
||||||
|
|
||||||
import cpw.mods.fml.common.network.PacketDispatcher;
|
import cpw.mods.fml.common.network.PacketDispatcher;
|
||||||
import cpw.mods.fml.common.network.Player;
|
import cpw.mods.fml.common.network.Player;
|
||||||
import dark.core.common.DarkMain;
|
|
||||||
import dark.core.interfaces.IControlReceiver;
|
import dark.core.interfaces.IControlReceiver;
|
||||||
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
public class PacketManagerKeyEvent implements IPacketManager
|
public class PacketManagerKeyEvent implements IPacketManager
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,7 +11,7 @@ import net.minecraft.util.Icon;
|
||||||
import net.minecraft.world.IBlockAccess;
|
import net.minecraft.world.IBlockAccess;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import dark.core.common.DarkMain;
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
/** Prefab class to make any block have 16 separate color instances similar to wool block
|
/** Prefab class to make any block have 16 separate color instances similar to wool block
|
||||||
*
|
*
|
||||||
|
|
|
@ -6,7 +6,7 @@ import net.minecraft.util.Icon;
|
||||||
import net.minecraftforge.common.Configuration;
|
import net.minecraftforge.common.Configuration;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import dark.core.common.DarkMain;
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
public class ItemBasic extends Item
|
public class ItemBasic extends Item
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,11 +23,11 @@ import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||||
import cpw.mods.fml.common.registry.TickRegistry;
|
import cpw.mods.fml.common.registry.TickRegistry;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import dark.api.save.SaveManager;
|
import dark.api.save.SaveManager;
|
||||||
import dark.core.common.ExternalModHandler;
|
import dark.core.ModObjectRegistry;
|
||||||
import dark.core.common.PlayerKeyHandler;
|
|
||||||
import dark.core.prefab.fluids.FluidHelper;
|
import dark.core.prefab.fluids.FluidHelper;
|
||||||
import dark.core.prefab.tilenetwork.NetworkUpdateHandler;
|
import dark.core.prefab.tilenetwork.NetworkUpdateHandler;
|
||||||
import dark.core.registration.ModObjectRegistry;
|
import dark.machines.common.ExternalModHandler;
|
||||||
|
import dark.machines.common.PlayerKeyHandler;
|
||||||
|
|
||||||
public abstract class ModPrefab
|
public abstract class ModPrefab
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package dark.core.prefab.vehicles;
|
package dark.core.prefab.entities;
|
||||||
|
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import dark.core.common.CoreRecipeLoader;
|
import dark.machines.common.CoreRecipeLoader;
|
||||||
|
|
||||||
public class EntityTestCar extends EntityVehicle
|
public class EntityTestCar extends EntityVehicle
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.prefab.vehicles;
|
package dark.core.prefab.entities;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -16,12 +16,10 @@ import com.google.common.io.ByteArrayDataInput;
|
||||||
|
|
||||||
import cpw.mods.fml.client.FMLClientHandler;
|
import cpw.mods.fml.client.FMLClientHandler;
|
||||||
import cpw.mods.fml.common.network.Player;
|
import cpw.mods.fml.common.network.Player;
|
||||||
import dark.core.helpers.MathHelper;
|
|
||||||
import dark.core.interfaces.IControlReceiver;
|
import dark.core.interfaces.IControlReceiver;
|
||||||
import dark.core.network.ISimplePacketReceiver;
|
import dark.core.network.ISimplePacketReceiver;
|
||||||
import dark.core.network.PacketManagerEntity;
|
import dark.core.network.PacketManagerEntity;
|
||||||
import dark.core.network.PacketManagerKeyEvent;
|
import dark.core.network.PacketManagerKeyEvent;
|
||||||
import dark.core.prefab.entities.EntityAdvanced;
|
|
||||||
|
|
||||||
public abstract class EntityVehicle extends EntityAdvanced implements IControlReceiver, ISimplePacketReceiver
|
public abstract class EntityVehicle extends EntityAdvanced implements IControlReceiver, ISimplePacketReceiver
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.prefab.vehicles;
|
package dark.core.prefab.entities;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -12,10 +12,8 @@ import net.minecraft.util.EnumMovingObjectType;
|
||||||
import net.minecraft.util.MovingObjectPosition;
|
import net.minecraft.util.MovingObjectPosition;
|
||||||
import net.minecraft.util.Vec3;
|
import net.minecraft.util.Vec3;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import dark.core.common.DMCreativeTab;
|
|
||||||
import dark.core.common.DarkMain;
|
|
||||||
import dark.core.helpers.MathHelper;
|
|
||||||
import dark.core.prefab.ModPrefab;
|
import dark.core.prefab.ModPrefab;
|
||||||
|
import dark.machines.common.DMCreativeTab;
|
||||||
|
|
||||||
/** Basic item used to spawn a vehicle
|
/** Basic item used to spawn a vehicle
|
||||||
*
|
*
|
|
@ -10,7 +10,7 @@ import net.minecraft.util.ResourceLocation;
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
import universalelectricity.core.vector.Vector2;
|
import universalelectricity.core.vector.Vector2;
|
||||||
import dark.core.common.DarkMain;
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
/** When done should be a prefab that can be used to render a power bar on the screen
|
/** When done should be a prefab that can be used to render a power bar on the screen
|
||||||
*
|
*
|
||||||
|
|
|
@ -8,7 +8,7 @@ import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import dark.core.common.DarkMain;
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public class GuiButtonArrow extends GuiButton
|
public class GuiButtonArrow extends GuiButton
|
||||||
|
|
|
@ -9,7 +9,7 @@ import org.lwjgl.opengl.GL11;
|
||||||
import cpw.mods.fml.client.FMLClientHandler;
|
import cpw.mods.fml.client.FMLClientHandler;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import dark.core.common.DarkMain;
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public class GuiButtonImage extends GuiButton
|
public class GuiButtonImage extends GuiButton
|
||||||
|
|
|
@ -7,7 +7,7 @@ import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
import cpw.mods.fml.client.FMLClientHandler;
|
import cpw.mods.fml.client.FMLClientHandler;
|
||||||
import cpw.mods.fml.common.FMLCommonHandler;
|
import cpw.mods.fml.common.FMLCommonHandler;
|
||||||
import dark.core.common.DarkMain;
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
public class GuiMessageBox extends GuiBase
|
public class GuiMessageBox extends GuiBase
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,17 +24,17 @@ import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import dark.api.access.AccessUser;
|
import dark.api.access.AccessUser;
|
||||||
import dark.api.access.ISpecialAccess;
|
import dark.api.access.ISpecialAccess;
|
||||||
import dark.api.parts.INetworkPart;
|
import dark.api.tilenetwork.INetworkPart;
|
||||||
import dark.core.common.DarkMain;
|
import dark.core.ModObjectRegistry.BlockBuildData;
|
||||||
import dark.core.interfaces.IBlockActivated;
|
import dark.core.interfaces.IBlockActivated;
|
||||||
import dark.core.interfaces.IExtraInfo.IExtraBlockInfo;
|
import dark.core.interfaces.IExtraInfo.IExtraBlockInfo;
|
||||||
import dark.core.prefab.ModPrefab;
|
import dark.core.prefab.ModPrefab;
|
||||||
import dark.core.registration.ModObjectRegistry.BlockBuildData;
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
/** Basic TileEntity Container class designed to be used by generic machines. It is suggested that
|
/** Basic TileEntity Container class designed to be used by generic machines. It is suggested that
|
||||||
* each mod using this create there own basic block extending this to reduce need to use build data
|
* each mod using this create there own basic block extending this to reduce need to use build data
|
||||||
* per block.
|
* per block.
|
||||||
*
|
*
|
||||||
* @author Darkguardsman */
|
* @author Darkguardsman */
|
||||||
public abstract class BlockMachine extends BlockTile implements IExtraBlockInfo
|
public abstract class BlockMachine extends BlockTile implements IExtraBlockInfo
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,9 +21,9 @@ import com.builtbroken.common.Pair;
|
||||||
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import dark.core.common.DarkMain;
|
|
||||||
import dark.core.interfaces.IExtraInfo.IExtraBlockInfo;
|
import dark.core.interfaces.IExtraInfo.IExtraBlockInfo;
|
||||||
import dark.core.prefab.ModPrefab;
|
import dark.core.prefab.ModPrefab;
|
||||||
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
public class BlockMulti extends BlockContainer implements IExtraBlockInfo
|
public class BlockMulti extends BlockContainer implements IExtraBlockInfo
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
package dark.core.prefab.machine;
|
package dark.core.prefab.machine;
|
||||||
|
|
||||||
import universalelectricity.core.block.IElectricalStorage;
|
|
||||||
import universalelectricity.core.electricity.ElectricityPack;
|
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
import universalelectricity.core.block.IElectricalStorage;
|
||||||
|
import universalelectricity.core.electricity.ElectricityPack;
|
||||||
|
|
||||||
/** Basic energy bank class designed to remove most of the energy buffer code from a machine */
|
/** Basic energy bank class designed to remove most of the energy buffer code from a machine */
|
||||||
public class EnergyBank implements IElectricalStorage
|
public class EnergyBank implements IElectricalStorage
|
||||||
|
|
|
@ -16,12 +16,12 @@ import universalelectricity.core.grid.IElectricityNetwork;
|
||||||
import universalelectricity.core.vector.Vector3;
|
import universalelectricity.core.vector.Vector3;
|
||||||
import universalelectricity.core.vector.VectorHelper;
|
import universalelectricity.core.vector.VectorHelper;
|
||||||
import dark.api.energy.IPowerLess;
|
import dark.api.energy.IPowerLess;
|
||||||
import dark.core.common.ExternalModHandler;
|
import dark.machines.common.ExternalModHandler;
|
||||||
|
|
||||||
/** Basic energy tile that can consume power
|
/** Basic energy tile that can consume power
|
||||||
*
|
*
|
||||||
* Based off both UE universal electrical tile, and electrical tile prefabs
|
* Based off both UE universal electrical tile, and electrical tile prefabs
|
||||||
*
|
*
|
||||||
* @author DarkGuardsman */
|
* @author DarkGuardsman */
|
||||||
public abstract class TileEntityEnergyMachine extends TileEntityMachine implements IElectrical, IElectricalStorage, IPowerLess
|
public abstract class TileEntityEnergyMachine extends TileEntityMachine implements IElectrical, IElectricalStorage, IPowerLess
|
||||||
{
|
{
|
||||||
|
@ -262,7 +262,7 @@ public abstract class TileEntityEnergyMachine extends TileEntityMachine implemen
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The electrical input direction.
|
/** The electrical input direction.
|
||||||
*
|
*
|
||||||
* @return The direction that electricity is entered into the tile. Return null for no input. By
|
* @return The direction that electricity is entered into the tile. Return null for no input. By
|
||||||
* default you can accept power from all sides. */
|
* default you can accept power from all sides. */
|
||||||
public EnumSet<ForgeDirection> getInputDirections()
|
public EnumSet<ForgeDirection> getInputDirections()
|
||||||
|
@ -271,7 +271,7 @@ public abstract class TileEntityEnergyMachine extends TileEntityMachine implemen
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The electrical output direction.
|
/** The electrical output direction.
|
||||||
*
|
*
|
||||||
* @return The direction that electricity is output from the tile. Return null for no output. By
|
* @return The direction that electricity is output from the tile. Return null for no output. By
|
||||||
* default it will return an empty EnumSet. */
|
* default it will return an empty EnumSet. */
|
||||||
public EnumSet<ForgeDirection> getOutputDirections()
|
public EnumSet<ForgeDirection> getOutputDirections()
|
||||||
|
|
|
@ -14,16 +14,16 @@ import universalelectricity.core.vector.Vector3;
|
||||||
import universalelectricity.prefab.tile.TileEntityAdvanced;
|
import universalelectricity.prefab.tile.TileEntityAdvanced;
|
||||||
import dark.api.access.AccessGroup;
|
import dark.api.access.AccessGroup;
|
||||||
import dark.api.access.AccessUser;
|
import dark.api.access.AccessUser;
|
||||||
|
import dark.api.access.GroupRegistry;
|
||||||
import dark.api.access.ISpecialAccess;
|
import dark.api.access.ISpecialAccess;
|
||||||
import dark.api.access.Nodes;
|
import dark.api.access.Nodes;
|
||||||
import dark.api.access.GroupRegistry;
|
|
||||||
import dark.core.interfaces.IExternalInv;
|
import dark.core.interfaces.IExternalInv;
|
||||||
import dark.core.interfaces.IInvBox;
|
import dark.core.interfaces.IInvBox;
|
||||||
import dark.core.prefab.invgui.InvChest;
|
import dark.core.prefab.invgui.InvChest;
|
||||||
import dark.core.prefab.tilenetwork.NetworkTileEntities;
|
import dark.core.prefab.tilenetwork.NetworkTileEntities;
|
||||||
|
|
||||||
/** Prefab for simple object who only need basic inv support and nothing more
|
/** Prefab for simple object who only need basic inv support and nothing more
|
||||||
*
|
*
|
||||||
* @author Darkguardsman */
|
* @author Darkguardsman */
|
||||||
public class TileEntityInv extends TileEntityAdvanced implements IExternalInv, ISidedInventory, ISpecialAccess
|
public class TileEntityInv extends TileEntityAdvanced implements IExternalInv, ISidedInventory, ISpecialAccess
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,12 +17,12 @@ import com.google.common.io.ByteArrayDataInput;
|
||||||
import cpw.mods.fml.common.network.PacketDispatcher;
|
import cpw.mods.fml.common.network.PacketDispatcher;
|
||||||
import cpw.mods.fml.common.network.Player;
|
import cpw.mods.fml.common.network.Player;
|
||||||
import dark.api.IDisableable;
|
import dark.api.IDisableable;
|
||||||
import dark.core.common.DarkMain;
|
|
||||||
import dark.core.interfaces.IExternalInv;
|
import dark.core.interfaces.IExternalInv;
|
||||||
import dark.core.interfaces.IExtraInfo.IExtraTileEntityInfo;
|
|
||||||
import dark.core.interfaces.IInvBox;
|
import dark.core.interfaces.IInvBox;
|
||||||
|
import dark.core.interfaces.IExtraInfo.IExtraTileEntityInfo;
|
||||||
import dark.core.network.ISimplePacketReceiver;
|
import dark.core.network.ISimplePacketReceiver;
|
||||||
import dark.core.network.PacketHandler;
|
import dark.core.network.PacketHandler;
|
||||||
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
public abstract class TileEntityMachine extends TileEntityInv implements ISidedInventory, IExternalInv, IDisableable, ISimplePacketReceiver, IRotatable, IExtraTileEntityInfo
|
public abstract class TileEntityMachine extends TileEntityInv implements ISidedInventory, IExternalInv, IDisableable, ISimplePacketReceiver, IRotatable, IExtraTileEntityInfo
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@ import dark.core.interfaces.IMultiBlock;
|
||||||
import dark.core.network.PacketHandler;
|
import dark.core.network.PacketHandler;
|
||||||
|
|
||||||
/** This is a multiblock to be used for blocks that are bigger than one block.
|
/** This is a multiblock to be used for blocks that are bigger than one block.
|
||||||
*
|
*
|
||||||
* @author Calclavia */
|
* @author Calclavia */
|
||||||
public class TileEntityMulti extends TileEntity implements IPacketReceiver
|
public class TileEntityMulti extends TileEntity implements IPacketReceiver
|
||||||
{
|
{
|
||||||
|
@ -118,7 +118,7 @@ public class TileEntityMulti extends TileEntity implements IPacketReceiver
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Determines if this TileEntity requires update calls.
|
/** Determines if this TileEntity requires update calls.
|
||||||
*
|
*
|
||||||
* @return True if you want updateEntity() to be called, false if not */
|
* @return True if you want updateEntity() to be called, false if not */
|
||||||
@Override
|
@Override
|
||||||
public boolean canUpdate()
|
public boolean canUpdate()
|
||||||
|
|
|
@ -5,7 +5,7 @@ import net.minecraft.tileentity.TileEntity;
|
||||||
|
|
||||||
/** NBT Container blocks to use that don't really need a tileEntity for anything other than to record
|
/** NBT Container blocks to use that don't really need a tileEntity for anything other than to record
|
||||||
* a few values
|
* a few values
|
||||||
*
|
*
|
||||||
* @author DarkGuardsman */
|
* @author DarkGuardsman */
|
||||||
public class TileEntityNBTContainer extends TileEntity
|
public class TileEntityNBTContainer extends TileEntity
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,9 +8,9 @@ import net.minecraft.tileentity.TileEntity;
|
||||||
|
|
||||||
import com.builtbroken.common.Pair;
|
import com.builtbroken.common.Pair;
|
||||||
|
|
||||||
import dark.core.common.DarkMain;
|
import dark.core.ModObjectRegistry;
|
||||||
import dark.core.prefab.machine.BlockMachine;
|
import dark.core.prefab.machine.BlockMachine;
|
||||||
import dark.core.registration.ModObjectRegistry;
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
/** Actual block that is the sentry gun. Mainly a place holder as the sentry guns need something to
|
/** Actual block that is the sentry gun. Mainly a place holder as the sentry guns need something to
|
||||||
* exist threw that is not an entity.
|
* exist threw that is not an entity.
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package dark.core.prefab.sentry;
|
package dark.core.prefab.sentry;
|
||||||
|
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import dark.core.common.DarkMain;
|
|
||||||
import dark.core.prefab.machine.BlockMachine;
|
import dark.core.prefab.machine.BlockMachine;
|
||||||
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
/** Base platform for all sentry and turret's created to use for power, logic, and inventory
|
/** Base platform for all sentry and turret's created to use for power, logic, and inventory
|
||||||
* connections to the world.
|
* connections to the world.
|
||||||
|
|
|
@ -16,12 +16,12 @@ import com.google.common.io.ByteArrayDataInput;
|
||||||
|
|
||||||
import cpw.mods.fml.common.network.Player;
|
import cpw.mods.fml.common.network.Player;
|
||||||
import dark.api.ISentryGun;
|
import dark.api.ISentryGun;
|
||||||
import dark.core.common.DarkMain;
|
|
||||||
import dark.core.helpers.MathHelper;
|
import dark.core.helpers.MathHelper;
|
||||||
import dark.core.helpers.RayTraceHelper;
|
import dark.core.helpers.RayTraceHelper;
|
||||||
import dark.core.network.PacketHandler;
|
import dark.core.network.PacketHandler;
|
||||||
import dark.core.prefab.EntityTileDamage;
|
import dark.core.prefab.EntityTileDamage;
|
||||||
import dark.core.prefab.machine.TileEntityMachine;
|
import dark.core.prefab.machine.TileEntityMachine;
|
||||||
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
/** Prefab tileEntity for creating senty guns that can be of type aimed, mounted, or automated.
|
/** Prefab tileEntity for creating senty guns that can be of type aimed, mounted, or automated.
|
||||||
* Contains most of the code for a sentry gun to operate short of aiming and operating logic. This
|
* Contains most of the code for a sentry gun to operate short of aiming and operating logic. This
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
package dark.core.prefab.terminal;
|
|
||||||
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
|
||||||
import net.minecraft.entity.player.InventoryPlayer;
|
|
||||||
import net.minecraft.inventory.Container;
|
|
||||||
import net.minecraft.inventory.IInventory;
|
|
||||||
|
|
||||||
public abstract class ContainerTerminal extends Container
|
|
||||||
{
|
|
||||||
private TileEntityTerminal tileEntity;
|
|
||||||
|
|
||||||
public ContainerTerminal(InventoryPlayer inventoryPlayer, TileEntityTerminal tileEntity)
|
|
||||||
{
|
|
||||||
this.tileEntity = tileEntity;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onContainerClosed(EntityPlayer par1EntityPlayer)
|
|
||||||
{
|
|
||||||
super.onContainerClosed(par1EntityPlayer);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean canInteractWith(EntityPlayer par1EntityPlayer)
|
|
||||||
{
|
|
||||||
if (tileEntity instanceof IInventory)
|
|
||||||
{
|
|
||||||
return ((IInventory) this.tileEntity).isUseableByPlayer(par1EntityPlayer);
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,6 +0,0 @@
|
||||||
package dark.core.prefab.terminal;
|
|
||||||
|
|
||||||
public class GlobalAccessManager
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
|
@ -16,6 +16,7 @@ import dark.api.access.GroupRegistry;
|
||||||
import dark.api.access.ITerminal;
|
import dark.api.access.ITerminal;
|
||||||
import dark.core.network.PacketHandler;
|
import dark.core.network.PacketHandler;
|
||||||
import dark.core.prefab.machine.TileEntityEnergyMachine;
|
import dark.core.prefab.machine.TileEntityEnergyMachine;
|
||||||
|
import dark.core.prefab.machine.TileEntityMachine.SimplePacketTypes;
|
||||||
|
|
||||||
/** @author Calclavia, DarkGuardsman */
|
/** @author Calclavia, DarkGuardsman */
|
||||||
public abstract class TileEntityTerminal extends TileEntityEnergyMachine implements ITerminal
|
public abstract class TileEntityTerminal extends TileEntityEnergyMachine implements ITerminal
|
||||||
|
|
|
@ -11,8 +11,8 @@ import universalelectricity.core.vector.Vector3;
|
||||||
|
|
||||||
import com.builtbroken.common.Pair;
|
import com.builtbroken.common.Pair;
|
||||||
|
|
||||||
import dark.api.parts.IMotionPath;
|
import dark.api.tilenetwork.IMotionPath;
|
||||||
import dark.api.parts.INetworkPart;
|
import dark.api.tilenetwork.INetworkPart;
|
||||||
|
|
||||||
/** Class that acts like the redpower pipes system. Each item is marked with a destination. Intended
|
/** Class that acts like the redpower pipes system. Each item is marked with a destination. Intended
|
||||||
* use it to improve the assembly line network
|
* use it to improve the assembly line network
|
||||||
|
|
|
@ -8,7 +8,7 @@ import net.minecraft.world.World;
|
||||||
import universalelectricity.core.path.IPathCallBack;
|
import universalelectricity.core.path.IPathCallBack;
|
||||||
import universalelectricity.core.path.Pathfinder;
|
import universalelectricity.core.path.Pathfinder;
|
||||||
import universalelectricity.core.vector.Vector3;
|
import universalelectricity.core.vector.Vector3;
|
||||||
import dark.api.parts.INetworkPart;
|
import dark.api.tilenetwork.INetworkPart;
|
||||||
|
|
||||||
/** Check if a conductor connects with another. */
|
/** Check if a conductor connects with another. */
|
||||||
public class NetworkPathFinder extends Pathfinder
|
public class NetworkPathFinder extends Pathfinder
|
||||||
|
|
|
@ -5,7 +5,7 @@ import java.util.List;
|
||||||
|
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
import net.minecraftforge.common.ForgeDirection;
|
||||||
import dark.api.parts.INetworkPart;
|
import dark.api.tilenetwork.INetworkPart;
|
||||||
|
|
||||||
/** Network that supplies resources to tiles that demand a set resource
|
/** Network that supplies resources to tiles that demand a set resource
|
||||||
*
|
*
|
||||||
|
|
|
@ -4,8 +4,8 @@ import net.minecraft.tileentity.TileEntity;
|
||||||
import universalelectricity.core.block.IElectricalStorage;
|
import universalelectricity.core.block.IElectricalStorage;
|
||||||
import universalelectricity.core.electricity.ElectricityPack;
|
import universalelectricity.core.electricity.ElectricityPack;
|
||||||
import dark.api.energy.IPowerLess;
|
import dark.api.energy.IPowerLess;
|
||||||
import dark.api.parts.INetworkEnergyPart;
|
import dark.api.tilenetwork.INetworkEnergyPart;
|
||||||
import dark.api.parts.INetworkPart;
|
import dark.api.tilenetwork.INetworkPart;
|
||||||
|
|
||||||
/** Used for tile networks that only need to share power or act like a group battery that doesn't
|
/** Used for tile networks that only need to share power or act like a group battery that doesn't
|
||||||
* store power on world save
|
* store power on world save
|
||||||
|
|
|
@ -10,8 +10,8 @@ import net.minecraftforge.common.ForgeDirection;
|
||||||
import universalelectricity.core.path.Pathfinder;
|
import universalelectricity.core.path.Pathfinder;
|
||||||
import universalelectricity.core.vector.Vector3;
|
import universalelectricity.core.vector.Vector3;
|
||||||
import universalelectricity.core.vector.VectorHelper;
|
import universalelectricity.core.vector.VectorHelper;
|
||||||
import dark.api.parts.INetworkPart;
|
import dark.api.tilenetwork.INetworkPart;
|
||||||
import dark.api.parts.ITileNetwork;
|
import dark.api.tilenetwork.ITileNetwork;
|
||||||
|
|
||||||
public class NetworkTileEntities implements ITileNetwork
|
public class NetworkTileEntities implements ITileNetwork
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,7 +8,7 @@ import java.util.Set;
|
||||||
|
|
||||||
import cpw.mods.fml.common.ITickHandler;
|
import cpw.mods.fml.common.ITickHandler;
|
||||||
import cpw.mods.fml.common.TickType;
|
import cpw.mods.fml.common.TickType;
|
||||||
import dark.api.parts.ITileNetwork;
|
import dark.api.tilenetwork.ITileNetwork;
|
||||||
|
|
||||||
/** Manages all the tile networks making sure they get world save events, and updates every so often
|
/** Manages all the tile networks making sure they get world save events, and updates every so often
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.client;
|
package dark.machines.client;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
|
|
||||||
|
@ -12,15 +12,15 @@ import cpw.mods.fml.client.registry.RenderingRegistry;
|
||||||
import cpw.mods.fml.common.FMLCommonHandler;
|
import cpw.mods.fml.common.FMLCommonHandler;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import dark.core.client.gui.GuiBatteryBox;
|
|
||||||
import dark.core.client.renders.BlockRenderingHandler;
|
|
||||||
import dark.core.client.renders.ItemRenderFluidCan;
|
|
||||||
import dark.core.client.renders.RenderTestCar;
|
|
||||||
import dark.core.common.CommonProxy;
|
|
||||||
import dark.core.common.CoreRecipeLoader;
|
|
||||||
import dark.core.common.machines.TileEntityBatteryBox;
|
|
||||||
import dark.core.prefab.ModPrefab;
|
import dark.core.prefab.ModPrefab;
|
||||||
import dark.core.prefab.vehicles.EntityTestCar;
|
import dark.core.prefab.entities.EntityTestCar;
|
||||||
|
import dark.machines.client.gui.GuiBatteryBox;
|
||||||
|
import dark.machines.client.renders.BlockRenderingHandler;
|
||||||
|
import dark.machines.client.renders.ItemRenderFluidCan;
|
||||||
|
import dark.machines.client.renders.RenderTestCar;
|
||||||
|
import dark.machines.common.CommonProxy;
|
||||||
|
import dark.machines.common.CoreRecipeLoader;
|
||||||
|
import dark.machines.common.machines.TileEntityBatteryBox;
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public class ClientProxy extends CommonProxy
|
public class ClientProxy extends CommonProxy
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.client;
|
package dark.machines.client;
|
||||||
|
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.util.Vec3;
|
import net.minecraft.util.Vec3;
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.client;
|
package dark.machines.client;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ import universalelectricity.core.vector.Vector3;
|
||||||
import cpw.mods.fml.client.FMLClientHandler;
|
import cpw.mods.fml.client.FMLClientHandler;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import dark.core.common.DarkMain;
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
/** Based off Thaumcraft's Beam Renderer.
|
/** Based off Thaumcraft's Beam Renderer.
|
||||||
*
|
*
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.client.gui;
|
package dark.machines.client.gui;
|
||||||
|
|
||||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||||
import net.minecraft.entity.player.InventoryPlayer;
|
import net.minecraft.entity.player.InventoryPlayer;
|
||||||
|
@ -11,9 +11,9 @@ import universalelectricity.core.electricity.ElectricityDisplay;
|
||||||
import universalelectricity.core.electricity.ElectricityDisplay.ElectricUnit;
|
import universalelectricity.core.electricity.ElectricityDisplay.ElectricUnit;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import dark.core.common.DarkMain;
|
import dark.machines.common.DarkMain;
|
||||||
import dark.core.common.machines.ContainerBatteryBox;
|
import dark.machines.common.machines.ContainerBatteryBox;
|
||||||
import dark.core.common.machines.TileEntityBatteryBox;
|
import dark.machines.common.machines.TileEntityBatteryBox;
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public class GuiBatteryBox extends GuiContainer
|
public class GuiBatteryBox extends GuiContainer
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.client.gui;
|
package dark.machines.client.gui;
|
||||||
|
|
||||||
/** Same as the GuiMachineBase but supports inventory pages
|
/** Same as the GuiMachineBase but supports inventory pages
|
||||||
*
|
*
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.client.gui;
|
package dark.machines.client.gui;
|
||||||
|
|
||||||
import net.minecraft.client.gui.GuiButton;
|
import net.minecraft.client.gui.GuiButton;
|
||||||
import net.minecraft.client.renderer.RenderHelper;
|
import net.minecraft.client.renderer.RenderHelper;
|
||||||
|
@ -9,11 +9,11 @@ import org.lwjgl.opengl.GL11;
|
||||||
import org.lwjgl.opengl.GL12;
|
import org.lwjgl.opengl.GL12;
|
||||||
|
|
||||||
import cpw.mods.fml.client.FMLClientHandler;
|
import cpw.mods.fml.client.FMLClientHandler;
|
||||||
import dark.core.common.DarkMain;
|
|
||||||
import dark.core.prefab.invgui.GuiBase;
|
import dark.core.prefab.invgui.GuiBase;
|
||||||
import dark.core.prefab.invgui.GuiButtonImage;
|
import dark.core.prefab.invgui.GuiButtonImage;
|
||||||
import dark.core.prefab.invgui.GuiButtonImage.ButtonIcon;
|
import dark.core.prefab.invgui.GuiButtonImage.ButtonIcon;
|
||||||
import dark.core.prefab.machine.TileEntityMachine;
|
import dark.core.prefab.machine.TileEntityMachine;
|
||||||
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
/** To be used with all machine that have a gui to allow generic settings and feature all all devices
|
/** To be used with all machine that have a gui to allow generic settings and feature all all devices
|
||||||
*
|
*
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.client.gui;
|
package dark.machines.client.gui;
|
||||||
|
|
||||||
import net.minecraft.client.gui.GuiButton;
|
import net.minecraft.client.gui.GuiButton;
|
||||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
import net.minecraft.client.gui.inventory.GuiContainer;
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.client.models;
|
package dark.machines.client.models;
|
||||||
|
|
||||||
import net.minecraft.client.model.ModelBase;
|
import net.minecraft.client.model.ModelBase;
|
||||||
import net.minecraft.client.model.ModelRenderer;
|
import net.minecraft.client.model.ModelRenderer;
|
|
@ -4,9 +4,8 @@
|
||||||
// Keep in mind that you still need to fill in some blanks
|
// Keep in mind that you still need to fill in some blanks
|
||||||
// - ZeuX
|
// - ZeuX
|
||||||
|
|
||||||
package dark.core.client.models;
|
package dark.machines.client.models;
|
||||||
|
|
||||||
import net.minecraft.client.model.ModelBase;
|
|
||||||
import net.minecraft.client.model.ModelRenderer;
|
import net.minecraft.client.model.ModelRenderer;
|
||||||
|
|
||||||
public class ModelElecFurnace extends ModelMachine
|
public class ModelElecFurnace extends ModelMachine
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.client.models;
|
package dark.machines.client.models;
|
||||||
|
|
||||||
import net.minecraft.client.model.ModelBase;
|
import net.minecraft.client.model.ModelBase;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
// Keep in mind that you still need to fill in some blanks
|
// Keep in mind that you still need to fill in some blanks
|
||||||
// - ZeuX
|
// - ZeuX
|
||||||
|
|
||||||
package dark.core.client.models;
|
package dark.machines.client.models;
|
||||||
|
|
||||||
import net.minecraft.client.model.ModelBase;
|
import net.minecraft.client.model.ModelBase;
|
||||||
import net.minecraft.client.model.ModelRenderer;
|
import net.minecraft.client.model.ModelRenderer;
|
|
@ -4,7 +4,7 @@
|
||||||
// Keep in mind that you still need to fill in some blanks
|
// Keep in mind that you still need to fill in some blanks
|
||||||
// - ZeuX
|
// - ZeuX
|
||||||
|
|
||||||
package dark.core.client.models;
|
package dark.machines.client.models;
|
||||||
|
|
||||||
import net.minecraft.client.model.ModelBase;
|
import net.minecraft.client.model.ModelBase;
|
||||||
import net.minecraft.client.model.ModelRenderer;
|
import net.minecraft.client.model.ModelRenderer;
|
|
@ -4,7 +4,7 @@
|
||||||
// Keep in mind that you still need to fill in some blanks
|
// Keep in mind that you still need to fill in some blanks
|
||||||
// - ZeuX
|
// - ZeuX
|
||||||
|
|
||||||
package dark.core.client.models;
|
package dark.machines.client.models;
|
||||||
|
|
||||||
import net.minecraft.client.model.ModelRenderer;
|
import net.minecraft.client.model.ModelRenderer;
|
||||||
|
|
|
@ -4,11 +4,9 @@
|
||||||
// Keep in mind that you still need to fill in some blanks
|
// Keep in mind that you still need to fill in some blanks
|
||||||
// - ZeuX
|
// - ZeuX
|
||||||
|
|
||||||
package dark.core.client.models;
|
package dark.machines.client.models;
|
||||||
|
|
||||||
import net.minecraft.client.model.ModelBase;
|
|
||||||
import net.minecraft.client.model.ModelRenderer;
|
import net.minecraft.client.model.ModelRenderer;
|
||||||
import net.minecraft.entity.Entity;
|
|
||||||
|
|
||||||
public class ModelSteamTurbine extends ModelMachine
|
public class ModelSteamTurbine extends ModelMachine
|
||||||
{
|
{
|
|
@ -4,7 +4,7 @@
|
||||||
// Keep in mind that you still need to fill in some blanks
|
// Keep in mind that you still need to fill in some blanks
|
||||||
// - ZeuX
|
// - ZeuX
|
||||||
|
|
||||||
package dark.core.client.models;
|
package dark.machines.client.models;
|
||||||
|
|
||||||
import net.minecraft.client.model.ModelBase;
|
import net.minecraft.client.model.ModelBase;
|
||||||
import net.minecraft.client.model.ModelRenderer;
|
import net.minecraft.client.model.ModelRenderer;
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.client.renders;
|
package dark.machines.client.renders;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.client.renders;
|
package dark.machines.client.renders;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.client.renderer.RenderBlocks;
|
import net.minecraft.client.renderer.RenderBlocks;
|
||||||
|
@ -12,11 +12,11 @@ import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||||
import cpw.mods.fml.client.registry.RenderingRegistry;
|
import cpw.mods.fml.client.registry.RenderingRegistry;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import dark.core.client.models.ModelMachine;
|
|
||||||
import dark.core.client.models.ModelSolarPanel;
|
|
||||||
import dark.core.common.CoreRecipeLoader;
|
|
||||||
import dark.core.common.DarkMain;
|
|
||||||
import dark.core.prefab.ModPrefab;
|
import dark.core.prefab.ModPrefab;
|
||||||
|
import dark.machines.client.models.ModelMachine;
|
||||||
|
import dark.machines.client.models.ModelSolarPanel;
|
||||||
|
import dark.machines.common.CoreRecipeLoader;
|
||||||
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public class BlockRenderingHandler implements ISimpleBlockRenderingHandler
|
public class BlockRenderingHandler implements ISimpleBlockRenderingHandler
|
|
@ -1,10 +1,9 @@
|
||||||
package dark.core.client.renders;
|
package dark.machines.client.renders;
|
||||||
|
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.util.ResourceLocation;
|
import net.minecraft.util.ResourceLocation;
|
||||||
import net.minecraftforge.client.IItemRenderer;
|
import net.minecraftforge.client.IItemRenderer;
|
||||||
import net.minecraftforge.fluids.FluidRegistry;
|
|
||||||
import net.minecraftforge.fluids.FluidStack;
|
import net.minecraftforge.fluids.FluidStack;
|
||||||
|
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
|
@ -12,10 +11,10 @@ import org.lwjgl.opengl.GL11;
|
||||||
import cpw.mods.fml.client.FMLClientHandler;
|
import cpw.mods.fml.client.FMLClientHandler;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import dark.core.client.models.ModelSmallFluidCan;
|
import dark.machines.client.models.ModelSmallFluidCan;
|
||||||
import dark.core.common.CoreRecipeLoader;
|
import dark.machines.common.CoreRecipeLoader;
|
||||||
import dark.core.common.DarkMain;
|
import dark.machines.common.DarkMain;
|
||||||
import dark.core.common.items.ItemFluidCan;
|
import dark.machines.common.items.ItemFluidCan;
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public class ItemRenderFluidCan implements IItemRenderer
|
public class ItemRenderFluidCan implements IItemRenderer
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.client.renders;
|
package dark.machines.client.renders;
|
||||||
|
|
||||||
import net.minecraft.client.renderer.Tessellator;
|
import net.minecraft.client.renderer.Tessellator;
|
||||||
import net.minecraft.client.renderer.entity.Render;
|
import net.minecraft.client.renderer.entity.Render;
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.client.renders;
|
package dark.machines.client.renders;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.client.renders;
|
package dark.machines.client.renders;
|
||||||
|
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.util.ResourceLocation;
|
import net.minecraft.util.ResourceLocation;
|
||||||
|
@ -7,8 +7,8 @@ import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import dark.core.client.models.ModelSolarPanel;
|
import dark.machines.client.models.ModelSolarPanel;
|
||||||
import dark.core.common.DarkMain;
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public class RenderBlockSolarPanel extends RenderTileMachine
|
public class RenderBlockSolarPanel extends RenderTileMachine
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.client.renders;
|
package dark.machines.client.renders;
|
||||||
|
|
||||||
import ic2.api.energy.tile.IEnergyAcceptor;
|
import ic2.api.energy.tile.IEnergyAcceptor;
|
||||||
import ic2.api.energy.tile.IEnergyTile;
|
import ic2.api.energy.tile.IEnergyTile;
|
||||||
|
@ -15,8 +15,8 @@ import universalelectricity.core.vector.VectorHelper;
|
||||||
import buildcraft.api.power.IPowerReceptor;
|
import buildcraft.api.power.IPowerReceptor;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import dark.core.client.models.ModelCopperWire;
|
import dark.machines.client.models.ModelCopperWire;
|
||||||
import dark.core.common.DarkMain;
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public class RenderBlockWire extends RenderTileMachine
|
public class RenderBlockWire extends RenderTileMachine
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.client.renders;
|
package dark.machines.client.renders;
|
||||||
|
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.util.MathHelper;
|
import net.minecraft.util.MathHelper;
|
||||||
|
@ -8,14 +8,12 @@ import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import dark.core.client.models.ModelSteamGen;
|
|
||||||
import dark.core.client.models.ModelSteamTurbine;
|
|
||||||
import dark.core.client.models.ModelElecFurnace;
|
|
||||||
import dark.core.client.models.ModelMachine;
|
|
||||||
import dark.core.common.DarkMain;
|
|
||||||
import dark.core.common.machines.BlockSmallSteamGen;
|
|
||||||
import dark.core.prefab.ModPrefab;
|
import dark.core.prefab.ModPrefab;
|
||||||
import dark.core.prefab.machine.TileEntityMachine;
|
import dark.core.prefab.machine.TileEntityMachine;
|
||||||
|
import dark.machines.client.models.ModelMachine;
|
||||||
|
import dark.machines.client.models.ModelSteamGen;
|
||||||
|
import dark.machines.client.models.ModelSteamTurbine;
|
||||||
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public class RenderSteamGen extends RenderTileMachine
|
public class RenderSteamGen extends RenderTileMachine
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.client.renders;
|
package dark.machines.client.renders;
|
||||||
|
|
||||||
import net.minecraft.client.model.ModelBase;
|
import net.minecraft.client.model.ModelBase;
|
||||||
import net.minecraft.client.renderer.entity.Render;
|
import net.minecraft.client.renderer.entity.Render;
|
||||||
|
@ -10,9 +10,9 @@ import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import dark.core.client.models.ModelTestCar;
|
|
||||||
import dark.core.common.DarkMain;
|
|
||||||
import dark.core.prefab.entities.EntityAdvanced;
|
import dark.core.prefab.entities.EntityAdvanced;
|
||||||
|
import dark.machines.client.models.ModelTestCar;
|
||||||
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public class RenderTestCar extends Render
|
public class RenderTestCar extends Render
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.client.renders;
|
package dark.machines.client.renders;
|
||||||
|
|
||||||
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.common;
|
package dark.machines.common;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
|
|
||||||
|
@ -7,11 +7,11 @@ import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import universalelectricity.core.vector.Vector3;
|
import universalelectricity.core.vector.Vector3;
|
||||||
import cpw.mods.fml.common.network.IGuiHandler;
|
import cpw.mods.fml.common.network.IGuiHandler;
|
||||||
import dark.core.common.machines.ContainerBatteryBox;
|
|
||||||
import dark.core.common.machines.ContainerCoalGenerator;
|
|
||||||
import dark.core.common.machines.TileEntityBatteryBox;
|
|
||||||
import dark.core.common.machines.TileEntitySteamGen;
|
|
||||||
import dark.core.network.PacketManagerEffects;
|
import dark.core.network.PacketManagerEffects;
|
||||||
|
import dark.machines.common.machines.ContainerBatteryBox;
|
||||||
|
import dark.machines.common.machines.ContainerCoalGenerator;
|
||||||
|
import dark.machines.common.machines.TileEntityBatteryBox;
|
||||||
|
import dark.machines.common.machines.TileEntitySteamGen;
|
||||||
|
|
||||||
public class CommonProxy implements IGuiHandler
|
public class CommonProxy implements IGuiHandler
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.common;
|
package dark.machines.common;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
|
@ -10,20 +10,20 @@ import dark.api.ColorCode;
|
||||||
import dark.api.IToolReadOut.EnumTools;
|
import dark.api.IToolReadOut.EnumTools;
|
||||||
import dark.api.reciepes.MachineRecipeHandler;
|
import dark.api.reciepes.MachineRecipeHandler;
|
||||||
import dark.api.reciepes.ProcessorType;
|
import dark.api.reciepes.ProcessorType;
|
||||||
import dark.core.common.blocks.BlockBasalt;
|
import dark.machines.common.blocks.BlockBasalt;
|
||||||
import dark.core.common.blocks.BlockOre;
|
import dark.machines.common.blocks.BlockOre;
|
||||||
import dark.core.common.blocks.BlockOre.OreData;
|
import dark.machines.common.blocks.BlockOre.OreData;
|
||||||
import dark.core.common.items.EnumMaterial;
|
import dark.machines.common.items.EnumMaterial;
|
||||||
import dark.core.common.items.EnumOrePart;
|
import dark.machines.common.items.EnumOrePart;
|
||||||
import dark.core.common.items.EnumTool;
|
import dark.machines.common.items.EnumTool;
|
||||||
import dark.core.common.items.ItemCommonTool;
|
import dark.machines.common.items.ItemCommonTool;
|
||||||
import dark.core.common.items.ItemOreDirv;
|
import dark.machines.common.items.ItemOreDirv;
|
||||||
import dark.core.common.items.ItemParts;
|
import dark.machines.common.items.ItemParts;
|
||||||
import dark.core.common.items.ItemParts.Parts;
|
import dark.machines.common.items.ItemParts.Parts;
|
||||||
import dark.core.common.items.ItemReadoutTools;
|
import dark.machines.common.items.ItemReadoutTools;
|
||||||
import dark.core.common.items.ItemWrench;
|
import dark.machines.common.items.ItemWrench;
|
||||||
import dark.core.common.machines.BlockSolarPanel;
|
import dark.machines.common.machines.BlockSolarPanel;
|
||||||
import dark.core.common.transmit.BlockWire;
|
import dark.machines.common.transmit.BlockWire;
|
||||||
|
|
||||||
public class CoreRecipeLoader extends RecipeLoader
|
public class CoreRecipeLoader extends RecipeLoader
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.common;
|
package dark.machines.common;
|
||||||
|
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.common;
|
package dark.machines.common;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
@ -34,44 +34,44 @@ import cpw.mods.fml.common.registry.EntityRegistry;
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
import cpw.mods.fml.common.registry.GameRegistry;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import dark.api.reciepes.MachineRecipeHandler;
|
import dark.api.reciepes.MachineRecipeHandler;
|
||||||
import dark.core.common.blocks.BlockBasalt;
|
import dark.core.ModObjectRegistry;
|
||||||
import dark.core.common.blocks.BlockColorGlass;
|
|
||||||
import dark.core.common.blocks.BlockColorGlowGlass;
|
|
||||||
import dark.core.common.blocks.BlockColorSand;
|
|
||||||
import dark.core.common.blocks.BlockGasOre;
|
|
||||||
import dark.core.common.blocks.BlockOre;
|
|
||||||
import dark.core.common.blocks.BlockOre.OreData;
|
|
||||||
import dark.core.common.blocks.GasOreGenerator;
|
|
||||||
import dark.core.common.blocks.ItemBlockColored;
|
|
||||||
import dark.core.common.blocks.ItemBlockOre;
|
|
||||||
import dark.core.common.items.EnumMaterial;
|
|
||||||
import dark.core.common.items.EnumOrePart;
|
|
||||||
import dark.core.common.items.ItemBattery;
|
|
||||||
import dark.core.common.items.ItemColoredDust;
|
|
||||||
import dark.core.common.items.ItemCommonTool;
|
|
||||||
import dark.core.common.items.ItemFluidCan;
|
|
||||||
import dark.core.common.items.ItemOreDirv;
|
|
||||||
import dark.core.common.items.ItemParts;
|
|
||||||
import dark.core.common.items.ItemParts.Parts;
|
|
||||||
import dark.core.common.items.ItemReadoutTools;
|
|
||||||
import dark.core.common.items.ItemWrench;
|
|
||||||
import dark.core.common.machines.BlockEnergyStorage;
|
|
||||||
import dark.core.common.machines.BlockSmallSteamGen;
|
|
||||||
import dark.core.common.machines.BlockDebug;
|
|
||||||
import dark.core.common.machines.BlockSolarPanel;
|
|
||||||
import dark.core.common.machines.ItemBlockEnergyStorage;
|
|
||||||
import dark.core.common.transmit.BlockWire;
|
|
||||||
import dark.core.common.transmit.ItemBlockWire;
|
|
||||||
import dark.core.helpers.PacketDataWatcher;
|
import dark.core.helpers.PacketDataWatcher;
|
||||||
import dark.core.network.PacketHandler;
|
import dark.core.network.PacketHandler;
|
||||||
import dark.core.prefab.ItemBlockHolder;
|
import dark.core.prefab.ItemBlockHolder;
|
||||||
import dark.core.prefab.ModPrefab;
|
import dark.core.prefab.ModPrefab;
|
||||||
|
import dark.core.prefab.entities.EntityTestCar;
|
||||||
|
import dark.core.prefab.entities.ItemVehicleSpawn;
|
||||||
import dark.core.prefab.fluids.EnumGas;
|
import dark.core.prefab.fluids.EnumGas;
|
||||||
import dark.core.prefab.machine.BlockMulti;
|
import dark.core.prefab.machine.BlockMulti;
|
||||||
import dark.core.prefab.machine.TileEntityNBTContainer;
|
import dark.core.prefab.machine.TileEntityNBTContainer;
|
||||||
import dark.core.prefab.vehicles.EntityTestCar;
|
import dark.machines.common.blocks.BlockBasalt;
|
||||||
import dark.core.prefab.vehicles.ItemVehicleSpawn;
|
import dark.machines.common.blocks.BlockColorGlass;
|
||||||
import dark.core.registration.ModObjectRegistry;
|
import dark.machines.common.blocks.BlockColorGlowGlass;
|
||||||
|
import dark.machines.common.blocks.BlockColorSand;
|
||||||
|
import dark.machines.common.blocks.BlockGasOre;
|
||||||
|
import dark.machines.common.blocks.BlockOre;
|
||||||
|
import dark.machines.common.blocks.BlockOre.OreData;
|
||||||
|
import dark.machines.common.blocks.GasOreGenerator;
|
||||||
|
import dark.machines.common.blocks.ItemBlockColored;
|
||||||
|
import dark.machines.common.blocks.ItemBlockOre;
|
||||||
|
import dark.machines.common.items.EnumMaterial;
|
||||||
|
import dark.machines.common.items.EnumOrePart;
|
||||||
|
import dark.machines.common.items.ItemBattery;
|
||||||
|
import dark.machines.common.items.ItemColoredDust;
|
||||||
|
import dark.machines.common.items.ItemCommonTool;
|
||||||
|
import dark.machines.common.items.ItemFluidCan;
|
||||||
|
import dark.machines.common.items.ItemOreDirv;
|
||||||
|
import dark.machines.common.items.ItemParts;
|
||||||
|
import dark.machines.common.items.ItemParts.Parts;
|
||||||
|
import dark.machines.common.items.ItemReadoutTools;
|
||||||
|
import dark.machines.common.items.ItemWrench;
|
||||||
|
import dark.machines.common.machines.BlockDebug;
|
||||||
|
import dark.machines.common.machines.BlockEnergyStorage;
|
||||||
|
import dark.machines.common.machines.BlockSmallSteamGen;
|
||||||
|
import dark.machines.common.machines.BlockSolarPanel;
|
||||||
|
import dark.machines.common.machines.ItemBlockEnergyStorage;
|
||||||
|
import dark.machines.common.transmit.BlockWire;
|
||||||
|
import dark.machines.common.transmit.ItemBlockWire;
|
||||||
|
|
||||||
/** @author HangCow, DarkGuardsman */
|
/** @author HangCow, DarkGuardsman */
|
||||||
@Mod(modid = DarkMain.MOD_ID, name = DarkMain.MOD_NAME, version = DarkMain.VERSION, dependencies = "after:BuildCraft|Energy", useMetadata = true)
|
@Mod(modid = DarkMain.MOD_ID, name = DarkMain.MOD_NAME, version = DarkMain.VERSION, dependencies = "after:BuildCraft|Energy", useMetadata = true)
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.common;
|
package dark.machines.common;
|
||||||
|
|
||||||
import java.util.EnumSet;
|
import java.util.EnumSet;
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ import net.minecraft.world.WorldServer;
|
||||||
import net.minecraftforge.common.DimensionManager;
|
import net.minecraftforge.common.DimensionManager;
|
||||||
import cpw.mods.fml.common.ITickHandler;
|
import cpw.mods.fml.common.ITickHandler;
|
||||||
import cpw.mods.fml.common.TickType;
|
import cpw.mods.fml.common.TickType;
|
||||||
import dark.core.common.blocks.BlockGasOre;
|
import dark.machines.common.blocks.BlockGasOre;
|
||||||
|
|
||||||
/** Tick handler that takes care of things like decreasing air supply while in gas block
|
/** Tick handler that takes care of things like decreasing air supply while in gas block
|
||||||
*
|
*
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.common;
|
package dark.machines.common;
|
||||||
|
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import buildcraft.api.transport.IPipeTile;
|
import buildcraft.api.transport.IPipeTile;
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.common;
|
package dark.machines.common;
|
||||||
|
|
||||||
import java.util.EnumSet;
|
import java.util.EnumSet;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.common;
|
package dark.machines.common;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.common.blocks;
|
package dark.machines.common.blocks;
|
||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
@ -9,8 +9,8 @@ import net.minecraft.creativetab.CreativeTabs;
|
||||||
import net.minecraft.util.Icon;
|
import net.minecraft.util.Icon;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import dark.core.common.DarkMain;
|
|
||||||
import dark.core.prefab.ModPrefab;
|
import dark.core.prefab.ModPrefab;
|
||||||
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
public class BlockBasalt extends Block
|
public class BlockBasalt extends Block
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.common.blocks;
|
package dark.machines.common.blocks;
|
||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
@ -6,9 +6,9 @@ import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import dark.core.common.DarkMain;
|
|
||||||
import dark.core.prefab.BlockColored;
|
import dark.core.prefab.BlockColored;
|
||||||
import dark.core.prefab.ModPrefab;
|
import dark.core.prefab.ModPrefab;
|
||||||
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
public class BlockColorGlass extends BlockColored
|
public class BlockColorGlass extends BlockColored
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.common.blocks;
|
package dark.machines.common.blocks;
|
||||||
|
|
||||||
public class BlockColorGlowGlass extends BlockColorGlass
|
public class BlockColorGlowGlass extends BlockColorGlass
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.common.blocks;
|
package dark.machines.common.blocks;
|
||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
@ -6,9 +6,9 @@ import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import dark.core.common.DarkMain;
|
|
||||||
import dark.core.prefab.BlockColored;
|
import dark.core.prefab.BlockColored;
|
||||||
import dark.core.prefab.ModPrefab;
|
import dark.core.prefab.ModPrefab;
|
||||||
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
//TODO fix instant falling sand
|
//TODO fix instant falling sand
|
||||||
public class BlockColorSand extends BlockColored
|
public class BlockColorSand extends BlockColored
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.common.blocks;
|
package dark.machines.common.blocks;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -23,10 +23,10 @@ import universalelectricity.core.vector.Vector3;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import dark.api.IGasBlock;
|
import dark.api.IGasBlock;
|
||||||
import dark.core.common.DMCreativeTab;
|
|
||||||
import dark.core.common.DarkMain;
|
|
||||||
import dark.core.prefab.ModPrefab;
|
import dark.core.prefab.ModPrefab;
|
||||||
import dark.core.prefab.fluids.EnumGas;
|
import dark.core.prefab.fluids.EnumGas;
|
||||||
|
import dark.machines.common.DMCreativeTab;
|
||||||
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
/** Gas that is designed to generate underground in the same way as an ore
|
/** Gas that is designed to generate underground in the same way as an ore
|
||||||
*
|
*
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.common.blocks;
|
package dark.machines.common.blocks;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
@ -20,11 +20,11 @@ import com.builtbroken.common.Pair;
|
||||||
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import dark.core.common.CoreRecipeLoader;
|
|
||||||
import dark.core.common.DarkMain;
|
|
||||||
import dark.core.common.items.EnumMaterial;
|
|
||||||
import dark.core.interfaces.IExtraInfo.IExtraBlockInfo;
|
import dark.core.interfaces.IExtraInfo.IExtraBlockInfo;
|
||||||
import dark.core.prefab.ModPrefab;
|
import dark.core.prefab.ModPrefab;
|
||||||
|
import dark.machines.common.CoreRecipeLoader;
|
||||||
|
import dark.machines.common.DarkMain;
|
||||||
|
import dark.machines.common.items.EnumMaterial;
|
||||||
|
|
||||||
public class BlockOre extends Block implements IExtraBlockInfo
|
public class BlockOre extends Block implements IExtraBlockInfo
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.common.blocks;
|
package dark.machines.common.blocks;
|
||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ import net.minecraft.world.gen.ChunkProviderEnd;
|
||||||
import net.minecraft.world.gen.ChunkProviderHell;
|
import net.minecraft.world.gen.ChunkProviderHell;
|
||||||
import net.minecraftforge.fluids.FluidStack;
|
import net.minecraftforge.fluids.FluidStack;
|
||||||
import cpw.mods.fml.common.IWorldGenerator;
|
import cpw.mods.fml.common.IWorldGenerator;
|
||||||
import dark.core.common.CoreRecipeLoader;
|
import dark.machines.common.CoreRecipeLoader;
|
||||||
|
|
||||||
public class GasOreGenerator implements IWorldGenerator
|
public class GasOreGenerator implements IWorldGenerator
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
package dark.core.common.blocks;
|
package dark.machines.common.blocks;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package dark.core.common.blocks;
|
package dark.machines.common.blocks;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.item.ItemBlock;
|
import net.minecraft.item.ItemBlock;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import dark.core.common.DarkMain;
|
import dark.machines.common.DarkMain;
|
||||||
|
|
||||||
public class ItemBlockColored extends ItemBlock
|
public class ItemBlockColored extends ItemBlock
|
||||||
{
|
{
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue