add amount to pattern tooltip
This commit is contained in:
@@ -7,6 +7,7 @@ import net.minecraft.inventory.InventoryCrafting;
|
|||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.item.crafting.CraftingManager;
|
import net.minecraft.item.crafting.CraftingManager;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
|
import net.minecraft.util.StatCollector;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
public class ItemPattern extends ItemBase
|
public class ItemPattern extends ItemBase
|
||||||
@@ -23,7 +24,9 @@ public class ItemPattern extends ItemBase
|
|||||||
{
|
{
|
||||||
if (isValid(player.worldObj, stack))
|
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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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.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: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:yes=Yes
|
||||||
misc.storagecraft:no=No
|
misc.storagecraft:no=No
|
||||||
misc.storagecraft:clear=Clear
|
misc.storagecraft:clear=Clear
|
||||||
|
|||||||
@@ -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.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: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:yes=Ja
|
||||||
misc.storagecraft:no=Nee
|
misc.storagecraft:no=Nee
|
||||||
misc.storagecraft:clear=Legen
|
misc.storagecraft:clear=Legen
|
||||||
|
|||||||
Reference in New Issue
Block a user