mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-02 10:57:11 +00:00
Added hoppers to block data info
This commit is contained in:
parent
382b6f35ad
commit
0e8508847e
@ -128,6 +128,7 @@ public final class BlockData {
|
||||
case BlockID.BURNING_FURNACE:
|
||||
case BlockID.ENDER_CHEST:
|
||||
case BlockID.TRAPPED_CHEST:
|
||||
case BlockID.HOPPER:
|
||||
switch (data) {
|
||||
case 2: return 5;
|
||||
case 3: return 4;
|
||||
@ -320,6 +321,7 @@ public final class BlockData {
|
||||
case BlockID.BURNING_FURNACE:
|
||||
case BlockID.ENDER_CHEST:
|
||||
case BlockID.TRAPPED_CHEST:
|
||||
case BlockID.HOPPER:
|
||||
switch (data) {
|
||||
case 5: return 2;
|
||||
case 4: return 3;
|
||||
@ -545,6 +547,7 @@ public final class BlockData {
|
||||
case BlockID.BURNING_FURNACE:
|
||||
case BlockID.ENDER_CHEST:
|
||||
case BlockID.TRAPPED_CHEST:
|
||||
case BlockID.HOPPER:
|
||||
switch (data) {
|
||||
case 2:
|
||||
case 3:
|
||||
@ -804,6 +807,7 @@ public final class BlockData {
|
||||
case BlockID.CHEST:
|
||||
case BlockID.ENDER_CHEST:
|
||||
case BlockID.TRAPPED_CHEST:
|
||||
case BlockID.HOPPER:
|
||||
if (data < 2 || data > 5) return -1;
|
||||
return mod((data - 2 + increment), 4) + 2;
|
||||
|
||||
|
@ -627,6 +627,7 @@ public enum BlockType {
|
||||
usesData.add(BlockID.QUARTZ_STAIRS);
|
||||
usesData.add(BlockID.ACTIVATOR_RAIL);
|
||||
usesData.add(BlockID.DROPPER);
|
||||
usesData.add(BlockID.HOPPER);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user