mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-22 12:59:49 +00:00
Add generics information from forge where possible
This commit is contained in:
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"));
|
||||
|
||||
Reference in new issue
Block a user