Whitespace + general cleanup

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
CraftBukkit/Spigot
2011-05-14 16:29:42 +02:00
parent 045c14c210
commit 776b9efd3e
21 changed files with 101 additions and 102 deletions

View File

@@ -245,11 +245,10 @@ public class CraftBlock implements Block {
BlockFace[] values = BlockFace.values();
for (BlockFace face : values) {
if (
(this.getX() + face.getModX() == block.getX()) &&
(this.getY() + face.getModY() == block.getY()) &&
(this.getZ() + face.getModZ() == block.getZ())
) {
if ((this.getX() + face.getModX() == block.getX()) &&
(this.getY() + face.getModY() == block.getY()) &&
(this.getZ() + face.getModZ() == block.getZ())
) {
return face;
}
}
@@ -286,7 +285,7 @@ public class CraftBlock implements Block {
return BlockFace.SELF;
}
}
public static int blockFaceToNotch(BlockFace face) {
switch(face) {
case DOWN:
@@ -302,7 +301,7 @@ public class CraftBlock implements Block {
case SOUTH:
return 5;
default:
return 7; //Good as anything here, but technically invalid
return 7; // Good as anything here, but technically invalid
}
}
@@ -371,7 +370,7 @@ public class CraftBlock implements Block {
}
@Override
public boolean equals( Object o ) {
public boolean equals(Object o) {
return this == o;
}

View File

@@ -34,8 +34,8 @@ public class CraftBlockState implements BlockState {
createData(block.getData());
}
public static BlockState getBlockState( net.minecraft.server.World world, int x, int y, int z) {
return new CraftBlockState( ((WorldServer) world).getWorld().getBlockAt(x, y, z) );
public static BlockState getBlockState(net.minecraft.server.World world, int x, int y, int z) {
return new CraftBlockState(((WorldServer) world).getWorld().getBlockAt(x, y, z));
}
/**

View File

@@ -9,7 +9,7 @@ import org.bukkit.inventory.Inventory;
/**
* Represents a chest.
*
*
* @author sk89q
*/
public class CraftChest extends CraftBlockState implements Chest {

View File

@@ -9,7 +9,7 @@ import org.bukkit.inventory.Inventory;
/**
* Represents a furnace.
*
*
* @author sk89q
*/
public class CraftFurnace extends CraftBlockState implements Furnace {