Rename Orientation to ForgeDirection {Damn MCP naming a class Direction already}

This commit is contained in:
LexManos committed 2012-08-15 04:28:09 -07:00
1 parent 035328496c
commit fc430243d1
17 files changed
+56 -56

No files matched your search

@@ -11,8 +11,8 @@
+import net.minecraftforge.common.ForgeHooks;
+import net.minecraftforge.common.MinecraftForge;
+import net.minecraftforge.common.Orientation;
+import static net.minecraftforge.common.Orientation.*;
+import net.minecraftforge.common.ForgeDirection;
+import static net.minecraftforge.common.ForgeDirection.*;
+
public class Block
{
@@ -164,7 +164,7 @@
+ * @param size The side to check
+ * @return True if the block is solid on the specified side.
+ */
+ public boolean isBlockSolidOnSide(World world, int x, int y, int z, Orientation side)
+ public boolean isBlockSolidOnSide(World world, int x, int y, int z, ForgeDirection side)
+ {
+ int meta = world.getBlockMetadata(x, y, z);
+ if (this instanceof BlockStep)
@@ -288,7 +288,7 @@
+ * @param face The face that the fire is coming from
+ * @return A number ranging from 0 to 300 relating used to determine if the block will be consumed by fire
+ */
+ public int getFlammability(IBlockAccess world, int x, int y, int z, int metadata, Orientation face)
+ public int getFlammability(IBlockAccess world, int x, int y, int z, int metadata, ForgeDirection face)
+ {
+ return blockFlammability[blockID];
+ }
@@ -305,7 +305,7 @@
+ * @param face The face that the fire is coming from
+ * @return True if the face can be on fire, false otherwise.
+ */
+ public boolean isFlammable(IBlockAccess world, int x, int y, int z, int metadata, Orientation face)
+ public boolean isFlammable(IBlockAccess world, int x, int y, int z, int metadata, ForgeDirection face)
+ {
+ return getFlammability(world, x, y, z, metadata, face) > 0;
+ }
@@ -322,7 +322,7 @@
+ * @param face The face that the fire is coming from
+ * @return A number that is used to determine the speed of fire growth around the block
+ */
+ public int getFireSpreadSpeed(World world, int x, int y, int z, int metadata, Orientation face)
+ public int getFireSpreadSpeed(World world, int x, int y, int z, int metadata, ForgeDirection face)
+ {
+ return blockFireSpreadSpeed[blockID];
+ }
@@ -340,7 +340,7 @@
+ * @param side The face that the fire is coming from
+ * @return
+ */
+ public boolean isFireSource(World world, int x, int y, int z, int metadata, Orientation side)
+ public boolean isFireSource(World world, int x, int y, int z, int metadata, ForgeDirection side)
+ {
+ if (blockID == Block.netherrack.blockID && side == UP)
+ {