Fix some stuff

This commit is contained in:
Raoul Van den Berge
2016-03-24 23:32:34 +01:00
parent 782f418364
commit 108373f6eb
73 changed files with 1911 additions and 1548 deletions

View File

@@ -6,7 +6,6 @@ import net.minecraft.nbt.NBTTagCompound;
* Reference implementation of {@link IEnergyStorage}. Use/extend this or implement your own. * Reference implementation of {@link IEnergyStorage}. Use/extend this or implement your own.
* *
* @author King Lemming * @author King Lemming
*
*/ */
public class EnergyStorage implements IEnergyStorage { public class EnergyStorage implements IEnergyStorage {

View File

@@ -10,7 +10,6 @@ import net.minecraft.util.EnumFacing;
* Note that {@link IEnergyHandler} is an extension of this. * Note that {@link IEnergyHandler} is an extension of this.
* *
* @author King Lemming * @author King Lemming
*
*/ */
public interface IEnergyConnection { public interface IEnergyConnection {

View File

@@ -8,19 +8,15 @@ import net.minecraft.item.ItemStack;
* A reference implementation is provided {@link ItemEnergyContainer}. * A reference implementation is provided {@link ItemEnergyContainer}.
* *
* @author King Lemming * @author King Lemming
*
*/ */
public interface IEnergyContainerItem { public interface IEnergyContainerItem {
/** /**
* Adds energy to a container item. Returns the quantity of energy that was accepted. This should always return 0 if the item cannot be externally charged. * Adds energy to a container item. Returns the quantity of energy that was accepted. This should always return 0 if the item cannot be externally charged.
* *
* @param container * @param container ItemStack to be charged.
* ItemStack to be charged. * @param maxReceive Maximum amount of energy to be sent into the item.
* @param maxReceive * @param simulate If TRUE, the charge will only be simulated.
* Maximum amount of energy to be sent into the item.
* @param simulate
* If TRUE, the charge will only be simulated.
* @return Amount of energy that was (or would have been, if simulated) received by the item. * @return Amount of energy that was (or would have been, if simulated) received by the item.
*/ */
int receiveEnergy(ItemStack container, int maxReceive, boolean simulate); int receiveEnergy(ItemStack container, int maxReceive, boolean simulate);
@@ -29,12 +25,9 @@ public interface IEnergyContainerItem {
* Removes energy from a container item. Returns the quantity of energy that was removed. This should always return 0 if the item cannot be externally * Removes energy from a container item. Returns the quantity of energy that was removed. This should always return 0 if the item cannot be externally
* discharged. * discharged.
* *
* @param container * @param container ItemStack to be discharged.
* ItemStack to be discharged. * @param maxExtract Maximum amount of energy to be extracted from the item.
* @param maxExtract * @param simulate If TRUE, the discharge will only be simulated.
* Maximum amount of energy to be extracted from the item.
* @param simulate
* If TRUE, the discharge will only be simulated.
* @return Amount of energy that was (or would have been, if simulated) extracted from the item. * @return Amount of energy that was (or would have been, if simulated) extracted from the item.
*/ */
int extractEnergy(ItemStack container, int maxExtract, boolean simulate); int extractEnergy(ItemStack container, int maxExtract, boolean simulate);

View File

@@ -10,7 +10,6 @@ import net.minecraft.util.EnumFacing;
* Note that {@link IEnergyReceiver} and {@link IEnergyProvider} are extensions of this. * Note that {@link IEnergyReceiver} and {@link IEnergyProvider} are extensions of this.
* *
* @author King Lemming * @author King Lemming
*
*/ */
public interface IEnergyHandler extends IEnergyConnection { public interface IEnergyHandler extends IEnergyConnection {

View File

@@ -9,19 +9,15 @@ import net.minecraft.util.EnumFacing;
* A reference implementation is provided {@link TileEnergyHandler}. * A reference implementation is provided {@link TileEnergyHandler}.
* *
* @author King Lemming * @author King Lemming
*
*/ */
public interface IEnergyProvider extends IEnergyHandler { public interface IEnergyProvider extends IEnergyHandler {
/** /**
* Remove energy from an IEnergyProvider, internal distribution is left entirely to the IEnergyProvider. * Remove energy from an IEnergyProvider, internal distribution is left entirely to the IEnergyProvider.
* *
* @param from * @param from Orientation the energy is extracted from.
* Orientation the energy is extracted from. * @param maxExtract Maximum amount of energy to extract.
* @param maxExtract * @param simulate If TRUE, the extraction will only be simulated.
* Maximum amount of energy to extract.
* @param simulate
* If TRUE, the extraction will only be simulated.
* @return Amount of energy that was (or would have been, if simulated) extracted. * @return Amount of energy that was (or would have been, if simulated) extracted.
*/ */
int extractEnergy(EnumFacing from, int maxExtract, boolean simulate); int extractEnergy(EnumFacing from, int maxExtract, boolean simulate);

View File

@@ -9,19 +9,15 @@ import net.minecraft.util.EnumFacing;
* A reference implementation is provided {@link TileEnergyHandler}. * A reference implementation is provided {@link TileEnergyHandler}.
* *
* @author King Lemming * @author King Lemming
*
*/ */
public interface IEnergyReceiver extends IEnergyHandler { public interface IEnergyReceiver extends IEnergyHandler {
/** /**
* Add energy to an IEnergyReceiver, internal distribution is left entirely to the IEnergyReceiver. * Add energy to an IEnergyReceiver, internal distribution is left entirely to the IEnergyReceiver.
* *
* @param from * @param from Orientation the energy is received from.
* Orientation the energy is received from. * @param maxReceive Maximum amount of energy to receive.
* @param maxReceive * @param simulate If TRUE, the charge will only be simulated.
* Maximum amount of energy to receive.
* @param simulate
* If TRUE, the charge will only be simulated.
* @return Amount of energy that was (or would have been, if simulated) received. * @return Amount of energy that was (or would have been, if simulated) received.
*/ */
int receiveEnergy(EnumFacing from, int maxReceive, boolean simulate); int receiveEnergy(EnumFacing from, int maxReceive, boolean simulate);

View File

@@ -7,17 +7,14 @@ package cofh.api.energy;
* A reference implementation can be found at {@link EnergyStorage}. * A reference implementation can be found at {@link EnergyStorage}.
* *
* @author King Lemming * @author King Lemming
*
*/ */
public interface IEnergyStorage { public interface IEnergyStorage {
/** /**
* Adds energy to the storage. Returns quantity of energy that was accepted. * Adds energy to the storage. Returns quantity of energy that was accepted.
* *
* @param maxReceive * @param maxReceive Maximum amount of energy to be inserted.
* Maximum amount of energy to be inserted. * @param simulate If TRUE, the insertion will only be simulated.
* @param simulate
* If TRUE, the insertion will only be simulated.
* @return Amount of energy that was (or would have been, if simulated) accepted by the storage. * @return Amount of energy that was (or would have been, if simulated) accepted by the storage.
*/ */
int receiveEnergy(int maxReceive, boolean simulate); int receiveEnergy(int maxReceive, boolean simulate);
@@ -25,10 +22,8 @@ public interface IEnergyStorage {
/** /**
* Removes energy from the storage. Returns quantity of energy that was removed. * Removes energy from the storage. Returns quantity of energy that was removed.
* *
* @param maxExtract * @param maxExtract Maximum amount of energy to be extracted.
* Maximum amount of energy to be extracted. * @param simulate If TRUE, the extraction will only be simulated.
* @param simulate
* If TRUE, the extraction will only be simulated.
* @return Amount of energy that was (or would have been, if simulated) extracted from the storage. * @return Amount of energy that was (or would have been, if simulated) extracted from the storage.
*/ */
int extractEnergy(int maxExtract, boolean simulate); int extractEnergy(int maxExtract, boolean simulate);

View File

@@ -8,7 +8,6 @@ import net.minecraft.nbt.NBTTagCompound;
* Reference implementation of {@link IEnergyContainerItem}. Use/extend this or implement your own. * Reference implementation of {@link IEnergyContainerItem}. Use/extend this or implement your own.
* *
* @author King Lemming * @author King Lemming
*
*/ */
public class ItemEnergyContainer extends Item implements IEnergyContainerItem { public class ItemEnergyContainer extends Item implements IEnergyContainerItem {

View File

@@ -6,11 +6,10 @@ import net.minecraft.util.EnumFacing;
/** /**
* Reference implementation of {@link IEnergyReceiver} and {@link IEnergyProvider}. Use/extend this or implement your own. * Reference implementation of {@link IEnergyReceiver} and {@link IEnergyProvider}. Use/extend this or implement your own.
* * <p>
* This class is really meant to summarize how each interface is properly used. * This class is really meant to summarize how each interface is properly used.
* *
* @author King Lemming * @author King Lemming
*
*/ */
public class TileEnergyHandler extends TileEntity implements IEnergyReceiver, IEnergyProvider { public class TileEnergyHandler extends TileEntity implements IEnergyReceiver, IEnergyProvider {

View File

@@ -5,6 +5,6 @@
@API(apiVersion = CoFHAPIProps.VERSION, owner = "CoFHAPI", provides = "CoFHAPI|energy") @API(apiVersion = CoFHAPIProps.VERSION, owner = "CoFHAPI", provides = "CoFHAPI|energy")
package cofh.api.energy; package cofh.api.energy;
import net.minecraftforge.fml.common.API;
import cofh.api.CoFHAPIProps; import cofh.api.CoFHAPIProps;
import net.minecraftforge.fml.common.API;

View File

@@ -2,8 +2,7 @@ package powercrystals.minefactoryreloaded.api;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
public interface IDeepStorageUnit public interface IDeepStorageUnit {
{
/** /**
* @return A populated ItemStack with stackSize for the full amount of materials in the DSU. May have a stackSize > getMaxStackSize(). * @return A populated ItemStack with stackSize for the full amount of materials in the DSU. May have a stackSize > getMaxStackSize().
*/ */

View File

@@ -6,6 +6,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand; import net.minecraft.util.EnumHand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World; import net.minecraft.world.World;
import refinedstorage.RefinedStorage; import refinedstorage.RefinedStorage;
import refinedstorage.RefinedStorageGui; import refinedstorage.RefinedStorageGui;
@@ -22,7 +23,7 @@ public class BlockConstructor extends BlockMachine {
} }
@Override @Override
public boolean onBlockActivated(World world, net.minecraft.util.math.BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) { public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) {
if (!world.isRemote) { if (!world.isRemote) {
player.openGui(RefinedStorage.INSTANCE, RefinedStorageGui.CONSTRUCTOR, world, pos.getX(), pos.getY(), pos.getZ()); player.openGui(RefinedStorage.INSTANCE, RefinedStorageGui.CONSTRUCTOR, world, pos.getX(), pos.getY(), pos.getZ());
} }

View File

@@ -6,6 +6,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand; import net.minecraft.util.EnumHand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World; import net.minecraft.world.World;
import refinedstorage.RefinedStorage; import refinedstorage.RefinedStorage;
import refinedstorage.RefinedStorageGui; import refinedstorage.RefinedStorageGui;
@@ -22,7 +23,7 @@ public class BlockDestructor extends BlockMachine {
} }
@Override @Override
public boolean onBlockActivated(World world, net.minecraft.util.math.BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) { public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) {
if (!world.isRemote) { if (!world.isRemote) {
player.openGui(RefinedStorage.INSTANCE, RefinedStorageGui.DESTRUCTOR, world, pos.getX(), pos.getY(), pos.getZ()); player.openGui(RefinedStorage.INSTANCE, RefinedStorageGui.DESTRUCTOR, world, pos.getX(), pos.getY(), pos.getZ());
} }

View File

@@ -66,7 +66,7 @@ public class BlockDetector extends BlockMachine {
} }
@Override @Override
public boolean onBlockActivated(World world, net.minecraft.util.math.BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) { public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) {
if (!world.isRemote) { if (!world.isRemote) {
player.openGui(RefinedStorage.INSTANCE, RefinedStorageGui.DETECTOR, world, pos.getX(), pos.getY(), pos.getZ()); player.openGui(RefinedStorage.INSTANCE, RefinedStorageGui.DETECTOR, world, pos.getX(), pos.getY(), pos.getZ());
} }

View File

@@ -6,6 +6,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand; import net.minecraft.util.EnumHand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World; import net.minecraft.world.World;
import refinedstorage.RefinedStorage; import refinedstorage.RefinedStorage;
import refinedstorage.RefinedStorageGui; import refinedstorage.RefinedStorageGui;
@@ -22,7 +23,7 @@ public class BlockDiskDrive extends BlockMachine {
} }
@Override @Override
public boolean onBlockActivated(World world, net.minecraft.util.math.BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) { public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) {
if (!world.isRemote) { if (!world.isRemote) {
player.openGui(RefinedStorage.INSTANCE, RefinedStorageGui.DISK_DRIVE, world, pos.getX(), pos.getY(), pos.getZ()); player.openGui(RefinedStorage.INSTANCE, RefinedStorageGui.DISK_DRIVE, world, pos.getX(), pos.getY(), pos.getZ());
} }

View File

@@ -6,6 +6,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand; import net.minecraft.util.EnumHand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World; import net.minecraft.world.World;
import refinedstorage.RefinedStorage; import refinedstorage.RefinedStorage;
import refinedstorage.RefinedStorageGui; import refinedstorage.RefinedStorageGui;
@@ -22,7 +23,7 @@ public class BlockExporter extends BlockMachine {
} }
@Override @Override
public boolean onBlockActivated(World world, net.minecraft.util.math.BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) { public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) {
if (!world.isRemote) { if (!world.isRemote) {
player.openGui(RefinedStorage.INSTANCE, RefinedStorageGui.EXPORTER, world, pos.getX(), pos.getY(), pos.getZ()); player.openGui(RefinedStorage.INSTANCE, RefinedStorageGui.EXPORTER, world, pos.getX(), pos.getY(), pos.getZ());
} }

View File

@@ -6,6 +6,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand; import net.minecraft.util.EnumHand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World; import net.minecraft.world.World;
import refinedstorage.RefinedStorage; import refinedstorage.RefinedStorage;
import refinedstorage.RefinedStorageGui; import refinedstorage.RefinedStorageGui;
@@ -22,7 +23,7 @@ public class BlockExternalStorage extends BlockMachine {
} }
@Override @Override
public boolean onBlockActivated(World world, net.minecraft.util.math.BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) { public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) {
if (!world.isRemote) { if (!world.isRemote) {
player.openGui(RefinedStorage.INSTANCE, RefinedStorageGui.STORAGE, world, pos.getX(), pos.getY(), pos.getZ()); player.openGui(RefinedStorage.INSTANCE, RefinedStorageGui.STORAGE, world, pos.getX(), pos.getY(), pos.getZ());
} }

View File

@@ -6,6 +6,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand; import net.minecraft.util.EnumHand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World; import net.minecraft.world.World;
import refinedstorage.RefinedStorage; import refinedstorage.RefinedStorage;
import refinedstorage.RefinedStorageGui; import refinedstorage.RefinedStorageGui;
@@ -22,7 +23,7 @@ public class BlockImporter extends BlockMachine {
} }
@Override @Override
public boolean onBlockActivated(World world, net.minecraft.util.math.BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) { public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) {
if (!world.isRemote) { if (!world.isRemote) {
player.openGui(RefinedStorage.INSTANCE, RefinedStorageGui.IMPORTER, world, pos.getX(), pos.getY(), pos.getZ()); player.openGui(RefinedStorage.INSTANCE, RefinedStorageGui.IMPORTER, world, pos.getX(), pos.getY(), pos.getZ());
} }

View File

@@ -6,6 +6,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand; import net.minecraft.util.EnumHand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World; import net.minecraft.world.World;
import refinedstorage.RefinedStorage; import refinedstorage.RefinedStorage;
import refinedstorage.RefinedStorageGui; import refinedstorage.RefinedStorageGui;
@@ -22,7 +23,7 @@ public class BlockInterface extends BlockMachine {
} }
@Override @Override
public boolean onBlockActivated(World world, net.minecraft.util.math.BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) { public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) {
if (!world.isRemote) { if (!world.isRemote) {
player.openGui(RefinedStorage.INSTANCE, RefinedStorageGui.INTERFACE, world, pos.getX(), pos.getY(), pos.getZ()); player.openGui(RefinedStorage.INSTANCE, RefinedStorageGui.INTERFACE, world, pos.getX(), pos.getY(), pos.getZ());
} }

View File

@@ -6,6 +6,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHand; import net.minecraft.util.EnumHand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World; import net.minecraft.world.World;
import refinedstorage.RefinedStorage; import refinedstorage.RefinedStorage;
import refinedstorage.RefinedStorageGui; import refinedstorage.RefinedStorageGui;
@@ -22,7 +23,7 @@ public class BlockSolderer extends BlockMachine {
} }
@Override @Override
public boolean onBlockActivated(World world, net.minecraft.util.math.BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) { public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) {
if (!world.isRemote) { if (!world.isRemote) {
player.openGui(RefinedStorage.INSTANCE, RefinedStorageGui.SOLDERER, world, pos.getX(), pos.getY(), pos.getZ()); player.openGui(RefinedStorage.INSTANCE, RefinedStorageGui.SOLDERER, world, pos.getX(), pos.getY(), pos.getZ());
} }

View File

@@ -65,7 +65,7 @@ public class BlockStorage extends BlockMachine {
} }
@Override @Override
public boolean onBlockActivated(World world, net.minecraft.util.math.BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) { public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) {
if (!world.isRemote) { if (!world.isRemote) {
player.openGui(RefinedStorage.INSTANCE, RefinedStorageGui.STORAGE, world, pos.getX(), pos.getY(), pos.getZ()); player.openGui(RefinedStorage.INSTANCE, RefinedStorageGui.STORAGE, world, pos.getX(), pos.getY(), pos.getZ());
} }

View File

@@ -45,7 +45,7 @@ public class BlockWirelessTransmitter extends BlockMachine {
} }
@Override @Override
public boolean onBlockActivated(World world, net.minecraft.util.math.BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) { public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) {
if (!world.isRemote) { if (!world.isRemote) {
player.openGui(RefinedStorage.INSTANCE, RefinedStorageGui.WIRELESS_TRANSMITTER, world, pos.getX(), pos.getY(), pos.getZ()); player.openGui(RefinedStorage.INSTANCE, RefinedStorageGui.WIRELESS_TRANSMITTER, world, pos.getX(), pos.getY(), pos.getZ());
} }

View File

@@ -1,6 +1,5 @@
package refinedstorage.gui; package refinedstorage.gui;
import net.minecraft.inventory.Container;
import refinedstorage.container.ContainerSolderer; import refinedstorage.container.ContainerSolderer;
import refinedstorage.gui.sidebutton.SideButtonRedstoneMode; import refinedstorage.gui.sidebutton.SideButtonRedstoneMode;
import refinedstorage.tile.TileSolderer; import refinedstorage.tile.TileSolderer;

View File

@@ -1,6 +1,5 @@
package refinedstorage.gui; package refinedstorage.gui;
import net.minecraft.inventory.Container;
import refinedstorage.container.ContainerWirelessTransmitter; import refinedstorage.container.ContainerWirelessTransmitter;
import refinedstorage.gui.sidebutton.SideButtonRedstoneMode; import refinedstorage.gui.sidebutton.SideButtonRedstoneMode;
import refinedstorage.tile.TileWirelessTransmitter; import refinedstorage.tile.TileWirelessTransmitter;

View File

@@ -21,6 +21,7 @@ import refinedstorage.network.*;
import refinedstorage.storage.NBTStorage; import refinedstorage.storage.NBTStorage;
import refinedstorage.tile.*; import refinedstorage.tile.*;
import refinedstorage.tile.solderer.*; import refinedstorage.tile.solderer.*;
import static refinedstorage.RefinedStorage.ID; import static refinedstorage.RefinedStorage.ID;
public class CommonProxy { public class CommonProxy {

View File

@@ -9,10 +9,12 @@
"uvlock": true "uvlock": true
}, },
"variants": { "variants": {
"inventory": [{ "inventory": [
{
"model": "refinedstorage:cable", "model": "refinedstorage:cable",
"transform": "forge:default-block" "transform": "forge:default-block"
}], }
],
"north": { "north": {
"true": { "true": {
"submodel": "refinedstorage:cable_north" "submodel": "refinedstorage:cable_north"

View File

@@ -3,94 +3,208 @@
"elements": [ "elements": [
{ {
"name": "Core", "name": "Core",
"from": [6.0, 6.0, 6.0], "from": [
"to": [10.0, 10.0, 10.0], 6.0,
6.0,
6.0
],
"to": [
10.0,
10.0,
10.0
],
"faces": { "faces": {
"north": { "north": {
"texture": "#all", "texture": "#all",
"uv": [4.0, 4.0, 8.0, 8.0] "uv": [
4.0,
4.0,
8.0,
8.0
]
}, },
"east": { "east": {
"texture": "#all", "texture": "#all",
"uv": [0.0, 4.0, 4.0, 8.0] "uv": [
0.0,
4.0,
4.0,
8.0
]
}, },
"south": { "south": {
"texture": "#all", "texture": "#all",
"uv": [12.0, 4.0, 16.0, 8.0] "uv": [
12.0,
4.0,
16.0,
8.0
]
}, },
"west": { "west": {
"texture": "#all", "texture": "#all",
"uv": [8.0, 4.0, 12.0, 8.0] "uv": [
8.0,
4.0,
12.0,
8.0
]
}, },
"up": { "up": {
"texture": "#all", "texture": "#all",
"uv": [8.0, 4.0, 4.0, 0.0] "uv": [
8.0,
4.0,
4.0,
0.0
]
}, },
"down": { "down": {
"texture": "#all", "texture": "#all",
"uv": [12.0, 0.0, 8.0, 4.0] "uv": [
12.0,
0.0,
8.0,
4.0
]
} }
} }
}, },
{ {
"name": "East", "name": "East",
"from": [10.0, 6.0, 6.0], "from": [
"to": [16.0, 10.0, 10.0], 10.0,
6.0,
6.0
],
"to": [
16.0,
10.0,
10.0
],
"faces": { "faces": {
"north": { "north": {
"texture": "#all", "texture": "#all",
"uv": [4.0, 4.0, 8.0, 8.0] "uv": [
4.0,
4.0,
8.0,
8.0
]
}, },
"east": { "east": {
"texture": "#all", "texture": "#all",
"uv": [0.0, 4.0, 4.0, 8.0] "uv": [
0.0,
4.0,
4.0,
8.0
]
}, },
"south": { "south": {
"texture": "#all", "texture": "#all",
"uv": [12.0, 4.0, 16.0, 8.0] "uv": [
12.0,
4.0,
16.0,
8.0
]
}, },
"west": { "west": {
"texture": "#all", "texture": "#all",
"uv": [8.0, 4.0, 12.0, 8.0] "uv": [
8.0,
4.0,
12.0,
8.0
]
}, },
"up": { "up": {
"texture": "#all", "texture": "#all",
"uv": [8.0, 4.0, 4.0, 0.0] "uv": [
8.0,
4.0,
4.0,
0.0
]
}, },
"down": { "down": {
"texture": "#all", "texture": "#all",
"uv": [12.0, 0.0, 8.0, 4.0] "uv": [
12.0,
0.0,
8.0,
4.0
]
} }
} }
}, },
{ {
"name": "West", "name": "West",
"from": [0.0, 6.0, 6.0], "from": [
"to": [6.0, 10.0, 10.0], 0.0,
6.0,
6.0
],
"to": [
6.0,
10.0,
10.0
],
"faces": { "faces": {
"north": { "north": {
"texture": "#all", "texture": "#all",
"uv": [4.0, 4.0, 8.0, 8.0] "uv": [
4.0,
4.0,
8.0,
8.0
]
}, },
"east": { "east": {
"texture": "#all", "texture": "#all",
"uv": [0.0, 4.0, 4.0, 8.0] "uv": [
0.0,
4.0,
4.0,
8.0
]
}, },
"south": { "south": {
"texture": "#all", "texture": "#all",
"uv": [12.0, 4.0, 16.0, 8.0] "uv": [
12.0,
4.0,
16.0,
8.0
]
}, },
"west": { "west": {
"texture": "#all", "texture": "#all",
"uv": [8.0, 4.0, 12.0, 8.0] "uv": [
8.0,
4.0,
12.0,
8.0
]
}, },
"up": { "up": {
"texture": "#all", "texture": "#all",
"uv": [8.0, 4.0, 4.0, 0.0] "uv": [
8.0,
4.0,
4.0,
0.0
]
}, },
"down": { "down": {
"texture": "#all", "texture": "#all",
"uv": [12.0, 0.0, 8.0, 4.0] "uv": [
12.0,
0.0,
8.0,
4.0
]
} }
} }
} }

View File

@@ -3,32 +3,70 @@
"elements": [ "elements": [
{ {
"name": "Core", "name": "Core",
"from": [6.0, 6.0, 6.0], "from": [
"to": [10.0, 10.0, 10.0], 6.0,
6.0,
6.0
],
"to": [
10.0,
10.0,
10.0
],
"faces": { "faces": {
"north": { "north": {
"texture": "#all", "texture": "#all",
"uv": [4.0, 4.0, 8.0, 8.0] "uv": [
4.0,
4.0,
8.0,
8.0
]
}, },
"east": { "east": {
"texture": "#all", "texture": "#all",
"uv": [0.0, 4.0, 4.0, 8.0] "uv": [
0.0,
4.0,
4.0,
8.0
]
}, },
"south": { "south": {
"texture": "#all", "texture": "#all",
"uv": [12.0, 4.0, 16.0, 8.0] "uv": [
12.0,
4.0,
16.0,
8.0
]
}, },
"west": { "west": {
"texture": "#all", "texture": "#all",
"uv": [8.0, 4.0, 12.0, 8.0] "uv": [
8.0,
4.0,
12.0,
8.0
]
}, },
"up": { "up": {
"texture": "#all", "texture": "#all",
"uv": [8.0, 4.0, 4.0, 0.0] "uv": [
8.0,
4.0,
4.0,
0.0
]
}, },
"down": { "down": {
"texture": "#all", "texture": "#all",
"uv": [12.0, 0.0, 8.0, 4.0] "uv": [
12.0,
0.0,
8.0,
4.0
]
} }
} }
} }

View File

@@ -3,32 +3,70 @@
"elements": [ "elements": [
{ {
"name": "Down", "name": "Down",
"from": [6.0, 0.0, 6.0], "from": [
"to": [10.0, 6.0, 10.0], 6.0,
0.0,
6.0
],
"to": [
10.0,
6.0,
10.0
],
"faces": { "faces": {
"north": { "north": {
"texture": "#all", "texture": "#all",
"uv": [4.0, 4.0, 8.0, 8.0] "uv": [
4.0,
4.0,
8.0,
8.0
]
}, },
"east": { "east": {
"texture": "#all", "texture": "#all",
"uv": [0.0, 4.0, 4.0, 8.0] "uv": [
0.0,
4.0,
4.0,
8.0
]
}, },
"south": { "south": {
"texture": "#all", "texture": "#all",
"uv": [12.0, 4.0, 16.0, 8.0] "uv": [
12.0,
4.0,
16.0,
8.0
]
}, },
"west": { "west": {
"texture": "#all", "texture": "#all",
"uv": [8.0, 4.0, 12.0, 8.0] "uv": [
8.0,
4.0,
12.0,
8.0
]
}, },
"up": { "up": {
"texture": "#all", "texture": "#all",
"uv": [8.0, 4.0, 4.0, 0.0] "uv": [
8.0,
4.0,
4.0,
0.0
]
}, },
"down": { "down": {
"texture": "#all", "texture": "#all",
"uv": [12.0, 0.0, 8.0, 4.0] "uv": [
12.0,
0.0,
8.0,
4.0
]
} }
} }
} }

View File

@@ -3,32 +3,70 @@
"elements": [ "elements": [
{ {
"name": "East", "name": "East",
"from": [10.0, 6.0, 6.0], "from": [
"to": [16.0, 10.0, 10.0], 10.0,
6.0,
6.0
],
"to": [
16.0,
10.0,
10.0
],
"faces": { "faces": {
"north": { "north": {
"texture": "#all", "texture": "#all",
"uv": [4.0, 4.0, 8.0, 8.0] "uv": [
4.0,
4.0,
8.0,
8.0
]
}, },
"east": { "east": {
"texture": "#all", "texture": "#all",
"uv": [0.0, 4.0, 4.0, 8.0] "uv": [
0.0,
4.0,
4.0,
8.0
]
}, },
"south": { "south": {
"texture": "#all", "texture": "#all",
"uv": [12.0, 4.0, 16.0, 8.0] "uv": [
12.0,
4.0,
16.0,
8.0
]
}, },
"west": { "west": {
"texture": "#all", "texture": "#all",
"uv": [8.0, 4.0, 12.0, 8.0] "uv": [
8.0,
4.0,
12.0,
8.0
]
}, },
"up": { "up": {
"texture": "#all", "texture": "#all",
"uv": [8.0, 4.0, 4.0, 0.0] "uv": [
8.0,
4.0,
4.0,
0.0
]
}, },
"down": { "down": {
"texture": "#all", "texture": "#all",
"uv": [12.0, 0.0, 8.0, 4.0] "uv": [
12.0,
0.0,
8.0,
4.0
]
} }
} }
} }

View File

@@ -3,32 +3,70 @@
"elements": [ "elements": [
{ {
"name": "North", "name": "North",
"from": [6.0, 6.0, 0.0], "from": [
"to": [10.0, 10.0, 6.0], 6.0,
6.0,
0.0
],
"to": [
10.0,
10.0,
6.0
],
"faces": { "faces": {
"north": { "north": {
"texture": "#all", "texture": "#all",
"uv": [4.0, 4.0, 8.0, 8.0] "uv": [
4.0,
4.0,
8.0,
8.0
]
}, },
"east": { "east": {
"texture": "#all", "texture": "#all",
"uv": [0.0, 4.0, 4.0, 8.0] "uv": [
0.0,
4.0,
4.0,
8.0
]
}, },
"south": { "south": {
"texture": "#all", "texture": "#all",
"uv": [12.0, 4.0, 16.0, 8.0] "uv": [
12.0,
4.0,
16.0,
8.0
]
}, },
"west": { "west": {
"texture": "#all", "texture": "#all",
"uv": [8.0, 4.0, 12.0, 8.0] "uv": [
8.0,
4.0,
12.0,
8.0
]
}, },
"up": { "up": {
"texture": "#all", "texture": "#all",
"uv": [8.0, 4.0, 4.0, 0.0] "uv": [
8.0,
4.0,
4.0,
0.0
]
}, },
"down": { "down": {
"texture": "#all", "texture": "#all",
"uv": [12.0, 0.0, 8.0, 4.0] "uv": [
12.0,
0.0,
8.0,
4.0
]
} }
} }
} }

View File

@@ -3,32 +3,70 @@
"elements": [ "elements": [
{ {
"name": "South", "name": "South",
"from": [6.0, 6.0, 10.0], "from": [
"to": [10.0, 10.0, 16.0], 6.0,
6.0,
10.0
],
"to": [
10.0,
10.0,
16.0
],
"faces": { "faces": {
"north": { "north": {
"texture": "#all", "texture": "#all",
"uv": [4.0, 4.0, 8.0, 8.0] "uv": [
4.0,
4.0,
8.0,
8.0
]
}, },
"east": { "east": {
"texture": "#all", "texture": "#all",
"uv": [0.0, 4.0, 4.0, 8.0] "uv": [
0.0,
4.0,
4.0,
8.0
]
}, },
"south": { "south": {
"texture": "#all", "texture": "#all",
"uv": [12.0, 4.0, 16.0, 8.0] "uv": [
12.0,
4.0,
16.0,
8.0
]
}, },
"west": { "west": {
"texture": "#all", "texture": "#all",
"uv": [8.0, 4.0, 12.0, 8.0] "uv": [
8.0,
4.0,
12.0,
8.0
]
}, },
"up": { "up": {
"texture": "#all", "texture": "#all",
"uv": [8.0, 4.0, 4.0, 0.0] "uv": [
8.0,
4.0,
4.0,
0.0
]
}, },
"down": { "down": {
"texture": "#all", "texture": "#all",
"uv": [12.0, 0.0, 8.0, 4.0] "uv": [
12.0,
0.0,
8.0,
4.0
]
} }
} }
} }

View File

@@ -3,32 +3,70 @@
"elements": [ "elements": [
{ {
"name": "Up", "name": "Up",
"from": [6.0, 10.0, 6.0], "from": [
"to": [10.0, 16.0, 10.0], 6.0,
10.0,
6.0
],
"to": [
10.0,
16.0,
10.0
],
"faces": { "faces": {
"north": { "north": {
"texture": "#all", "texture": "#all",
"uv": [4.0, 4.0, 8.0, 8.0] "uv": [
4.0,
4.0,
8.0,
8.0
]
}, },
"east": { "east": {
"texture": "#all", "texture": "#all",
"uv": [0.0, 4.0, 4.0, 8.0] "uv": [
0.0,
4.0,
4.0,
8.0
]
}, },
"south": { "south": {
"texture": "#all", "texture": "#all",
"uv": [12.0, 4.0, 16.0, 8.0] "uv": [
12.0,
4.0,
16.0,
8.0
]
}, },
"west": { "west": {
"texture": "#all", "texture": "#all",
"uv": [8.0, 4.0, 12.0, 8.0] "uv": [
8.0,
4.0,
12.0,
8.0
]
}, },
"up": { "up": {
"texture": "#all", "texture": "#all",
"uv": [8.0, 4.0, 4.0, 0.0] "uv": [
8.0,
4.0,
4.0,
0.0
]
}, },
"down": { "down": {
"texture": "#all", "texture": "#all",
"uv": [12.0, 0.0, 8.0, 4.0] "uv": [
12.0,
0.0,
8.0,
4.0
]
} }
} }
} }

View File

@@ -3,32 +3,70 @@
"elements": [ "elements": [
{ {
"name": "West", "name": "West",
"from": [0.0, 6.0, 6.0], "from": [
"to": [6.0, 10.0, 10.0], 0.0,
6.0,
6.0
],
"to": [
6.0,
10.0,
10.0
],
"faces": { "faces": {
"north": { "north": {
"texture": "#all", "texture": "#all",
"uv": [4.0, 4.0, 8.0, 8.0] "uv": [
4.0,
4.0,
8.0,
8.0
]
}, },
"east": { "east": {
"texture": "#all", "texture": "#all",
"uv": [0.0, 4.0, 4.0, 8.0] "uv": [
0.0,
4.0,
4.0,
8.0
]
}, },
"south": { "south": {
"texture": "#all", "texture": "#all",
"uv": [12.0, 4.0, 16.0, 8.0] "uv": [
12.0,
4.0,
16.0,
8.0
]
}, },
"west": { "west": {
"texture": "#all", "texture": "#all",
"uv": [8.0, 4.0, 12.0, 8.0] "uv": [
8.0,
4.0,
12.0,
8.0
]
}, },
"up": { "up": {
"texture": "#all", "texture": "#all",
"uv": [8.0, 4.0, 4.0, 0.0] "uv": [
8.0,
4.0,
4.0,
0.0
]
}, },
"down": { "down": {
"texture": "#all", "texture": "#all",
"uv": [12.0, 0.0, 8.0, 4.0] "uv": [
12.0,
0.0,
8.0,
4.0
]
} }
} }
} }