Whitespace + general cleanup

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
Bukkit/Spigot
2011-05-14 23:22:54 +02:00
parent 8217ff1836
commit 855f4133b6
216 changed files with 1649 additions and 1637 deletions

View File

@@ -25,7 +25,7 @@ public class Cake extends MaterialData {
/**
* Gets the number of slices eaten from this cake
*
*
* @return The number of slices eaten
*/
public int getSlicesEaten() {
@@ -34,7 +34,7 @@ public class Cake extends MaterialData {
/**
* Gets the number of slices remaining on this cake
*
*
* @return The number of slices remaining
*/
public int getSlicesRemaining() {
@@ -43,7 +43,7 @@ public class Cake extends MaterialData {
/**
* Sets the number of slices eaten from this cake
*
*
* @param n The number of slices eaten
*/
public void setSlicesEaten(int n) {
@@ -54,17 +54,18 @@ public class Cake extends MaterialData {
/**
* Sets the number of slices remaining on this cake
*
*
* @param n The number of slices remaining
*/
public void setSlicesRemaining(int n) {
if (n > 6) n = 6;
if (n > 6) {
n = 6;
}
setData((byte) (6 - n));
}
@Override
public String toString() {
return super.toString() + " " + getSlicesEaten() + "/" + getSlicesRemaining() + " slices eaten/remaining";
}
}