Generic cleanup/reformat.

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
CraftBukkit/Spigot
2011-02-02 00:32:18 +01:00
parent 6a7e7141f8
commit f981a18f45
21 changed files with 55 additions and 71 deletions

View File

@@ -134,10 +134,10 @@ public class CraftBlock implements Block {
public int getTypeId() {
return chunk.getHandle().a(this.x & 0xF, this.y & 0x7F, this.z & 0xF);
}
/**
* Gets the light level between 0-15
*
*
* @return light level
*/
public byte getLightLevel() {
@@ -170,8 +170,7 @@ public class CraftBlock implements Block {
* @return Block at the given face
*/
public Block getFace(final BlockFace face, final int distance) {
return getRelative(face.getModX() * distance, face.getModY() * distance,
face.getModZ() * distance);
return getRelative(face.getModX() * distance, face.getModY() * distance, face.getModZ() * distance);
}
/**
@@ -232,11 +231,11 @@ public class CraftBlock implements Block {
public String toString() {
return "CraftBlock{" + "chunk=" + chunk + "x=" + x + "y=" + y + "z=" + z + '}';
}
/**
* Notch uses a 0-5 to mean DOWN, UP, EAST, WEST, NORTH, SOUTH
* in that order all over. This method is convenience to convert for us.
*
*
* @return BlockFace the BlockFace represented by this number
*/
public static BlockFace notchToBlockFace(int notch) {

View File

@@ -125,7 +125,7 @@ public class CraftBlockState implements BlockState {
public void setTypeId(final int type) {
this.type = type;
world.getHandle().e(x, y, z, type);
createData((byte)0);
}

View File

@@ -12,7 +12,7 @@ import org.bukkit.inventory.Inventory;
/**
* Represents a dispenser.
*
*
* @author sk89q
*/
public class CraftDispenser extends CraftBlockState implements Dispenser {

View File

@@ -8,7 +8,7 @@ import org.bukkit.craftbukkit.CraftWorld;
/**
* Represents a note block.
*
*
* @author sk89q
*/
public class CraftNoteBlock extends CraftBlockState implements NoteBlock {