mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 04:32:26 +00:00
cleanup after enabling modern & generic. Primarily changing raw lists to their correct type, changing to pattern variable & enhanced switch and removing unused/unreachable code + ancient comments.
This commit is contained in:
1 parent
e7dc1d9bd4
commit
a5bec6c22b
52 files changed
+273
-489
No files matched your search
@@ -50,23 +50,18 @@ public class Manual extends CraftingItem {
|
||||
}
|
||||
|
||||
private static String getBookName(int bookItemDamage) {
|
||||
switch (bookItemDamage) {
|
||||
case 0:
|
||||
return "tconstruct.manual.beginner";
|
||||
case 1:
|
||||
return "tconstruct.manual.toolstation";
|
||||
case 2:
|
||||
return "tconstruct.manual.smeltery";
|
||||
case 4:
|
||||
return "tconstruct.manual.weaponry";
|
||||
default:
|
||||
return "tconstruct.manual.diary";
|
||||
}
|
||||
return switch (bookItemDamage) {
|
||||
case 0 -> "tconstruct.manual.beginner";
|
||||
case 1 -> "tconstruct.manual.toolstation";
|
||||
case 2 -> "tconstruct.manual.smeltery";
|
||||
case 4 -> "tconstruct.manual.weaponry";
|
||||
default -> "tconstruct.manual.diary";
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List<String> list, boolean par4) {
|
||||
switch (stack.getItemDamage()) {
|
||||
case 0:
|
||||
list.add("\u00a7o" + StatCollector.translateToLocal("manual1.tooltip"));
|
||||
|
||||
Reference in new issue
Block a user