Add Override annotations where appropriate

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2019-04-28 11:37:52 +10:00
parent d66310a2f1
commit 82854b7bd7
176 changed files with 503 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ public class Button extends SimpleAttachableMaterialData implements Redstone {
*
* @return true if powered, otherwise false
*/
@Override
public boolean isPowered() {
return (getData() & 0x8) == 0x8;
}
@@ -50,6 +51,7 @@ public class Button extends SimpleAttachableMaterialData implements Redstone {
*
* @return BlockFace attached to
*/
@Override
public BlockFace getAttachedFace() {
byte data = (byte) (getData() & 0x7);
@@ -79,6 +81,7 @@ public class Button extends SimpleAttachableMaterialData implements Redstone {
/**
* Sets the direction this button is pointing toward
*/
@Override
public void setFacingDirection(BlockFace face) {
byte data = (byte) (getData() & 0x8);