fix missing case warnings
This commit is contained in:
parent
15a79bdd7e
commit
bd5eed5543
|
@ -294,8 +294,9 @@ public class ArenaClass
|
|||
case ENDER_CHEST:
|
||||
case SHULKER_SHELL:
|
||||
return true;
|
||||
default:
|
||||
return type.name().endsWith("SHULKER_BOX");
|
||||
}
|
||||
return type.name().endsWith("SHULKER_BOX");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1402,6 +1402,9 @@ public class ArenaImpl implements Arena
|
|||
case PRIMED_TNT:
|
||||
case SHULKER_BULLET:
|
||||
e.remove();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -329,6 +329,8 @@ public class ArenaListener
|
|||
case SNOW:
|
||||
event.setCancelled(true);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -354,6 +356,8 @@ public class ArenaListener
|
|||
case LAVA:
|
||||
event.setCancelled(true);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -410,6 +414,8 @@ public class ArenaListener
|
|||
}
|
||||
return;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// If not custom, we probably don't want it, so get rid of it
|
||||
|
|
|
@ -328,8 +328,9 @@ public class SetupCommand implements Command, Listener {
|
|||
switch (action) {
|
||||
case LEFT_CLICK_BLOCK: regions(lower, loc); return true;
|
||||
case RIGHT_CLICK_BLOCK: regions(upper, loc); return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private boolean warps(PlayerInteractEvent event) {
|
||||
|
@ -350,8 +351,9 @@ public class SetupCommand implements Command, Listener {
|
|||
}
|
||||
next = formatYellow("Current warp: %s", warpArray[warpIndex]);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private boolean spawns(PlayerInteractEvent event) {
|
||||
|
@ -364,8 +366,9 @@ public class SetupCommand implements Command, Listener {
|
|||
switch (event.getAction()) {
|
||||
case LEFT_CLICK_BLOCK: spawns(l, true); return true;
|
||||
case RIGHT_CLICK_BLOCK: spawns(l, false); return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private boolean chests(PlayerInteractEvent event) {
|
||||
|
@ -377,8 +380,9 @@ public class SetupCommand implements Command, Listener {
|
|||
switch (event.getAction()) {
|
||||
case LEFT_CLICK_BLOCK: chests(b, true); return true;
|
||||
case RIGHT_CLICK_BLOCK: chests(b, false); return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private void fix(Location loc) {
|
||||
|
|
|
@ -266,6 +266,8 @@ public class Leaderboard
|
|||
case SOUTH: return BlockFace.EAST;
|
||||
case WEST: return BlockFace.SOUTH;
|
||||
case EAST: return BlockFace.NORTH;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
|
Loading…
Reference in New Issue