Reformat & remove TODO
This commit is contained in:
@@ -4,7 +4,6 @@ import net.minecraft.util.EnumFacing;
|
|||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
// @todo: move outta API?
|
|
||||||
public interface INetworkNodeHolder {
|
public interface INetworkNodeHolder {
|
||||||
EnumFacing getDirection();
|
EnumFacing getDirection();
|
||||||
|
|
||||||
|
|||||||
@@ -44,9 +44,9 @@ public class BlockController extends BlockBase {
|
|||||||
@Override
|
@Override
|
||||||
protected BlockStateContainer createBlockState() {
|
protected BlockStateContainer createBlockState() {
|
||||||
return createBlockStateBuilder()
|
return createBlockStateBuilder()
|
||||||
.add(TYPE)
|
.add(TYPE)
|
||||||
.add(ENERGY)
|
.add(ENERGY)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -62,7 +62,7 @@ public class BlockController extends BlockBase {
|
|||||||
@Override
|
@Override
|
||||||
public IBlockState getActualState(IBlockState state, IBlockAccess world, BlockPos pos) {
|
public IBlockState getActualState(IBlockState state, IBlockAccess world, BlockPos pos) {
|
||||||
return super.getActualState(state, world, pos)
|
return super.getActualState(state, world, pos)
|
||||||
.withProperty(ENERGY, ((TileController) world.getTileEntity(pos)).getEnergyScaledForDisplay());
|
.withProperty(ENERGY, ((TileController) world.getTileEntity(pos)).getEnergyScaledForDisplay());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -27,14 +27,14 @@ public class BlockDetector extends BlockNode {
|
|||||||
@Override
|
@Override
|
||||||
protected BlockStateContainer createBlockState() {
|
protected BlockStateContainer createBlockState() {
|
||||||
return createBlockStateBuilder()
|
return createBlockStateBuilder()
|
||||||
.add(POWERED)
|
.add(POWERED)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IBlockState getActualState(IBlockState state, IBlockAccess world, BlockPos pos) {
|
public IBlockState getActualState(IBlockState state, IBlockAccess world, BlockPos pos) {
|
||||||
return super.getActualState(state, world, pos)
|
return super.getActualState(state, world, pos)
|
||||||
.withProperty(POWERED, ((TileDetector) world.getTileEntity(pos)).getNode().isPowered());
|
.withProperty(POWERED, ((TileDetector) world.getTileEntity(pos)).getNode().isPowered());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -44,8 +44,8 @@ public class BlockFluidStorage extends BlockNode {
|
|||||||
@Override
|
@Override
|
||||||
protected BlockStateContainer createBlockState() {
|
protected BlockStateContainer createBlockState() {
|
||||||
return createBlockStateBuilder()
|
return createBlockStateBuilder()
|
||||||
.add(TYPE)
|
.add(TYPE)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -39,8 +39,8 @@ public class BlockGrid extends BlockNode {
|
|||||||
@Override
|
@Override
|
||||||
protected BlockStateContainer createBlockState() {
|
protected BlockStateContainer createBlockState() {
|
||||||
return createBlockStateBuilder()
|
return createBlockStateBuilder()
|
||||||
.add(TYPE)
|
.add(TYPE)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -30,15 +30,15 @@ public class BlockSolderer extends BlockNode {
|
|||||||
super.addInformation(stack, player, tooltip, advanced);
|
super.addInformation(stack, player, tooltip, advanced);
|
||||||
|
|
||||||
tooltip.add(I18n.format(
|
tooltip.add(I18n.format(
|
||||||
"block.refinedstorage:solderer.tooltip.0",
|
"block.refinedstorage:solderer.tooltip.0",
|
||||||
TextFormatting.WHITE + I18n.format("block.refinedstorage:controller.0.name") + TextFormatting.GRAY
|
TextFormatting.WHITE + I18n.format("block.refinedstorage:controller.0.name") + TextFormatting.GRAY
|
||||||
));
|
));
|
||||||
|
|
||||||
tooltip.add(I18n.format("block.refinedstorage:solderer.tooltip.1"));
|
tooltip.add(I18n.format("block.refinedstorage:solderer.tooltip.1"));
|
||||||
|
|
||||||
tooltip.add(I18n.format(
|
tooltip.add(I18n.format(
|
||||||
"block.refinedstorage:solderer.tooltip.2",
|
"block.refinedstorage:solderer.tooltip.2",
|
||||||
TextFormatting.WHITE + I18n.format("block.refinedstorage:cable.name") + TextFormatting.GRAY
|
TextFormatting.WHITE + I18n.format("block.refinedstorage:cable.name") + TextFormatting.GRAY
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,8 +44,8 @@ public class BlockStorage extends BlockNode {
|
|||||||
@Override
|
@Override
|
||||||
protected BlockStateContainer createBlockState() {
|
protected BlockStateContainer createBlockState() {
|
||||||
return createBlockStateBuilder()
|
return createBlockStateBuilder()
|
||||||
.add(TYPE)
|
.add(TYPE)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -6,16 +6,16 @@ import net.minecraft.util.math.BlockPos;
|
|||||||
|
|
||||||
public enum EnumPlacementType {
|
public enum EnumPlacementType {
|
||||||
ANY(
|
ANY(
|
||||||
EnumFacing.VALUES
|
EnumFacing.VALUES
|
||||||
),
|
),
|
||||||
ANY_FACE_PLAYER(
|
ANY_FACE_PLAYER(
|
||||||
EnumFacing.VALUES
|
EnumFacing.VALUES
|
||||||
),
|
),
|
||||||
HORIZONTAL(
|
HORIZONTAL(
|
||||||
EnumFacing.NORTH,
|
EnumFacing.NORTH,
|
||||||
EnumFacing.EAST,
|
EnumFacing.EAST,
|
||||||
EnumFacing.SOUTH,
|
EnumFacing.SOUTH,
|
||||||
EnumFacing.WEST
|
EnumFacing.WEST
|
||||||
);
|
);
|
||||||
|
|
||||||
final EnumFacing[] allowed;
|
final EnumFacing[] allowed;
|
||||||
|
|||||||
@@ -97,10 +97,10 @@ public class GuiCraftingMonitor extends GuiBase {
|
|||||||
drawTexture(x, y, 0, 0, screenWidth, screenHeight);
|
drawTexture(x, y, 0, 0, screenWidth, screenHeight);
|
||||||
|
|
||||||
if (itemSelectedX != -1 &&
|
if (itemSelectedX != -1 &&
|
||||||
itemSelectedY != -1 &&
|
itemSelectedY != -1 &&
|
||||||
itemSelected >= 0 &&
|
itemSelected >= 0 &&
|
||||||
itemSelected < getElements().size() &&
|
itemSelected < getElements().size() &&
|
||||||
getElements().get(itemSelected).canDrawSelection()) {
|
getElements().get(itemSelected).canDrawSelection()) {
|
||||||
drawTexture(x + itemSelectedX, y + itemSelectedY, 0, 232, ITEM_WIDTH, ITEM_HEIGHT);
|
drawTexture(x + itemSelectedX, y + itemSelectedY, 0, 232, ITEM_WIDTH, ITEM_HEIGHT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,8 +65,8 @@ public class GuiPriority extends GuiCraftingStart {
|
|||||||
@Override
|
@Override
|
||||||
protected int[] getIncrements() {
|
protected int[] getIncrements() {
|
||||||
return new int[]{
|
return new int[]{
|
||||||
1, 5, 10,
|
1, 5, 10,
|
||||||
-1, -5, -10
|
-1, -5, -10
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -75,9 +75,9 @@ public class GuiReaderWriter extends GuiBase {
|
|||||||
drawTexture(x, y, 0, 0, screenWidth, screenHeight);
|
drawTexture(x, y, 0, 0, screenWidth, screenHeight);
|
||||||
|
|
||||||
if (itemSelectedX != -1 &&
|
if (itemSelectedX != -1 &&
|
||||||
itemSelectedY != -1 &&
|
itemSelectedY != -1 &&
|
||||||
itemSelected >= 0 &&
|
itemSelected >= 0 &&
|
||||||
itemSelected < getChannels().size()) {
|
itemSelected < getChannels().size()) {
|
||||||
drawTexture(x + itemSelectedX, y + itemSelectedY, 0, 216, ITEM_WIDTH, ITEM_HEIGHT);
|
drawTexture(x + itemSelectedX, y + itemSelectedY, 0, 216, ITEM_WIDTH, ITEM_HEIGHT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -84,8 +84,8 @@ public class GuiStorage extends GuiBase {
|
|||||||
public void drawForeground(int mouseX, int mouseY) {
|
public void drawForeground(int mouseX, int mouseY) {
|
||||||
drawString(7, 7, t(gui.getGuiTitle()));
|
drawString(7, 7, t(gui.getGuiTitle()));
|
||||||
drawString(7, 42, gui.getCapacity() == -1 ?
|
drawString(7, 42, gui.getCapacity() == -1 ?
|
||||||
t("misc.refinedstorage:storage.stored_minimal", RSUtils.formatQuantity(gui.getStored())) :
|
t("misc.refinedstorage:storage.stored_minimal", RSUtils.formatQuantity(gui.getStored())) :
|
||||||
t("misc.refinedstorage:storage.stored_capacity_minimal", RSUtils.formatQuantity(gui.getStored()), RSUtils.formatQuantity(gui.getCapacity()))
|
t("misc.refinedstorage:storage.stored_capacity_minimal", RSUtils.formatQuantity(gui.getStored()), RSUtils.formatQuantity(gui.getCapacity()))
|
||||||
);
|
);
|
||||||
|
|
||||||
if (texture.contains("disk_drive")) { // HACK!
|
if (texture.contains("disk_drive")) { // HACK!
|
||||||
@@ -102,8 +102,8 @@ public class GuiStorage extends GuiBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
drawTooltip(mouseX, mouseY, (gui.getCapacity() == -1 ?
|
drawTooltip(mouseX, mouseY, (gui.getCapacity() == -1 ?
|
||||||
t("misc.refinedstorage:storage.stored_minimal", gui.getStored()) :
|
t("misc.refinedstorage:storage.stored_minimal", gui.getStored()) :
|
||||||
t("misc.refinedstorage:storage.stored_capacity_minimal", gui.getStored(), gui.getCapacity())
|
t("misc.refinedstorage:storage.stored_capacity_minimal", gui.getStored(), gui.getCapacity())
|
||||||
) + "\n" + t("misc.refinedstorage:storage.full", full));
|
) + "\n" + t("misc.refinedstorage:storage.full", full));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -202,10 +202,10 @@ public abstract class ItemNetworkItem extends ItemBase implements INetworkItemPr
|
|||||||
|
|
||||||
public boolean isValid(ItemStack stack) {
|
public boolean isValid(ItemStack stack) {
|
||||||
return stack.hasTagCompound()
|
return stack.hasTagCompound()
|
||||||
&& stack.getTagCompound().hasKey(NBT_CONTROLLER_X)
|
&& stack.getTagCompound().hasKey(NBT_CONTROLLER_X)
|
||||||
&& stack.getTagCompound().hasKey(NBT_CONTROLLER_Y)
|
&& stack.getTagCompound().hasKey(NBT_CONTROLLER_Y)
|
||||||
&& stack.getTagCompound().hasKey(NBT_CONTROLLER_Z)
|
&& stack.getTagCompound().hasKey(NBT_CONTROLLER_Z)
|
||||||
&& stack.getTagCompound().hasKey(NBT_DIMENSION_ID);
|
&& stack.getTagCompound().hasKey(NBT_DIMENSION_ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
private class NetworkItemCapabilityProvider implements ICapabilityProvider {
|
private class NetworkItemCapabilityProvider implements ICapabilityProvider {
|
||||||
@@ -218,7 +218,7 @@ public abstract class ItemNetworkItem extends ItemBase implements INetworkItemPr
|
|||||||
@Override
|
@Override
|
||||||
public boolean hasCapability(Capability<?> capability, @Nullable EnumFacing facing) {
|
public boolean hasCapability(Capability<?> capability, @Nullable EnumFacing facing) {
|
||||||
return capability == CapabilityEnergy.ENERGY ||
|
return capability == CapabilityEnergy.ENERGY ||
|
||||||
(IntegrationTesla.isLoaded() && (capability == TeslaCapabilities.CAPABILITY_HOLDER || capability == TeslaCapabilities.CAPABILITY_CONSUMER));
|
(IntegrationTesla.isLoaded() && (capability == TeslaCapabilities.CAPABILITY_HOLDER || capability == TeslaCapabilities.CAPABILITY_CONSUMER));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -28,10 +28,10 @@ public class ItemWirelessGrid extends ItemNetworkItem {
|
|||||||
@Override
|
@Override
|
||||||
public boolean isValid(ItemStack stack) {
|
public boolean isValid(ItemStack stack) {
|
||||||
return super.isValid(stack)
|
return super.isValid(stack)
|
||||||
&& stack.getTagCompound().hasKey(NetworkNodeGrid.NBT_VIEW_TYPE)
|
&& stack.getTagCompound().hasKey(NetworkNodeGrid.NBT_VIEW_TYPE)
|
||||||
&& stack.getTagCompound().hasKey(NetworkNodeGrid.NBT_SORTING_DIRECTION)
|
&& stack.getTagCompound().hasKey(NetworkNodeGrid.NBT_SORTING_DIRECTION)
|
||||||
&& stack.getTagCompound().hasKey(NetworkNodeGrid.NBT_SORTING_TYPE)
|
&& stack.getTagCompound().hasKey(NetworkNodeGrid.NBT_SORTING_TYPE)
|
||||||
&& stack.getTagCompound().hasKey(NetworkNodeGrid.NBT_SEARCH_BOX_MODE);
|
&& stack.getTagCompound().hasKey(NetworkNodeGrid.NBT_SEARCH_BOX_MODE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -55,58 +55,58 @@ public class ProxyClient extends ProxyCommon {
|
|||||||
|
|
||||||
// Item Variants
|
// Item Variants
|
||||||
ModelBakery.registerItemVariants(RSItems.STORAGE_DISK,
|
ModelBakery.registerItemVariants(RSItems.STORAGE_DISK,
|
||||||
new ResourceLocation("refinedstorage:1k_storage_disk"),
|
new ResourceLocation("refinedstorage:1k_storage_disk"),
|
||||||
new ResourceLocation("refinedstorage:4k_storage_disk"),
|
new ResourceLocation("refinedstorage:4k_storage_disk"),
|
||||||
new ResourceLocation("refinedstorage:16k_storage_disk"),
|
new ResourceLocation("refinedstorage:16k_storage_disk"),
|
||||||
new ResourceLocation("refinedstorage:64k_storage_disk"),
|
new ResourceLocation("refinedstorage:64k_storage_disk"),
|
||||||
new ResourceLocation("refinedstorage:creative_storage_disk")
|
new ResourceLocation("refinedstorage:creative_storage_disk")
|
||||||
);
|
);
|
||||||
|
|
||||||
ModelBakery.registerItemVariants(RSItems.STORAGE_PART,
|
ModelBakery.registerItemVariants(RSItems.STORAGE_PART,
|
||||||
new ResourceLocation("refinedstorage:1k_storage_part"),
|
new ResourceLocation("refinedstorage:1k_storage_part"),
|
||||||
new ResourceLocation("refinedstorage:4k_storage_part"),
|
new ResourceLocation("refinedstorage:4k_storage_part"),
|
||||||
new ResourceLocation("refinedstorage:16k_storage_part"),
|
new ResourceLocation("refinedstorage:16k_storage_part"),
|
||||||
new ResourceLocation("refinedstorage:64k_storage_part")
|
new ResourceLocation("refinedstorage:64k_storage_part")
|
||||||
);
|
);
|
||||||
|
|
||||||
ModelBakery.registerItemVariants(RSItems.FLUID_STORAGE_DISK,
|
ModelBakery.registerItemVariants(RSItems.FLUID_STORAGE_DISK,
|
||||||
new ResourceLocation("refinedstorage:64k_fluid_storage_disk"),
|
new ResourceLocation("refinedstorage:64k_fluid_storage_disk"),
|
||||||
new ResourceLocation("refinedstorage:128k_fluid_storage_disk"),
|
new ResourceLocation("refinedstorage:128k_fluid_storage_disk"),
|
||||||
new ResourceLocation("refinedstorage:256k_fluid_storage_disk"),
|
new ResourceLocation("refinedstorage:256k_fluid_storage_disk"),
|
||||||
new ResourceLocation("refinedstorage:512k_fluid_storage_disk"),
|
new ResourceLocation("refinedstorage:512k_fluid_storage_disk"),
|
||||||
new ResourceLocation("refinedstorage:creative_fluid_storage_disk")
|
new ResourceLocation("refinedstorage:creative_fluid_storage_disk")
|
||||||
);
|
);
|
||||||
|
|
||||||
ModelBakery.registerItemVariants(RSItems.FLUID_STORAGE_PART,
|
ModelBakery.registerItemVariants(RSItems.FLUID_STORAGE_PART,
|
||||||
new ResourceLocation("refinedstorage:64k_fluid_storage_part"),
|
new ResourceLocation("refinedstorage:64k_fluid_storage_part"),
|
||||||
new ResourceLocation("refinedstorage:128k_fluid_storage_part"),
|
new ResourceLocation("refinedstorage:128k_fluid_storage_part"),
|
||||||
new ResourceLocation("refinedstorage:256k_fluid_storage_part"),
|
new ResourceLocation("refinedstorage:256k_fluid_storage_part"),
|
||||||
new ResourceLocation("refinedstorage:512k_fluid_storage_part")
|
new ResourceLocation("refinedstorage:512k_fluid_storage_part")
|
||||||
);
|
);
|
||||||
|
|
||||||
ModelBakery.registerItemVariants(RSItems.PROCESSOR,
|
ModelBakery.registerItemVariants(RSItems.PROCESSOR,
|
||||||
new ResourceLocation("refinedstorage:basic_printed_processor"),
|
new ResourceLocation("refinedstorage:basic_printed_processor"),
|
||||||
new ResourceLocation("refinedstorage:improved_printed_processor"),
|
new ResourceLocation("refinedstorage:improved_printed_processor"),
|
||||||
new ResourceLocation("refinedstorage:advanced_printed_processor"),
|
new ResourceLocation("refinedstorage:advanced_printed_processor"),
|
||||||
new ResourceLocation("refinedstorage:basic_processor"),
|
new ResourceLocation("refinedstorage:basic_processor"),
|
||||||
new ResourceLocation("refinedstorage:improved_processor"),
|
new ResourceLocation("refinedstorage:improved_processor"),
|
||||||
new ResourceLocation("refinedstorage:advanced_processor"),
|
new ResourceLocation("refinedstorage:advanced_processor"),
|
||||||
new ResourceLocation("refinedstorage:printed_silicon")
|
new ResourceLocation("refinedstorage:printed_silicon")
|
||||||
);
|
);
|
||||||
|
|
||||||
ModelBakery.registerItemVariants(RSItems.CORE,
|
ModelBakery.registerItemVariants(RSItems.CORE,
|
||||||
new ResourceLocation("refinedstorage:construction_core"),
|
new ResourceLocation("refinedstorage:construction_core"),
|
||||||
new ResourceLocation("refinedstorage:destruction_core")
|
new ResourceLocation("refinedstorage:destruction_core")
|
||||||
);
|
);
|
||||||
|
|
||||||
ModelBakery.registerItemVariants(RSItems.UPGRADE,
|
ModelBakery.registerItemVariants(RSItems.UPGRADE,
|
||||||
new ResourceLocation("refinedstorage:upgrade"),
|
new ResourceLocation("refinedstorage:upgrade"),
|
||||||
new ResourceLocation("refinedstorage:range_upgrade"),
|
new ResourceLocation("refinedstorage:range_upgrade"),
|
||||||
new ResourceLocation("refinedstorage:speed_upgrade"),
|
new ResourceLocation("refinedstorage:speed_upgrade"),
|
||||||
new ResourceLocation("refinedstorage:stack_upgrade"),
|
new ResourceLocation("refinedstorage:stack_upgrade"),
|
||||||
new ResourceLocation("refinedstorage:interdimensional_upgrade"),
|
new ResourceLocation("refinedstorage:interdimensional_upgrade"),
|
||||||
new ResourceLocation("refinedstorage:silk_touch_upgrade"),
|
new ResourceLocation("refinedstorage:silk_touch_upgrade"),
|
||||||
new ResourceLocation("refinedstorage:fortune_upgrade")
|
new ResourceLocation("refinedstorage:fortune_upgrade")
|
||||||
);
|
);
|
||||||
|
|
||||||
// Items
|
// Items
|
||||||
|
|||||||
@@ -229,338 +229,338 @@ public class ProxyCommon {
|
|||||||
|
|
||||||
// Quartz Enriched Iron
|
// Quartz Enriched Iron
|
||||||
GameRegistry.addRecipe(new ItemStack(RSItems.QUARTZ_ENRICHED_IRON, 4),
|
GameRegistry.addRecipe(new ItemStack(RSItems.QUARTZ_ENRICHED_IRON, 4),
|
||||||
"II",
|
"II",
|
||||||
"IQ",
|
"IQ",
|
||||||
'I', new ItemStack(Items.IRON_INGOT),
|
'I', new ItemStack(Items.IRON_INGOT),
|
||||||
'Q', new ItemStack(Items.QUARTZ)
|
'Q', new ItemStack(Items.QUARTZ)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Machine Casing
|
// Machine Casing
|
||||||
GameRegistry.addRecipe(new ItemStack(RSBlocks.MACHINE_CASING),
|
GameRegistry.addRecipe(new ItemStack(RSBlocks.MACHINE_CASING),
|
||||||
"EEE",
|
"EEE",
|
||||||
"E E",
|
"E E",
|
||||||
"EEE",
|
"EEE",
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON)
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Construction Core
|
// Construction Core
|
||||||
GameRegistry.addShapelessRecipe(new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
GameRegistry.addShapelessRecipe(new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
||||||
new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_BASIC),
|
new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_BASIC),
|
||||||
new ItemStack(Items.GLOWSTONE_DUST)
|
new ItemStack(Items.GLOWSTONE_DUST)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Destruction Core
|
// Destruction Core
|
||||||
GameRegistry.addShapelessRecipe(new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_DESTRUCTION),
|
GameRegistry.addShapelessRecipe(new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_DESTRUCTION),
|
||||||
new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_BASIC),
|
new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_BASIC),
|
||||||
new ItemStack(Items.QUARTZ)
|
new ItemStack(Items.QUARTZ)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Relay
|
// Relay
|
||||||
GameRegistry.addShapelessRecipe(new ItemStack(RSBlocks.RELAY),
|
GameRegistry.addShapelessRecipe(new ItemStack(RSBlocks.RELAY),
|
||||||
new ItemStack(RSBlocks.MACHINE_CASING),
|
new ItemStack(RSBlocks.MACHINE_CASING),
|
||||||
new ItemStack(RSBlocks.CABLE),
|
new ItemStack(RSBlocks.CABLE),
|
||||||
new ItemStack(Blocks.REDSTONE_TORCH)
|
new ItemStack(Blocks.REDSTONE_TORCH)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Controller
|
// Controller
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSBlocks.CONTROLLER, 1, EnumControllerType.NORMAL.getId()),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSBlocks.CONTROLLER, 1, EnumControllerType.NORMAL.getId()),
|
||||||
"EDE",
|
"EDE",
|
||||||
"SMS",
|
"SMS",
|
||||||
"ESE",
|
"ESE",
|
||||||
'D', new ItemStack(Items.DIAMOND),
|
'D', new ItemStack(Items.DIAMOND),
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'M', new ItemStack(RSBlocks.MACHINE_CASING),
|
'M', new ItemStack(RSBlocks.MACHINE_CASING),
|
||||||
'S', "itemSilicon"
|
'S', "itemSilicon"
|
||||||
));
|
));
|
||||||
|
|
||||||
// Solderer
|
// Solderer
|
||||||
GameRegistry.addRecipe(new ItemStack(RSBlocks.SOLDERER),
|
GameRegistry.addRecipe(new ItemStack(RSBlocks.SOLDERER),
|
||||||
"ESE",
|
"ESE",
|
||||||
"E E",
|
"E E",
|
||||||
"ESE",
|
"ESE",
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'S', new ItemStack(Blocks.STICKY_PISTON)
|
'S', new ItemStack(Blocks.STICKY_PISTON)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Disk Drive
|
// Disk Drive
|
||||||
API.instance().getSoldererRegistry().addRecipe(API.instance().getSoldererRegistry().createSimpleRecipe(
|
API.instance().getSoldererRegistry().addRecipe(API.instance().getSoldererRegistry().createSimpleRecipe(
|
||||||
new ItemStack(RSBlocks.DISK_DRIVE),
|
new ItemStack(RSBlocks.DISK_DRIVE),
|
||||||
500,
|
500,
|
||||||
new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED),
|
new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED),
|
||||||
new ItemStack(RSBlocks.MACHINE_CASING),
|
new ItemStack(RSBlocks.MACHINE_CASING),
|
||||||
new ItemStack(Blocks.CHEST)
|
new ItemStack(Blocks.CHEST)
|
||||||
));
|
));
|
||||||
|
|
||||||
// Cable
|
// Cable
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSBlocks.CABLE, 12),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSBlocks.CABLE, 12),
|
||||||
"EEE",
|
"EEE",
|
||||||
"GRG",
|
"GRG",
|
||||||
"EEE",
|
"EEE",
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'G', "blockGlass",
|
'G', "blockGlass",
|
||||||
'R', new ItemStack(Items.REDSTONE)
|
'R', new ItemStack(Items.REDSTONE)
|
||||||
));
|
));
|
||||||
|
|
||||||
// Wireless Transmitter
|
// Wireless Transmitter
|
||||||
GameRegistry.addRecipe(new ItemStack(RSBlocks.WIRELESS_TRANSMITTER),
|
GameRegistry.addRecipe(new ItemStack(RSBlocks.WIRELESS_TRANSMITTER),
|
||||||
"EPE",
|
"EPE",
|
||||||
"EME",
|
"EME",
|
||||||
"EAE",
|
"EAE",
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'A', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED),
|
'A', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED),
|
||||||
'P', new ItemStack(Items.ENDER_PEARL),
|
'P', new ItemStack(Items.ENDER_PEARL),
|
||||||
'M', new ItemStack(RSBlocks.MACHINE_CASING)
|
'M', new ItemStack(RSBlocks.MACHINE_CASING)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Grid
|
// Grid
|
||||||
GameRegistry.addRecipe(new ItemStack(RSBlocks.GRID, 1, EnumGridType.NORMAL.getId()),
|
GameRegistry.addRecipe(new ItemStack(RSBlocks.GRID, 1, EnumGridType.NORMAL.getId()),
|
||||||
"ECE",
|
"ECE",
|
||||||
"PMP",
|
"PMP",
|
||||||
"EDE",
|
"EDE",
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED),
|
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED),
|
||||||
'C', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
'C', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
||||||
'D', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_DESTRUCTION),
|
'D', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_DESTRUCTION),
|
||||||
'M', new ItemStack(RSBlocks.MACHINE_CASING)
|
'M', new ItemStack(RSBlocks.MACHINE_CASING)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Crafting Grid
|
// Crafting Grid
|
||||||
API.instance().getSoldererRegistry().addRecipe(API.instance().getSoldererRegistry().createSimpleRecipe(
|
API.instance().getSoldererRegistry().addRecipe(API.instance().getSoldererRegistry().createSimpleRecipe(
|
||||||
new ItemStack(RSBlocks.GRID, 1, EnumGridType.CRAFTING.getId()),
|
new ItemStack(RSBlocks.GRID, 1, EnumGridType.CRAFTING.getId()),
|
||||||
500,
|
500,
|
||||||
new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED),
|
new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED),
|
||||||
new ItemStack(RSBlocks.GRID, 1, EnumGridType.NORMAL.getId()),
|
new ItemStack(RSBlocks.GRID, 1, EnumGridType.NORMAL.getId()),
|
||||||
new ItemStack(Blocks.CRAFTING_TABLE)
|
new ItemStack(Blocks.CRAFTING_TABLE)
|
||||||
));
|
));
|
||||||
|
|
||||||
// Pattern Grid
|
// Pattern Grid
|
||||||
API.instance().getSoldererRegistry().addRecipe(API.instance().getSoldererRegistry().createSimpleRecipe(
|
API.instance().getSoldererRegistry().addRecipe(API.instance().getSoldererRegistry().createSimpleRecipe(
|
||||||
new ItemStack(RSBlocks.GRID, 1, EnumGridType.PATTERN.getId()),
|
new ItemStack(RSBlocks.GRID, 1, EnumGridType.PATTERN.getId()),
|
||||||
500,
|
500,
|
||||||
new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED),
|
new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED),
|
||||||
new ItemStack(RSBlocks.GRID, 1, EnumGridType.NORMAL.getId()),
|
new ItemStack(RSBlocks.GRID, 1, EnumGridType.NORMAL.getId()),
|
||||||
new ItemStack(RSItems.PATTERN)
|
new ItemStack(RSItems.PATTERN)
|
||||||
));
|
));
|
||||||
|
|
||||||
// Fluid Grid
|
// Fluid Grid
|
||||||
API.instance().getSoldererRegistry().addRecipe(API.instance().getSoldererRegistry().createSimpleRecipe(
|
API.instance().getSoldererRegistry().addRecipe(API.instance().getSoldererRegistry().createSimpleRecipe(
|
||||||
new ItemStack(RSBlocks.GRID, 1, EnumGridType.FLUID.getId()),
|
new ItemStack(RSBlocks.GRID, 1, EnumGridType.FLUID.getId()),
|
||||||
500,
|
500,
|
||||||
new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED),
|
new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED),
|
||||||
new ItemStack(RSBlocks.GRID, 1, EnumGridType.NORMAL.getId()),
|
new ItemStack(RSBlocks.GRID, 1, EnumGridType.NORMAL.getId()),
|
||||||
new ItemStack(Items.BUCKET)
|
new ItemStack(Items.BUCKET)
|
||||||
));
|
));
|
||||||
|
|
||||||
// Wireless Grid
|
// Wireless Grid
|
||||||
GameRegistry.addRecipe(new ItemStack(RSItems.WIRELESS_GRID, 1, ItemWirelessGrid.TYPE_NORMAL),
|
GameRegistry.addRecipe(new ItemStack(RSItems.WIRELESS_GRID, 1, ItemWirelessGrid.TYPE_NORMAL),
|
||||||
"EPE",
|
"EPE",
|
||||||
"EGE",
|
"EGE",
|
||||||
"EAE",
|
"EAE",
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'P', new ItemStack(Items.ENDER_PEARL),
|
'P', new ItemStack(Items.ENDER_PEARL),
|
||||||
'G', new ItemStack(RSBlocks.GRID, 1, EnumGridType.NORMAL.getId()),
|
'G', new ItemStack(RSBlocks.GRID, 1, EnumGridType.NORMAL.getId()),
|
||||||
'A', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED)
|
'A', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Wireless Fluid Grid
|
// Wireless Fluid Grid
|
||||||
GameRegistry.addRecipe(new ItemStack(RSItems.WIRELESS_FLUID_GRID, 1, ItemWirelessFluidGrid.TYPE_NORMAL),
|
GameRegistry.addRecipe(new ItemStack(RSItems.WIRELESS_FLUID_GRID, 1, ItemWirelessFluidGrid.TYPE_NORMAL),
|
||||||
"EPE",
|
"EPE",
|
||||||
"EGE",
|
"EGE",
|
||||||
"EAE",
|
"EAE",
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'P', new ItemStack(Items.ENDER_PEARL),
|
'P', new ItemStack(Items.ENDER_PEARL),
|
||||||
'G', new ItemStack(RSBlocks.GRID, 1, EnumGridType.FLUID.getId()),
|
'G', new ItemStack(RSBlocks.GRID, 1, EnumGridType.FLUID.getId()),
|
||||||
'A', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED)
|
'A', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Wireless Crafting Monitor
|
// Wireless Crafting Monitor
|
||||||
GameRegistry.addRecipe(new ItemStack(RSItems.WIRELESS_CRAFTING_MONITOR, 1, ItemWirelessCraftingMonitor.TYPE_NORMAL),
|
GameRegistry.addRecipe(new ItemStack(RSItems.WIRELESS_CRAFTING_MONITOR, 1, ItemWirelessCraftingMonitor.TYPE_NORMAL),
|
||||||
"EPE",
|
"EPE",
|
||||||
"EME",
|
"EME",
|
||||||
"EAE",
|
"EAE",
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'P', new ItemStack(Items.ENDER_PEARL),
|
'P', new ItemStack(Items.ENDER_PEARL),
|
||||||
'M', new ItemStack(RSBlocks.CRAFTING_MONITOR),
|
'M', new ItemStack(RSBlocks.CRAFTING_MONITOR),
|
||||||
'A', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED)
|
'A', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Crafter
|
// Crafter
|
||||||
GameRegistry.addRecipe(new ItemStack(RSBlocks.CRAFTER),
|
GameRegistry.addRecipe(new ItemStack(RSBlocks.CRAFTER),
|
||||||
"ECE",
|
"ECE",
|
||||||
"AMA",
|
"AMA",
|
||||||
"EDE",
|
"EDE",
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'A', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED),
|
'A', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED),
|
||||||
'C', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
'C', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
||||||
'D', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_DESTRUCTION),
|
'D', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_DESTRUCTION),
|
||||||
'M', new ItemStack(RSBlocks.MACHINE_CASING)
|
'M', new ItemStack(RSBlocks.MACHINE_CASING)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Processing Pattern Encoder
|
// Processing Pattern Encoder
|
||||||
GameRegistry.addRecipe(new ItemStack(RSBlocks.PROCESSING_PATTERN_ENCODER),
|
GameRegistry.addRecipe(new ItemStack(RSBlocks.PROCESSING_PATTERN_ENCODER),
|
||||||
"ECE",
|
"ECE",
|
||||||
"PMP",
|
"PMP",
|
||||||
"EFE",
|
"EFE",
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'M', new ItemStack(RSBlocks.MACHINE_CASING),
|
'M', new ItemStack(RSBlocks.MACHINE_CASING),
|
||||||
'P', new ItemStack(RSItems.PATTERN),
|
'P', new ItemStack(RSItems.PATTERN),
|
||||||
'C', new ItemStack(Blocks.CRAFTING_TABLE),
|
'C', new ItemStack(Blocks.CRAFTING_TABLE),
|
||||||
'F', new ItemStack(Blocks.FURNACE)
|
'F', new ItemStack(Blocks.FURNACE)
|
||||||
);
|
);
|
||||||
|
|
||||||
// External Storage
|
// External Storage
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSBlocks.EXTERNAL_STORAGE),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSBlocks.EXTERNAL_STORAGE),
|
||||||
"CED",
|
"CED",
|
||||||
"HMH",
|
"HMH",
|
||||||
"EPE",
|
"EPE",
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'H', "chest",
|
'H', "chest",
|
||||||
'C', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
'C', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
||||||
'D', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_DESTRUCTION),
|
'D', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_DESTRUCTION),
|
||||||
'M', new ItemStack(RSBlocks.CABLE),
|
'M', new ItemStack(RSBlocks.CABLE),
|
||||||
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED)
|
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED)
|
||||||
));
|
));
|
||||||
|
|
||||||
// Importer
|
// Importer
|
||||||
GameRegistry.addShapelessRecipe(new ItemStack(RSBlocks.IMPORTER),
|
GameRegistry.addShapelessRecipe(new ItemStack(RSBlocks.IMPORTER),
|
||||||
new ItemStack(RSBlocks.CABLE),
|
new ItemStack(RSBlocks.CABLE),
|
||||||
new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_DESTRUCTION),
|
new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_DESTRUCTION),
|
||||||
new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED)
|
new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Exporter
|
// Exporter
|
||||||
GameRegistry.addShapelessRecipe(new ItemStack(RSBlocks.EXPORTER),
|
GameRegistry.addShapelessRecipe(new ItemStack(RSBlocks.EXPORTER),
|
||||||
new ItemStack(RSBlocks.CABLE),
|
new ItemStack(RSBlocks.CABLE),
|
||||||
new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
||||||
new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED)
|
new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(RSBlocks.DESTRUCTOR),
|
GameRegistry.addShapedRecipe(new ItemStack(RSBlocks.DESTRUCTOR),
|
||||||
"EDE",
|
"EDE",
|
||||||
"RMR",
|
"RMR",
|
||||||
"EIE",
|
"EIE",
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'D', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_DESTRUCTION),
|
'D', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_DESTRUCTION),
|
||||||
'R', new ItemStack(Items.REDSTONE),
|
'R', new ItemStack(Items.REDSTONE),
|
||||||
'M', new ItemStack(RSBlocks.CABLE),
|
'M', new ItemStack(RSBlocks.CABLE),
|
||||||
'I', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED)
|
'I', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(RSBlocks.CONSTRUCTOR),
|
GameRegistry.addShapedRecipe(new ItemStack(RSBlocks.CONSTRUCTOR),
|
||||||
"ECE",
|
"ECE",
|
||||||
"RMR",
|
"RMR",
|
||||||
"EIE",
|
"EIE",
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'C', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
'C', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
||||||
'R', new ItemStack(Items.REDSTONE),
|
'R', new ItemStack(Items.REDSTONE),
|
||||||
'M', new ItemStack(RSBlocks.CABLE),
|
'M', new ItemStack(RSBlocks.CABLE),
|
||||||
'I', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED)
|
'I', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Detector
|
// Detector
|
||||||
GameRegistry.addRecipe(new ItemStack(RSBlocks.DETECTOR),
|
GameRegistry.addRecipe(new ItemStack(RSBlocks.DETECTOR),
|
||||||
"ECE",
|
"ECE",
|
||||||
"RMR",
|
"RMR",
|
||||||
"EPE",
|
"EPE",
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'R', new ItemStack(Items.REDSTONE),
|
'R', new ItemStack(Items.REDSTONE),
|
||||||
'C', new ItemStack(Items.COMPARATOR),
|
'C', new ItemStack(Items.COMPARATOR),
|
||||||
'M', new ItemStack(RSBlocks.MACHINE_CASING),
|
'M', new ItemStack(RSBlocks.MACHINE_CASING),
|
||||||
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED)
|
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Storage Parts
|
// Storage Parts
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSItems.STORAGE_PART, 1, ItemStoragePart.TYPE_1K),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSItems.STORAGE_PART, 1, ItemStoragePart.TYPE_1K),
|
||||||
"SES",
|
"SES",
|
||||||
"GRG",
|
"GRG",
|
||||||
"SGS",
|
"SGS",
|
||||||
'R', new ItemStack(Items.REDSTONE),
|
'R', new ItemStack(Items.REDSTONE),
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'S', "itemSilicon",
|
'S', "itemSilicon",
|
||||||
'G', "blockGlass"
|
'G', "blockGlass"
|
||||||
));
|
));
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ItemStack(RSItems.STORAGE_PART, 1, ItemStoragePart.TYPE_4K),
|
GameRegistry.addRecipe(new ItemStack(RSItems.STORAGE_PART, 1, ItemStoragePart.TYPE_4K),
|
||||||
"PEP",
|
"PEP",
|
||||||
"SRS",
|
"SRS",
|
||||||
"PSP",
|
"PSP",
|
||||||
'R', new ItemStack(Items.REDSTONE),
|
'R', new ItemStack(Items.REDSTONE),
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_BASIC),
|
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_BASIC),
|
||||||
'S', new ItemStack(RSItems.STORAGE_PART, 1, ItemStoragePart.TYPE_1K)
|
'S', new ItemStack(RSItems.STORAGE_PART, 1, ItemStoragePart.TYPE_1K)
|
||||||
);
|
);
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ItemStack(RSItems.STORAGE_PART, 1, ItemStoragePart.TYPE_16K),
|
GameRegistry.addRecipe(new ItemStack(RSItems.STORAGE_PART, 1, ItemStoragePart.TYPE_16K),
|
||||||
"PEP",
|
"PEP",
|
||||||
"SRS",
|
"SRS",
|
||||||
"PSP",
|
"PSP",
|
||||||
'R', new ItemStack(Items.REDSTONE),
|
'R', new ItemStack(Items.REDSTONE),
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED),
|
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED),
|
||||||
'S', new ItemStack(RSItems.STORAGE_PART, 1, ItemStoragePart.TYPE_4K)
|
'S', new ItemStack(RSItems.STORAGE_PART, 1, ItemStoragePart.TYPE_4K)
|
||||||
);
|
);
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ItemStack(RSItems.STORAGE_PART, 1, ItemStoragePart.TYPE_64K),
|
GameRegistry.addRecipe(new ItemStack(RSItems.STORAGE_PART, 1, ItemStoragePart.TYPE_64K),
|
||||||
"PEP",
|
"PEP",
|
||||||
"SRS",
|
"SRS",
|
||||||
"PSP",
|
"PSP",
|
||||||
'R', new ItemStack(Items.REDSTONE),
|
'R', new ItemStack(Items.REDSTONE),
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED),
|
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED),
|
||||||
'S', new ItemStack(RSItems.STORAGE_PART, 1, ItemStoragePart.TYPE_16K)
|
'S', new ItemStack(RSItems.STORAGE_PART, 1, ItemStoragePart.TYPE_16K)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Fluid Storage Parts
|
// Fluid Storage Parts
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSItems.FLUID_STORAGE_PART, 1, ItemFluidStoragePart.TYPE_64K),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSItems.FLUID_STORAGE_PART, 1, ItemFluidStoragePart.TYPE_64K),
|
||||||
"SES",
|
"SES",
|
||||||
"GRG",
|
"GRG",
|
||||||
"SGS",
|
"SGS",
|
||||||
'R', new ItemStack(Items.BUCKET),
|
'R', new ItemStack(Items.BUCKET),
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'S', "itemSilicon",
|
'S', "itemSilicon",
|
||||||
'G', "blockGlass"
|
'G', "blockGlass"
|
||||||
));
|
));
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSItems.FLUID_STORAGE_PART, 1, ItemFluidStoragePart.TYPE_128K),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSItems.FLUID_STORAGE_PART, 1, ItemFluidStoragePart.TYPE_128K),
|
||||||
"PEP",
|
"PEP",
|
||||||
"SRS",
|
"SRS",
|
||||||
"PSP",
|
"PSP",
|
||||||
'R', new ItemStack(Items.BUCKET),
|
'R', new ItemStack(Items.BUCKET),
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_BASIC),
|
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_BASIC),
|
||||||
'S', new ItemStack(RSItems.FLUID_STORAGE_PART, 1, ItemFluidStoragePart.TYPE_64K)
|
'S', new ItemStack(RSItems.FLUID_STORAGE_PART, 1, ItemFluidStoragePart.TYPE_64K)
|
||||||
));
|
));
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSItems.FLUID_STORAGE_PART, 1, ItemFluidStoragePart.TYPE_256K),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSItems.FLUID_STORAGE_PART, 1, ItemFluidStoragePart.TYPE_256K),
|
||||||
"PEP",
|
"PEP",
|
||||||
"SRS",
|
"SRS",
|
||||||
"PSP",
|
"PSP",
|
||||||
'R', new ItemStack(Items.BUCKET),
|
'R', new ItemStack(Items.BUCKET),
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED),
|
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED),
|
||||||
'S', new ItemStack(RSItems.FLUID_STORAGE_PART, 1, ItemFluidStoragePart.TYPE_128K)
|
'S', new ItemStack(RSItems.FLUID_STORAGE_PART, 1, ItemFluidStoragePart.TYPE_128K)
|
||||||
));
|
));
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSItems.FLUID_STORAGE_PART, 1, ItemFluidStoragePart.TYPE_512K),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSItems.FLUID_STORAGE_PART, 1, ItemFluidStoragePart.TYPE_512K),
|
||||||
"PEP",
|
"PEP",
|
||||||
"SRS",
|
"SRS",
|
||||||
"PSP",
|
"PSP",
|
||||||
'R', new ItemStack(Items.BUCKET),
|
'R', new ItemStack(Items.BUCKET),
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED),
|
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED),
|
||||||
'S', new ItemStack(RSItems.FLUID_STORAGE_PART, 1, ItemFluidStoragePart.TYPE_256K)
|
'S', new ItemStack(RSItems.FLUID_STORAGE_PART, 1, ItemFluidStoragePart.TYPE_256K)
|
||||||
));
|
));
|
||||||
|
|
||||||
// Storage Housing
|
// Storage Housing
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSItems.STORAGE_HOUSING),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSItems.STORAGE_HOUSING),
|
||||||
"GRG",
|
"GRG",
|
||||||
"R R",
|
"R R",
|
||||||
"EEE",
|
"EEE",
|
||||||
'G', "blockGlass",
|
'G', "blockGlass",
|
||||||
'R', new ItemStack(Items.REDSTONE),
|
'R', new ItemStack(Items.REDSTONE),
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON)
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON)
|
||||||
));
|
));
|
||||||
|
|
||||||
// Storage Disks
|
// Storage Disks
|
||||||
@@ -568,18 +568,18 @@ public class ProxyCommon {
|
|||||||
ItemStack disk = StorageItemNBT.createStackWithNBT(new ItemStack(RSItems.STORAGE_DISK, 1, type));
|
ItemStack disk = StorageItemNBT.createStackWithNBT(new ItemStack(RSItems.STORAGE_DISK, 1, type));
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(disk,
|
GameRegistry.addRecipe(new ShapedOreRecipe(disk,
|
||||||
"GRG",
|
"GRG",
|
||||||
"RPR",
|
"RPR",
|
||||||
"EEE",
|
"EEE",
|
||||||
'G', "blockGlass",
|
'G', "blockGlass",
|
||||||
'R', new ItemStack(Items.REDSTONE),
|
'R', new ItemStack(Items.REDSTONE),
|
||||||
'P', new ItemStack(RSItems.STORAGE_PART, 1, type),
|
'P', new ItemStack(RSItems.STORAGE_PART, 1, type),
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON)
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON)
|
||||||
));
|
));
|
||||||
|
|
||||||
GameRegistry.addShapelessRecipe(disk,
|
GameRegistry.addShapelessRecipe(disk,
|
||||||
new ItemStack(RSItems.STORAGE_HOUSING),
|
new ItemStack(RSItems.STORAGE_HOUSING),
|
||||||
new ItemStack(RSItems.STORAGE_PART, 1, type)
|
new ItemStack(RSItems.STORAGE_PART, 1, type)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -588,39 +588,39 @@ public class ProxyCommon {
|
|||||||
ItemStack disk = StorageFluidNBT.createStackWithNBT(new ItemStack(RSItems.FLUID_STORAGE_DISK, 1, type));
|
ItemStack disk = StorageFluidNBT.createStackWithNBT(new ItemStack(RSItems.FLUID_STORAGE_DISK, 1, type));
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(disk,
|
GameRegistry.addRecipe(new ShapedOreRecipe(disk,
|
||||||
"GRG",
|
"GRG",
|
||||||
"RPR",
|
"RPR",
|
||||||
"EEE",
|
"EEE",
|
||||||
'G', "blockGlass",
|
'G', "blockGlass",
|
||||||
'R', new ItemStack(Items.REDSTONE),
|
'R', new ItemStack(Items.REDSTONE),
|
||||||
'P', new ItemStack(RSItems.FLUID_STORAGE_PART, 1, type),
|
'P', new ItemStack(RSItems.FLUID_STORAGE_PART, 1, type),
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON)
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON)
|
||||||
));
|
));
|
||||||
|
|
||||||
GameRegistry.addShapelessRecipe(disk,
|
GameRegistry.addShapelessRecipe(disk,
|
||||||
new ItemStack(RSItems.STORAGE_HOUSING),
|
new ItemStack(RSItems.STORAGE_HOUSING),
|
||||||
new ItemStack(RSItems.FLUID_STORAGE_PART, 1, type)
|
new ItemStack(RSItems.FLUID_STORAGE_PART, 1, type)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pattern
|
// Pattern
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSItems.PATTERN),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSItems.PATTERN),
|
||||||
"GRG",
|
"GRG",
|
||||||
"RGR",
|
"RGR",
|
||||||
"EEE",
|
"EEE",
|
||||||
'G', "blockGlass",
|
'G', "blockGlass",
|
||||||
'R', new ItemStack(Items.REDSTONE),
|
'R', new ItemStack(Items.REDSTONE),
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON)
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON)
|
||||||
));
|
));
|
||||||
|
|
||||||
// Upgrade
|
// Upgrade
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSItems.UPGRADE, 1, 0),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSItems.UPGRADE, 1, 0),
|
||||||
"EGE",
|
"EGE",
|
||||||
"EPE",
|
"EPE",
|
||||||
"EGE",
|
"EGE",
|
||||||
'G', "blockGlass",
|
'G', "blockGlass",
|
||||||
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED),
|
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED),
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON)
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON)
|
||||||
));
|
));
|
||||||
|
|
||||||
API.instance().getSoldererRegistry().addRecipe(new SoldererRecipeUpgrade(ItemUpgrade.TYPE_RANGE));
|
API.instance().getSoldererRegistry().addRecipe(new SoldererRecipeUpgrade(ItemUpgrade.TYPE_RANGE));
|
||||||
@@ -633,11 +633,11 @@ public class ProxyCommon {
|
|||||||
API.instance().getSoldererRegistry().addRecipe(new SoldererRecipeUpgrade(ItemUpgrade.initializeForFortune(3)));
|
API.instance().getSoldererRegistry().addRecipe(new SoldererRecipeUpgrade(ItemUpgrade.initializeForFortune(3)));
|
||||||
|
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(RSItems.UPGRADE, 1, ItemUpgrade.TYPE_STACK),
|
GameRegistry.addShapedRecipe(new ItemStack(RSItems.UPGRADE, 1, ItemUpgrade.TYPE_STACK),
|
||||||
"USU",
|
"USU",
|
||||||
"SUS",
|
"SUS",
|
||||||
"USU",
|
"USU",
|
||||||
'U', new ItemStack(Items.SUGAR),
|
'U', new ItemStack(Items.SUGAR),
|
||||||
'S', new ItemStack(RSItems.UPGRADE, 1, ItemUpgrade.TYPE_SPEED)
|
'S', new ItemStack(RSItems.UPGRADE, 1, ItemUpgrade.TYPE_SPEED)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Storage Blocks
|
// Storage Blocks
|
||||||
@@ -654,117 +654,117 @@ public class ProxyCommon {
|
|||||||
|
|
||||||
// Crafting Monitor
|
// Crafting Monitor
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSBlocks.CRAFTING_MONITOR),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(RSBlocks.CRAFTING_MONITOR),
|
||||||
"EGE",
|
"EGE",
|
||||||
"GMG",
|
"GMG",
|
||||||
"EPE",
|
"EPE",
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'M', new ItemStack(RSBlocks.MACHINE_CASING),
|
'M', new ItemStack(RSBlocks.MACHINE_CASING),
|
||||||
'G', "blockGlass",
|
'G', "blockGlass",
|
||||||
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED)
|
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED)
|
||||||
));
|
));
|
||||||
|
|
||||||
// Interface
|
// Interface
|
||||||
API.instance().getSoldererRegistry().addRecipe(API.instance().getSoldererRegistry().createSimpleRecipe(
|
API.instance().getSoldererRegistry().addRecipe(API.instance().getSoldererRegistry().createSimpleRecipe(
|
||||||
new ItemStack(RSBlocks.INTERFACE),
|
new ItemStack(RSBlocks.INTERFACE),
|
||||||
200,
|
200,
|
||||||
new ItemStack(RSBlocks.IMPORTER),
|
new ItemStack(RSBlocks.IMPORTER),
|
||||||
new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_BASIC),
|
new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_BASIC),
|
||||||
new ItemStack(RSBlocks.EXPORTER)
|
new ItemStack(RSBlocks.EXPORTER)
|
||||||
));
|
));
|
||||||
|
|
||||||
// Fluid Interface
|
// Fluid Interface
|
||||||
API.instance().getSoldererRegistry().addRecipe(API.instance().getSoldererRegistry().createSimpleRecipe(
|
API.instance().getSoldererRegistry().addRecipe(API.instance().getSoldererRegistry().createSimpleRecipe(
|
||||||
new ItemStack(RSBlocks.FLUID_INTERFACE),
|
new ItemStack(RSBlocks.FLUID_INTERFACE),
|
||||||
200,
|
200,
|
||||||
new ItemStack(Items.BUCKET),
|
new ItemStack(Items.BUCKET),
|
||||||
new ItemStack(RSBlocks.INTERFACE),
|
new ItemStack(RSBlocks.INTERFACE),
|
||||||
new ItemStack(Items.BUCKET)
|
new ItemStack(Items.BUCKET)
|
||||||
));
|
));
|
||||||
|
|
||||||
// Grid Filter
|
// Grid Filter
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(RSItems.GRID_FILTER),
|
GameRegistry.addShapedRecipe(new ItemStack(RSItems.GRID_FILTER),
|
||||||
"EPE",
|
"EPE",
|
||||||
"PHP",
|
"PHP",
|
||||||
"EPE",
|
"EPE",
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'P', new ItemStack(Items.PAPER),
|
'P', new ItemStack(Items.PAPER),
|
||||||
'H', new ItemStack(Blocks.HOPPER)
|
'H', new ItemStack(Blocks.HOPPER)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Network Card
|
// Network Card
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(RSItems.NETWORK_CARD),
|
GameRegistry.addShapedRecipe(new ItemStack(RSItems.NETWORK_CARD),
|
||||||
"EEE",
|
"EEE",
|
||||||
"PAP",
|
"PAP",
|
||||||
"EEE",
|
"EEE",
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'P', new ItemStack(Items.PAPER),
|
'P', new ItemStack(Items.PAPER),
|
||||||
'A', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED)
|
'A', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Network Transmitter
|
// Network Transmitter
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(RSBlocks.NETWORK_TRANSMITTER),
|
GameRegistry.addShapedRecipe(new ItemStack(RSBlocks.NETWORK_TRANSMITTER),
|
||||||
"EEE",
|
"EEE",
|
||||||
"CMD",
|
"CMD",
|
||||||
"AAA",
|
"AAA",
|
||||||
'E', new ItemStack(Items.ENDER_PEARL),
|
'E', new ItemStack(Items.ENDER_PEARL),
|
||||||
'C', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
'C', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
||||||
'M', new ItemStack(RSBlocks.MACHINE_CASING),
|
'M', new ItemStack(RSBlocks.MACHINE_CASING),
|
||||||
'D', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_DESTRUCTION),
|
'D', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_DESTRUCTION),
|
||||||
'A', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED)
|
'A', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Network Receiver
|
// Network Receiver
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(RSBlocks.NETWORK_RECEIVER),
|
GameRegistry.addShapedRecipe(new ItemStack(RSBlocks.NETWORK_RECEIVER),
|
||||||
"AAA",
|
"AAA",
|
||||||
"CMD",
|
"CMD",
|
||||||
"EEE",
|
"EEE",
|
||||||
'E', new ItemStack(Items.ENDER_PEARL),
|
'E', new ItemStack(Items.ENDER_PEARL),
|
||||||
'C', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
'C', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
||||||
'M', new ItemStack(RSBlocks.MACHINE_CASING),
|
'M', new ItemStack(RSBlocks.MACHINE_CASING),
|
||||||
'D', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_DESTRUCTION),
|
'D', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_DESTRUCTION),
|
||||||
'A', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED)
|
'A', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Disk Manipulator
|
// Disk Manipulator
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(RSBlocks.DISK_MANIPULATOR),
|
GameRegistry.addShapedRecipe(new ItemStack(RSBlocks.DISK_MANIPULATOR),
|
||||||
"ESE",
|
"ESE",
|
||||||
"CMD",
|
"CMD",
|
||||||
"ESE",
|
"ESE",
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'S', new ItemStack(RSItems.STORAGE_HOUSING),
|
'S', new ItemStack(RSItems.STORAGE_HOUSING),
|
||||||
'C', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
'C', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
||||||
'M', new ItemStack(RSBlocks.MACHINE_CASING),
|
'M', new ItemStack(RSBlocks.MACHINE_CASING),
|
||||||
'D', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_DESTRUCTION)
|
'D', new ItemStack(RSItems.CORE, 1, ItemCore.TYPE_DESTRUCTION)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Wrench
|
// Wrench
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(RSItems.WRENCH),
|
GameRegistry.addShapedRecipe(new ItemStack(RSItems.WRENCH),
|
||||||
"EPE",
|
"EPE",
|
||||||
"EEE",
|
"EEE",
|
||||||
" E ",
|
" E ",
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_BASIC)
|
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_BASIC)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Security Manager
|
// Security Manager
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(RSBlocks.SECURITY_MANAGER),
|
GameRegistry.addShapedRecipe(new ItemStack(RSBlocks.SECURITY_MANAGER),
|
||||||
"ECE",
|
"ECE",
|
||||||
"CMC",
|
"CMC",
|
||||||
"ECE",
|
"ECE",
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED),
|
'P', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED),
|
||||||
'M', new ItemStack(RSBlocks.MACHINE_CASING),
|
'M', new ItemStack(RSBlocks.MACHINE_CASING),
|
||||||
'C', new ItemStack(RSItems.NETWORK_CARD)
|
'C', new ItemStack(RSItems.NETWORK_CARD)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Security Card
|
// Security Card
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(RSItems.SECURITY_CARD),
|
GameRegistry.addShapedRecipe(new ItemStack(RSItems.SECURITY_CARD),
|
||||||
"EEE",
|
"EEE",
|
||||||
"CAC",
|
"CAC",
|
||||||
"EEE",
|
"EEE",
|
||||||
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
'E', new ItemStack(RSItems.QUARTZ_ENRICHED_IRON),
|
||||||
'C', new ItemStack(RSItems.NETWORK_CARD),
|
'C', new ItemStack(RSItems.NETWORK_CARD),
|
||||||
'A', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED)
|
'A', new ItemStack(RSItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -109,9 +109,9 @@ public class TileController extends TileBase implements INetworkMaster, IRedston
|
|||||||
}
|
}
|
||||||
|
|
||||||
ClientNode clientNode = new ClientNode(
|
ClientNode clientNode = new ClientNode(
|
||||||
stack,
|
stack,
|
||||||
1,
|
1,
|
||||||
node.getEnergyUsage()
|
node.getEnergyUsage()
|
||||||
);
|
);
|
||||||
|
|
||||||
if (nodes.contains(clientNode)) {
|
if (nodes.contains(clientNode)) {
|
||||||
@@ -319,8 +319,8 @@ public class TileController extends TileBase implements INetworkMaster, IRedston
|
|||||||
@Override
|
@Override
|
||||||
public void sendItemStorageToClient() {
|
public void sendItemStorageToClient() {
|
||||||
getWorld().getMinecraftServer().getPlayerList().getPlayers().stream()
|
getWorld().getMinecraftServer().getPlayerList().getPlayers().stream()
|
||||||
.filter(player -> isWatchingGrid(player, EnumGridType.NORMAL, EnumGridType.CRAFTING, EnumGridType.PATTERN))
|
.filter(player -> isWatchingGrid(player, EnumGridType.NORMAL, EnumGridType.CRAFTING, EnumGridType.PATTERN))
|
||||||
.forEach(this::sendItemStorageToClient);
|
.forEach(this::sendItemStorageToClient);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -331,15 +331,15 @@ public class TileController extends TileBase implements INetworkMaster, IRedston
|
|||||||
@Override
|
@Override
|
||||||
public void sendItemStorageDeltaToClient(ItemStack stack, int delta) {
|
public void sendItemStorageDeltaToClient(ItemStack stack, int delta) {
|
||||||
getWorld().getMinecraftServer().getPlayerList().getPlayers().stream()
|
getWorld().getMinecraftServer().getPlayerList().getPlayers().stream()
|
||||||
.filter(player -> isWatchingGrid(player, EnumGridType.NORMAL, EnumGridType.CRAFTING, EnumGridType.PATTERN))
|
.filter(player -> isWatchingGrid(player, EnumGridType.NORMAL, EnumGridType.CRAFTING, EnumGridType.PATTERN))
|
||||||
.forEach(player -> RS.INSTANCE.network.sendTo(new MessageGridItemDelta(this, stack, delta), player));
|
.forEach(player -> RS.INSTANCE.network.sendTo(new MessageGridItemDelta(this, stack, delta), player));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendFluidStorageToClient() {
|
public void sendFluidStorageToClient() {
|
||||||
getWorld().getMinecraftServer().getPlayerList().getPlayers().stream()
|
getWorld().getMinecraftServer().getPlayerList().getPlayers().stream()
|
||||||
.filter(player -> isWatchingGrid(player, EnumGridType.FLUID))
|
.filter(player -> isWatchingGrid(player, EnumGridType.FLUID))
|
||||||
.forEach(this::sendFluidStorageToClient);
|
.forEach(this::sendFluidStorageToClient);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -350,8 +350,8 @@ public class TileController extends TileBase implements INetworkMaster, IRedston
|
|||||||
@Override
|
@Override
|
||||||
public void sendFluidStorageDeltaToClient(FluidStack stack, int delta) {
|
public void sendFluidStorageDeltaToClient(FluidStack stack, int delta) {
|
||||||
getWorld().getMinecraftServer().getPlayerList().getPlayers().stream()
|
getWorld().getMinecraftServer().getPlayerList().getPlayers().stream()
|
||||||
.filter(player -> isWatchingGrid(player, EnumGridType.FLUID))
|
.filter(player -> isWatchingGrid(player, EnumGridType.FLUID))
|
||||||
.forEach(player -> RS.INSTANCE.network.sendTo(new MessageGridFluidDelta(stack, delta), player));
|
.forEach(player -> RS.INSTANCE.network.sendTo(new MessageGridFluidDelta(stack, delta), player));
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isWatchingGrid(EntityPlayer player, EnumGridType... types) {
|
private boolean isWatchingGrid(EntityPlayer player, EnumGridType... types) {
|
||||||
@@ -374,8 +374,8 @@ public class TileController extends TileBase implements INetworkMaster, IRedston
|
|||||||
@Override
|
@Override
|
||||||
public void sendCraftingMonitorUpdate() {
|
public void sendCraftingMonitorUpdate() {
|
||||||
List<EntityPlayerMP> watchers = getWorld().getMinecraftServer().getPlayerList().getPlayers().stream()
|
List<EntityPlayerMP> watchers = getWorld().getMinecraftServer().getPlayerList().getPlayers().stream()
|
||||||
.filter(player -> player.openContainer instanceof ContainerCraftingMonitor && pos.equals(((ContainerCraftingMonitor) player.openContainer).getCraftingMonitor().getNetworkPosition()))
|
.filter(player -> player.openContainer instanceof ContainerCraftingMonitor && pos.equals(((ContainerCraftingMonitor) player.openContainer).getCraftingMonitor().getNetworkPosition()))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
if (!watchers.isEmpty()) {
|
if (!watchers.isEmpty()) {
|
||||||
List<ICraftingMonitorElement> elements = craftingManager.getTasks().stream().flatMap(t -> t.getCraftingMonitorElements().stream()).collect(Collectors.toList());
|
List<ICraftingMonitorElement> elements = craftingManager.getTasks().stream().flatMap(t -> t.getCraftingMonitorElements().stream()).collect(Collectors.toList());
|
||||||
@@ -419,10 +419,10 @@ public class TileController extends TileBase implements INetworkMaster, IRedston
|
|||||||
@Override
|
@Override
|
||||||
public void sendReaderWriterChannelUpdate() {
|
public void sendReaderWriterChannelUpdate() {
|
||||||
getWorld().getMinecraftServer().getPlayerList().getPlayers().stream()
|
getWorld().getMinecraftServer().getPlayerList().getPlayers().stream()
|
||||||
.filter(player -> player.openContainer instanceof ContainerReaderWriter &&
|
.filter(player -> player.openContainer instanceof ContainerReaderWriter &&
|
||||||
((ContainerReaderWriter) player.openContainer).getReaderWriter().getNetwork() != null &&
|
((ContainerReaderWriter) player.openContainer).getReaderWriter().getNetwork() != null &&
|
||||||
pos.equals(((ContainerReaderWriter) player.openContainer).getReaderWriter().getNetwork().getPosition()))
|
pos.equals(((ContainerReaderWriter) player.openContainer).getReaderWriter().getNetwork().getPosition()))
|
||||||
.forEach(this::sendReaderWriterChannelUpdate);
|
.forEach(this::sendReaderWriterChannelUpdate);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -783,9 +783,9 @@ public class TileController extends TileBase implements INetworkMaster, IRedston
|
|||||||
@Override
|
@Override
|
||||||
public boolean hasCapability(Capability<?> capability, @Nullable EnumFacing facing) {
|
public boolean hasCapability(Capability<?> capability, @Nullable EnumFacing facing) {
|
||||||
return capability == CapabilityEnergy.ENERGY
|
return capability == CapabilityEnergy.ENERGY
|
||||||
|| (energyTesla != null && (capability == TeslaCapabilities.CAPABILITY_HOLDER || capability == TeslaCapabilities.CAPABILITY_CONSUMER))
|
|| (energyTesla != null && (capability == TeslaCapabilities.CAPABILITY_HOLDER || capability == TeslaCapabilities.CAPABILITY_CONSUMER))
|
||||||
|| capability == CapabilityNetworkNodeProxy.NETWORK_NODE_PROXY_CAPABILITY
|
|| capability == CapabilityNetworkNodeProxy.NETWORK_NODE_PROXY_CAPABILITY
|
||||||
|| super.hasCapability(capability, facing);
|
|| super.hasCapability(capability, facing);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -72,8 +72,8 @@ public class TileDiskDrive extends TileNode<NetworkNodeDiskDrive> {
|
|||||||
state = DISK_STATE_DISCONNECTED;
|
state = DISK_STATE_DISCONNECTED;
|
||||||
} else {
|
} else {
|
||||||
state = getDiskState(
|
state = getDiskState(
|
||||||
itemStorages[i] != null ? itemStorages[i].getStored() : fluidStorages[i].getStored(),
|
itemStorages[i] != null ? itemStorages[i].getStored() : fluidStorages[i].getStored(),
|
||||||
itemStorages[i] != null ? itemStorages[i].getCapacity() : fluidStorages[i].getCapacity()
|
itemStorages[i] != null ? itemStorages[i].getCapacity() : fluidStorages[i].getCapacity()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,12 +40,12 @@ public class TileExporter extends TileNode<NetworkNodeExporter> {
|
|||||||
exporter.markDirty();
|
exporter.markDirty();
|
||||||
|
|
||||||
tile.getWorld().getMinecraftServer().getPlayerList().getPlayers().stream()
|
tile.getWorld().getMinecraftServer().getPlayerList().getPlayers().stream()
|
||||||
.filter(player -> player.openContainer instanceof ContainerExporter && ((ContainerExporter) player.openContainer).getTile().getPos().equals(tile.getPos()))
|
.filter(player -> player.openContainer instanceof ContainerExporter && ((ContainerExporter) player.openContainer).getTile().getPos().equals(tile.getPos()))
|
||||||
.forEach(player -> {
|
.forEach(player -> {
|
||||||
((ContainerExporter) player.openContainer).initSlots();
|
((ContainerExporter) player.openContainer).initSlots();
|
||||||
|
|
||||||
player.openContainer.detectAndSendChanges();
|
player.openContainer.detectAndSendChanges();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}, new ITileDataListener<Boolean>() {
|
}, new ITileDataListener<Boolean>() {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user