Skip to content

Commit bbe5165

Browse files
committedApr 29, 2014
Implemented more of the core mod. Still non working.
1 parent f4a6d3a commit bbe5165

File tree

84 files changed

+5730
-14
lines changed

Some content is hidden

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

84 files changed

+5730
-14
lines changed
 
+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
package li.cil.oc.api;
2+
3+
import net.minecraft.item.ItemBlock;
4+
import net.minecraft.item.ItemStack;
5+
6+
/**
7+
* Item stacks for all blocks OpenComputers defines.
8+
* </p>
9+
* The underlying items of those are all of type {@link ItemBlock}, so you can
10+
* use that to get the block ID if required.
11+
*/
12+
public final class Blocks {
13+
public static ItemStack
14+
AccessPoint,
15+
Adapter,
16+
Cable,
17+
Capacitor,
18+
Charger,
19+
CaseTier1,
20+
CaseTier2,
21+
CaseTier3,
22+
DiskDrive,
23+
Keyboard,
24+
HologramProjector,
25+
PowerConverter,
26+
PowerDistributor,
27+
RedstoneIO,
28+
Robot,
29+
ScreenTier1,
30+
ScreenTier2,
31+
ScreenTier3,
32+
ServerRack,
33+
Switch;
34+
35+
private Blocks() {
36+
}
37+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package li.cil.oc.api;
2+
3+
import net.minecraft.creativetab.CreativeTabs;
4+
5+
/**
6+
* Allows access to the creative tab used by OpenComputers.
7+
*/
8+
public final class CreativeTab {
9+
/**
10+
* The creative tab used by OpenComputers.
11+
* <p/>
12+
* Changed to the actual tab if OC is present. Preferably you do
13+
* <em>not</em> try to access this anyway when OpenComputers isn't
14+
* present (don't ship the API in your mod), so don't rely on this!
15+
*/
16+
public static CreativeTabs Instance = CreativeTabs.tabRedstone;
17+
18+
private CreativeTab() {
19+
}
20+
}

0 commit comments

Comments
 (0)