Skip to content

Commit 6ff2831

Browse files
committed
Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into OC1.6-MC1.7.10
# Conflicts: # build.properties
2 parents 3eb5dc4 + d5cb508 commit 6ff2831

File tree

171 files changed

+4766
-3507
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+4766
-3507
lines changed

assets/items.psd

8.03 KB
Binary file not shown.

build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
minecraft.version=1.7.10
22
forge.version=10.13.4.1448-1.7.10
33

4-
oc.version=1.6.1
4+
oc.version=1.6.2
55
oc.subversion=
66

77
ae2.version=rv2-beta-26

libs/OpenComputers-JNLua.jar

-87 Bytes
Binary file not shown.

libs/OpenComputers-LuaJ.jar

107 Bytes
Binary file not shown.

src/main/java/li/cil/oc/api/Items.java

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,56 @@ public static ItemInfo get(ItemStack stack) {
5858
* <p/>
5959
* To use some directory in your mod JAR as the directory provided by the
6060
* loot disk, use {@link FileSystem#fromClass} in your callable.
61+
* <p/>
62+
* Call this in the init phase or later, <em>not</em> in pre-init.
6163
*
6264
* @param name the label and identifier to use for the loot disk.
6365
* @param color the color of the disk, as a Minecraft color (so 0-15,
6466
* with 0 being black, 1 red and so on).
6567
* @param factory the callable to call for creating file system instances.
6668
* @return an item stack representing the registered loot disk, to allow
6769
* adding a recipe for your loot disk, for example.
70+
* @deprecated use {@link #registerFloppy(String, int, Callable, boolean)} instead.
6871
*/
72+
@Deprecated
6973
public static ItemStack registerFloppy(String name, int color, Callable<li.cil.oc.api.fs.FileSystem> factory) {
7074
if (API.items != null)
7175
return API.items.registerFloppy(name, color, factory);
7276
return null;
7377
}
7478

79+
/**
80+
* Register a single loot floppy disk.
81+
* <p/>
82+
* The disk will be listed in the creative tab of OpenComputers.
83+
* <p/>
84+
* The specified factory callable will be used to generate a new file
85+
* system when the loot disk is used as a component. The specified name
86+
* will be used as the label for the loot disk, as well as the identifier
87+
* to select the corresponding factory method, so choose wisely.
88+
* <p/>
89+
* To use some directory in your mod JAR as the directory provided by the
90+
* loot disk, use {@link FileSystem#fromClass} in your callable.
91+
* <p/>
92+
* If <tt>doRecipeCycling</tt> is <tt>true</tt>, the floppy disk will be
93+
* included in the floppy disk recipe cycle if that is enabled.
94+
* <p/>
95+
* Call this in the init phase or later, <em>not</em> in pre-init.
96+
*
97+
* @param name the label and identifier to use for the loot disk.
98+
* @param color the color of the disk, as a Minecraft color (so 0-15,
99+
* with 0 being black, 1 red and so on).
100+
* @param factory the callable to call for creating file system instances.
101+
* @param doRecipeCycling whether to include this floppy disk in floppy disk cycling.
102+
* @return an item stack representing the registered loot disk, to allow
103+
* adding a recipe for your loot disk, for example.
104+
*/
105+
public static ItemStack registerFloppy(String name, int color, Callable<li.cil.oc.api.fs.FileSystem> factory, boolean doRecipeCycling) {
106+
if (API.items != null)
107+
return API.items.registerFloppy(name, color, factory, doRecipeCycling);
108+
return null;
109+
}
110+
75111
/**
76112
* Register a single custom EEPROM.
77113
* <p/>

src/main/java/li/cil/oc/api/detail/ItemAPI.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,39 @@ public interface ItemAPI {
5151
* @param factory the callable to call for creating file system instances.
5252
* @return an item stack representing the registered loot disk, to allow
5353
* adding a recipe for your loot disk, for example.
54+
* @deprecated use {@link #registerFloppy(String, int, Callable, boolean)} instead.
5455
*/
56+
@Deprecated
5557
ItemStack registerFloppy(String name, int color, Callable<li.cil.oc.api.fs.FileSystem> factory);
5658

59+
/**
60+
* Register a single loot floppy disk.
61+
* <p/>
62+
* The disk will be listed in the creative tab of OpenComputers.
63+
* <p/>
64+
* The specified factory callable will be used to generate a new file
65+
* system when the loot disk is used as a component. The specified name
66+
* will be used as the label for the loot disk, as well as the identifier
67+
* to select the corresponding factory method, so choose wisely.
68+
* <p/>
69+
* To use some directory in your mod JAR as the directory provided by the
70+
* loot disk, use {@link FileSystem#fromClass} in your callable.
71+
* <p/>
72+
* If <tt>doRecipeCycling</tt> is <tt>true</tt>, the floppy disk will be
73+
* included in the floppy disk recipe cycle if that is enabled.
74+
* <p/>
75+
* Call this in the init phase or later, <em>not</em> in pre-init.
76+
*
77+
* @param name the label and identifier to use for the loot disk.
78+
* @param color the color of the disk, as a Minecraft color (so 0-15,
79+
* with 0 being black, 1 red and so on).
80+
* @param factory the callable to call for creating file system instances.
81+
* @param doRecipeCycling whether to include this floppy disk in floppy disk cycling.
82+
* @return an item stack representing the registered loot disk, to allow
83+
* adding a recipe for your loot disk, for example.
84+
*/
85+
ItemStack registerFloppy(String name, int color, Callable<li.cil.oc.api.fs.FileSystem> factory, boolean doRecipeCycling);
86+
5787
/**
5888
* Register a single custom EEPROM.
5989
* <p/>

src/main/java/li/cil/oc/api/network/Network.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public interface Network {
103103
Iterable<Node> nodes();
104104

105105
/**
106-
* The list of addressed nodes in the network visible to the specified node.
106+
* The list of addressed nodes in the network reachable by the specified node.
107107
* <p/>
108108
* This does <em>not</em> include nodes with a visibility of <tt>None</tt>
109109
* or a visibility of <tt>Neighbors</tt> when there is no direct connection

src/main/resources/application.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,10 @@ opencomputers {
807807

808808
# Energy consumed when reconfiguring nanomachines.
809809
nanomachinesReconfigure: 5000
810+
811+
# Energy consumed by a MFU per tick while connected.
812+
# Similarly to `wirelessCostPerRange`, this is multiplied with the distance to the bound block.
813+
mfuRelay: 1
810814
}
811815

812816
# The rate at which different blocks accept external power. All of these
@@ -1345,6 +1349,9 @@ opencomputers {
13451349
# The maximum range between the drone/robot and a villager for a trade to
13461350
# be performed by the trading upgrade
13471351
tradingRange: 8.0
1352+
1353+
# Radius the MFU is able to operate in
1354+
mfuRange: 3
13481355
}
13491356

13501357
# Settings for mod integration (the mod previously known as OpenComponents).

src/main/resources/assets/opencomputers/doc/en_US/block/adapter.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
The adapter allows [computers](../general/computer.md) to interact with blocks from vanilla Minecraft or other mods. Supported blocks adjacent to the adapter will show up as components in [computers](../general/computer.md) connected to the adapter.
66

77
In addition to this, the adapter provides a slot for a few select upgrades. For example, the [inventory controller upgrade](../item/inventoryControllerUpgrade.md) allows computers to query more information from an inventory adjacent to the adapter, similar to when the upgrade is installed in a device (such as a [robot](robot.md) or [drone](../item/drone.md)), and a [tank controller upgrade](../item/tankControllerUpgrade.md) provides similar functionality for fluid tanks next to the adapter.
8+
Furthermore, you can insert a bound [MFU](../item/mfu.md) to interact with blocks a few spaces away.

src/main/resources/assets/opencomputers/doc/en_US/item/debugCard.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@
55
The debug card is a creative-only item that was originally only intended to make debugging things easier, by automating some processes. It has since gotten a bunch more functionality, making it quite useful for custom map-making.
66

77
Note that you can use sneak-activate while holding the card to bind it to you or unbind it, meaning `runCommand` will be performed using your permission levels instead of the default OpenComputers ones.
8+
9+
A debug card can receive messages similar to a [linked card](linkedCard.md), firing a `debug_message` event. You can send such a message using either another debug card's `sendDebugMessage` or the Minecraft command `/oc_sendDebugMessage` (or `/oc_sdbg`).

0 commit comments

Comments
 (0)