Added hoppers to block data info

Dieser Commit ist enthalten in:
wizjany 2013-03-25 10:24:18 -04:00
Ursprung 382b6f35ad
Commit 0e8508847e
2 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -128,6 +128,7 @@ public final class BlockData {
case BlockID.BURNING_FURNACE: case BlockID.BURNING_FURNACE:
case BlockID.ENDER_CHEST: case BlockID.ENDER_CHEST:
case BlockID.TRAPPED_CHEST: case BlockID.TRAPPED_CHEST:
case BlockID.HOPPER:
switch (data) { switch (data) {
case 2: return 5; case 2: return 5;
case 3: return 4; case 3: return 4;
@ -320,6 +321,7 @@ public final class BlockData {
case BlockID.BURNING_FURNACE: case BlockID.BURNING_FURNACE:
case BlockID.ENDER_CHEST: case BlockID.ENDER_CHEST:
case BlockID.TRAPPED_CHEST: case BlockID.TRAPPED_CHEST:
case BlockID.HOPPER:
switch (data) { switch (data) {
case 5: return 2; case 5: return 2;
case 4: return 3; case 4: return 3;
@ -545,6 +547,7 @@ public final class BlockData {
case BlockID.BURNING_FURNACE: case BlockID.BURNING_FURNACE:
case BlockID.ENDER_CHEST: case BlockID.ENDER_CHEST:
case BlockID.TRAPPED_CHEST: case BlockID.TRAPPED_CHEST:
case BlockID.HOPPER:
switch (data) { switch (data) {
case 2: case 2:
case 3: case 3:
@ -804,6 +807,7 @@ public final class BlockData {
case BlockID.CHEST: case BlockID.CHEST:
case BlockID.ENDER_CHEST: case BlockID.ENDER_CHEST:
case BlockID.TRAPPED_CHEST: case BlockID.TRAPPED_CHEST:
case BlockID.HOPPER:
if (data < 2 || data > 5) return -1; if (data < 2 || data > 5) return -1;
return mod((data - 2 + increment), 4) + 2; return mod((data - 2 + increment), 4) + 2;

Datei anzeigen

@ -627,6 +627,7 @@ public enum BlockType {
usesData.add(BlockID.QUARTZ_STAIRS); usesData.add(BlockID.QUARTZ_STAIRS);
usesData.add(BlockID.ACTIVATOR_RAIL); usesData.add(BlockID.ACTIVATOR_RAIL);
usesData.add(BlockID.DROPPER); usesData.add(BlockID.DROPPER);
usesData.add(BlockID.HOPPER);
} }
/** /**