mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-28 15:56:14 +00:00
Big cleanup (begone unchecked warnings!)
This commit is contained in:
1 parent
edceea8922
commit
576362e400
237 files changed
+360
-462
No files matched your search
@@ -77,7 +77,7 @@ public class ItemLexicon extends ItemMod implements ILexicon, IElvenItem {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getSubItems(Item item, CreativeTabs tab, List list) {
|
||||
public void getSubItems(Item item, CreativeTabs tab, List<ItemStack> list) {
|
||||
list.add(new ItemStack(item));
|
||||
ItemStack creative = new ItemStack(item);
|
||||
for(String s : BotaniaAPI.knowledgeTypes.keySet()) {
|
||||
@@ -88,13 +88,13 @@ public class ItemLexicon extends ItemMod implements ILexicon, IElvenItem {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
|
||||
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List<String> par3List, boolean par4) {
|
||||
if(GuiScreen.isShiftKeyDown()) {
|
||||
String edition = EnumChatFormatting.GOLD + String.format(StatCollector.translateToLocal("botaniamisc.edition"), getEdition());
|
||||
if(!edition.isEmpty())
|
||||
par3List.add(edition);
|
||||
|
||||
List<KnowledgeType> typesKnown = new ArrayList();
|
||||
List<KnowledgeType> typesKnown = new ArrayList<>();
|
||||
for(String s : BotaniaAPI.knowledgeTypes.keySet()) {
|
||||
KnowledgeType type = BotaniaAPI.knowledgeTypes.get(s);
|
||||
if(isKnowledgeUnlocked(par1ItemStack, type))
|
||||
|
||||
Reference in new issue
Block a user