Changing packages to reduce package count
Cleanup in other words
This commit is contained in:
parent
78480e265b
commit
2d825496c4
26 changed files with 31 additions and 93 deletions
|
@ -11,7 +11,7 @@ import net.minecraft.world.World;
|
|||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import universalelectricity.core.vector.Vector3;
|
||||
import dark.core.prefab.entity.EntityBlock;
|
||||
import dark.core.prefab.EntityBlock;
|
||||
|
||||
public class RenderBlockEntity extends Render
|
||||
{
|
||||
|
|
|
@ -55,9 +55,9 @@ import dark.core.common.machines.BlockSolarPanel;
|
|||
import dark.core.common.transmit.BlockWire;
|
||||
import dark.core.common.transmit.ItemBlockWire;
|
||||
import dark.core.network.PacketHandler;
|
||||
import dark.core.prefab.ItemBlockHolder;
|
||||
import dark.core.prefab.ModPrefab;
|
||||
import dark.core.prefab.helpers.PacketDataWatcher;
|
||||
import dark.core.prefab.items.ItemBlockHolder;
|
||||
import dark.core.prefab.machine.BlockMulti;
|
||||
import dark.core.registration.ModObjectRegistry;
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ 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.prefab.IExtraInfo.IExtraBlockInfo;
|
||||
import dark.core.interfaces.IExtraInfo.IExtraBlockInfo;
|
||||
import dark.core.prefab.ModPrefab;
|
||||
|
||||
public class BlockOre extends Block implements IExtraBlockInfo
|
||||
|
|
|
@ -9,8 +9,8 @@ import net.minecraft.util.Icon;
|
|||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import dark.core.common.DarkMain;
|
||||
import dark.core.prefab.ItemBasic;
|
||||
import dark.core.prefab.ModPrefab;
|
||||
import dark.core.prefab.items.ItemBasic;
|
||||
|
||||
public class ItemColoredDust extends ItemBasic
|
||||
{
|
||||
|
|
|
@ -39,7 +39,7 @@ import com.google.common.collect.Multimap;
|
|||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import dark.core.common.DarkMain;
|
||||
import dark.core.prefab.IExtraInfo.IExtraItemInfo;
|
||||
import dark.core.interfaces.IExtraInfo.IExtraItemInfo;
|
||||
import dark.core.prefab.ModPrefab;
|
||||
|
||||
/** Flexible tool class that uses NBT to store damage and effect rather than metadata. Metadata
|
||||
|
|
|
@ -11,9 +11,9 @@ import net.minecraftforge.oredict.OreDictionary;
|
|||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import dark.core.common.DarkMain;
|
||||
import dark.core.prefab.IExtraInfo.IExtraItemInfo;
|
||||
import dark.core.interfaces.IExtraInfo.IExtraItemInfo;
|
||||
import dark.core.prefab.ItemBasic;
|
||||
import dark.core.prefab.ModPrefab;
|
||||
import dark.core.prefab.items.ItemBasic;
|
||||
|
||||
/** A series of items that are derived from a basic material
|
||||
*
|
||||
|
|
|
@ -11,9 +11,9 @@ import net.minecraftforge.oredict.OreDictionary;
|
|||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import dark.core.common.DarkMain;
|
||||
import dark.core.prefab.IExtraInfo.IExtraItemInfo;
|
||||
import dark.core.interfaces.IExtraInfo.IExtraItemInfo;
|
||||
import dark.core.prefab.ItemBasic;
|
||||
import dark.core.prefab.ModPrefab;
|
||||
import dark.core.prefab.items.ItemBasic;
|
||||
|
||||
/** A meta data item containing parts of various crafting recipes. These parts do not do anything but
|
||||
* allow new crafting recipes to be created.
|
||||
|
|
|
@ -24,9 +24,9 @@ import cpw.mods.fml.relauncher.SideOnly;
|
|||
import dark.api.IToolReadOut;
|
||||
import dark.api.IToolReadOut.EnumTools;
|
||||
import dark.core.common.DarkMain;
|
||||
import dark.core.prefab.ItemBasic;
|
||||
import dark.core.prefab.ModPrefab;
|
||||
import dark.core.prefab.helpers.FluidHelper;
|
||||
import dark.core.prefab.items.ItemBasic;
|
||||
|
||||
public class ItemReadoutTools extends ItemBasic
|
||||
{
|
||||
|
|
|
@ -10,9 +10,9 @@ import net.minecraftforge.common.ForgeDirection;
|
|||
import net.minecraftforge.oredict.OreDictionary;
|
||||
import buildcraft.api.tools.IToolWrench;
|
||||
import dark.core.common.DarkMain;
|
||||
import dark.core.prefab.IExtraInfo.IExtraItemInfo;
|
||||
import dark.core.interfaces.IExtraInfo.IExtraItemInfo;
|
||||
import dark.core.prefab.ItemBasic;
|
||||
import dark.core.prefab.ModPrefab;
|
||||
import dark.core.prefab.items.ItemBasic;
|
||||
|
||||
public class ItemWrench extends ItemBasic implements IToolWrench, IExtraItemInfo
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@ package dark.core.common.transmit;
|
|||
|
||||
import net.minecraft.util.Icon;
|
||||
import dark.core.common.CoreRecipeLoader;
|
||||
import dark.core.prefab.items.ItemBlockHolder;
|
||||
import dark.core.prefab.ItemBlockHolder;
|
||||
|
||||
public class ItemBlockWire extends ItemBlockHolder
|
||||
{
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
package dark.core.prefab.damage;
|
||||
package dark.core.interfaces;
|
||||
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import dark.core.interfaces.IBlockActivated;
|
||||
|
||||
/** Used by tiles that want to pretend to be living objects. Will require the use of this interface
|
||||
* as well spawning a EntityTileDamage entity as its location. Then entity if larger than the tile
|
|
@ -1,4 +1,4 @@
|
|||
package dark.core.prefab;
|
||||
package dark.core.interfaces;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
|
@ -1,8 +1,7 @@
|
|||
package dark.core.prefab;
|
||||
package dark.core.interfaces;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import universalelectricity.core.vector.Vector3;
|
||||
import dark.core.interfaces.IBlockActivated;
|
||||
|
||||
/** Interface to be applied to tile entity blocks that occupies more than one block space. Useful for
|
||||
* large machines.
|
|
@ -1,4 +1,4 @@
|
|||
package dark.core.prefab.entity;
|
||||
package dark.core.prefab;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
|
@ -1,4 +1,4 @@
|
|||
package dark.core.prefab.entity;
|
||||
package dark.core.prefab;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
|
@ -1,4 +1,4 @@
|
|||
package dark.core.prefab.entity;
|
||||
package dark.core.prefab;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
|
@ -20,7 +20,7 @@ import com.google.common.io.ByteArrayDataOutput;
|
|||
import cpw.mods.fml.common.registry.IEntityAdditionalSpawnData;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import dark.core.prefab.damage.IDamageableTile;
|
||||
import dark.core.interfaces.IDamageableTile;
|
||||
|
||||
/** Entity designed to take damage and apply it to the tile from an Entity. Simulates the tile is
|
||||
* alive and can be harmed by normal AIs without additional code.
|
|
@ -1,60 +0,0 @@
|
|||
package dark.core.prefab;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
import net.minecraftforge.fluids.FluidTank;
|
||||
|
||||
/** Selective fluid version of the FluidTank
|
||||
*
|
||||
* @author DarkGuardsman */
|
||||
public class FluidSelectiveTank extends FluidTank
|
||||
{
|
||||
protected List<Fluid> fluidList = new ArrayList<Fluid>();
|
||||
|
||||
public FluidSelectiveTank(int capacity)
|
||||
{
|
||||
super(capacity);
|
||||
}
|
||||
|
||||
public FluidSelectiveTank(FluidStack stack, int capacity)
|
||||
{
|
||||
super(stack, capacity);
|
||||
}
|
||||
|
||||
public FluidSelectiveTank(Fluid fluid, int amount, int capacity)
|
||||
{
|
||||
super(fluid, amount, capacity);
|
||||
}
|
||||
|
||||
public FluidSelectiveTank setFluidList(List<Fluid> fluid)
|
||||
{
|
||||
this.fluidList = fluid;
|
||||
return this;
|
||||
}
|
||||
|
||||
public FluidSelectiveTank addFluidToList(Fluid fluid)
|
||||
{
|
||||
if (fluid != null)
|
||||
{
|
||||
this.getList().add(fluid);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public List<Fluid> getList()
|
||||
{
|
||||
if (this.fluidList == null)
|
||||
{
|
||||
this.fluidList = new ArrayList<Fluid>();
|
||||
}
|
||||
return this.fluidList;
|
||||
}
|
||||
|
||||
public boolean canAcceptFluid(Fluid fluid)
|
||||
{
|
||||
return fluid != null && this.getList().contains(fluid);
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package dark.core.prefab.items;
|
||||
package dark.core.prefab;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
import net.minecraft.item.Item;
|
|
@ -1,4 +1,4 @@
|
|||
package dark.core.prefab.items;
|
||||
package dark.core.prefab;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.ItemBlock;
|
|
@ -1,4 +1,4 @@
|
|||
package dark.core.prefab.damage;
|
||||
package dark.core.prefab;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLiving;
|
|
@ -21,7 +21,7 @@ import cpw.mods.fml.relauncher.SideOnly;
|
|||
import dark.api.parts.INetworkPart;
|
||||
import dark.core.common.DarkMain;
|
||||
import dark.core.interfaces.IBlockActivated;
|
||||
import dark.core.prefab.IExtraInfo.IExtraBlockInfo;
|
||||
import dark.core.interfaces.IExtraInfo.IExtraBlockInfo;
|
||||
import dark.core.prefab.ModPrefab;
|
||||
import dark.core.registration.ModObjectRegistry.BlockBuildData;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import com.builtbroken.common.Pair;
|
|||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import dark.core.common.DarkMain;
|
||||
import dark.core.prefab.IExtraInfo.IExtraBlockInfo;
|
||||
import dark.core.interfaces.IExtraInfo.IExtraBlockInfo;
|
||||
import dark.core.prefab.ModPrefab;
|
||||
|
||||
public class BlockMulti extends BlockContainer implements IExtraBlockInfo
|
||||
|
|
|
@ -19,9 +19,9 @@ import dark.api.IDisableable;
|
|||
import dark.core.common.DarkMain;
|
||||
import dark.core.interfaces.IExternalInv;
|
||||
import dark.core.interfaces.IInvBox;
|
||||
import dark.core.interfaces.IExtraInfo.IExtraTileEntityInfo;
|
||||
import dark.core.network.ISimplePacketReceiver;
|
||||
import dark.core.network.PacketHandler;
|
||||
import dark.core.prefab.IExtraInfo.IExtraTileEntityInfo;
|
||||
|
||||
public abstract class TileEntityMachine extends TileEntityInv implements ISidedInventory, IExternalInv, IDisableable, ISimplePacketReceiver, IRotatable, IExtraTileEntityInfo
|
||||
{
|
||||
|
|
|
@ -12,8 +12,8 @@ import universalelectricity.prefab.network.IPacketReceiver;
|
|||
|
||||
import com.google.common.io.ByteArrayDataInput;
|
||||
|
||||
import dark.core.interfaces.IMultiBlock;
|
||||
import dark.core.network.PacketHandler;
|
||||
import dark.core.prefab.IMultiBlock;
|
||||
|
||||
/** This is a multiblock to be used for blocks that are bigger than one block.
|
||||
*
|
||||
|
|
|
@ -13,7 +13,7 @@ import com.builtbroken.common.Pair;
|
|||
import cpw.mods.fml.client.registry.ClientRegistry;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import dark.core.prefab.IExtraInfo.IExtraBlockInfo;
|
||||
import dark.core.interfaces.IExtraInfo.IExtraBlockInfo;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class ClientRegistryProxy extends RegistryProxy
|
||||
|
|
|
@ -22,9 +22,9 @@ import cpw.mods.fml.common.Loader;
|
|||
import cpw.mods.fml.common.SidedProxy;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import dark.core.common.DarkMain;
|
||||
import dark.core.prefab.IExtraInfo;
|
||||
import dark.core.prefab.IExtraInfo.IExtraBlockInfo;
|
||||
import dark.core.prefab.IExtraInfo.IExtraItemInfo;
|
||||
import dark.core.interfaces.IExtraInfo;
|
||||
import dark.core.interfaces.IExtraInfo.IExtraBlockInfo;
|
||||
import dark.core.interfaces.IExtraInfo.IExtraItemInfo;
|
||||
import dark.core.prefab.machine.BlockMachine;
|
||||
|
||||
/** Handler to make registering all parts of a mod's objects that are loaded into the game by forge
|
||||
|
|
Loading…
Reference in a new issue