Assorted whitespace fixes

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2017-08-06 09:08:05 +10:00
parent da073e8e66
commit e3d4acc303
50 changed files with 96 additions and 107 deletions

View File

@@ -6,7 +6,7 @@ import org.bukkit.Material;
* Represents the tripwire
*/
public class Tripwire extends MaterialData {
public Tripwire() {
super(Material.TRIPWIRE);
}
@@ -38,7 +38,7 @@ public class Tripwire extends MaterialData {
public boolean isActivated() {
return (getData() & 0x4) != 0;
}
/**
* Set tripwire activated state
*
@@ -50,8 +50,8 @@ public class Tripwire extends MaterialData {
dat |= 0x4;
}
setData((byte) dat);
}
}
/**
* Test if object triggering this tripwire directly
*
@@ -81,6 +81,6 @@ public class Tripwire extends MaterialData {
@Override
public String toString() {
return super.toString() + (isActivated()?" Activated":"") + (isObjectTriggering()?" Triggered":"");
return super.toString() + (isActivated() ? " Activated" : "") + (isObjectTriggering() ? " Triggered" : "");
}
}