add amount to pattern tooltip

This commit is contained in:
Raoul Van den Berge
2016-02-03 23:38:52 +01:00
parent 41e53e2187
commit d97b555345
3 changed files with 8 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.CraftingManager;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
public class ItemPattern extends ItemBase
@@ -23,7 +24,9 @@ public class ItemPattern extends ItemBase
{
if (isValid(player.worldObj, stack))
{
list.add(getPatternResult(player.worldObj, stack).getDisplayName());
ItemStack result = getPatternResult(player.worldObj, stack);
list.add(StatCollector.translateToLocalFormatted("misc.storagecraft:pattern.tooltip", result.stackSize, result.getDisplayName()));
}
}

View File

@@ -32,6 +32,8 @@ misc.storagecraft:wireless_grid.out_of_range=The Wireless Transmitter is out of
misc.storagecraft:wireless_grid.no_grid.0=There is no Grid found in the network. You need to place a Grid before you can use the Wireless Grid!
misc.storagecraft:wireless_grid.no_grid.1=There is no Crafting Grid found in the network. You need to place a Crafting Grid before you can use the Wireless Crafting Grid!
misc.storagecraft:pattern.tooltip=%dx %s
misc.storagecraft:yes=Yes
misc.storagecraft:no=No
misc.storagecraft:clear=Clear

View File

@@ -32,6 +32,8 @@ misc.storagecraft:wireless_grid.out_of_range=De Draadloze Zender is buiten berei
misc.storagecraft:wireless_grid.no_grid.0=Er is geen Rooster gevonden in het netwerk. Je moet eerst een Rooster plaatsen voor je het Draadloze Rooster kunt gebruiken.
misc.storagecraft:wireless_grid.no_grid.1=Er is geen Crafting Rooster gevonden in het netwerk. Je moet eerst een Crafting Rooster plaatsen voor je het Draadloze Crafting Rooster kunt gebruiken.
misc.storagecraft:pattern.tooltip=%dx %s
misc.storagecraft:yes=Ja
misc.storagecraft:no=Nee
misc.storagecraft:clear=Legen