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

@@ -75,10 +75,12 @@ public class CocoaPlant extends MaterialData implements Directional, Attachable
setData((byte) dat);
}
@Override
public BlockFace getAttachedFace() {
return getFacing().getOppositeFace();
}
@Override
public void setFacingDirection(BlockFace face) {
int dat = getData() & 0xC;
switch (face) {
@@ -98,6 +100,7 @@ public class CocoaPlant extends MaterialData implements Directional, Attachable
setData((byte) dat);
}
@Override
public BlockFace getFacing() {
switch (getData() & 0x3) {
case 0: