Add generics information from forge where possible

This commit is contained in:
Bernhard Bonigl committed 2015-12-22 23:44:35 +01:00
1 parent 05c7b3f85f
commit ac6e5d2861
6 files changed
+18 -15

No files matched your search

@@ -40,12 +40,12 @@ public class ItemBlockMeta extends ItemColored {
return super.getUnlocalizedName(stack) + "." + name;
}
public static void setMappingProperty(Block block, IProperty property) {
public static void setMappingProperty(Block block, IProperty<?> property) {
((ItemBlockMeta)Item.getItemFromBlock(block)).mappingProperty = property;
}
@Override
public void addInformation(ItemStack stack, EntityPlayer playerIn, List tooltip, boolean advanced) {
public void addInformation(ItemStack stack, EntityPlayer playerIn, List<String> tooltip, boolean advanced) {
if(StatCollector.canTranslate(this.getUnlocalizedName(stack) + ".tooltip")) {
tooltip.add(EnumChatFormatting.GRAY.toString() +
LocUtils.translateRecursive(this.getUnlocalizedName(stack) + ".tooltip"));