mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-20 04:10:07 +00:00
Rename color and flower enum entities to UPPER_CASE Refactoring FlowerSpecies Added some localization
This commit is contained in:
1 parent
542dbb15b0
commit
263a4f3bfc
16 files changed
+3402
-3302
No files matched your search
@@ -3,6 +3,7 @@ package binnie.botany.genetics;
|
||||
import binnie.botany.Botany;
|
||||
import binnie.botany.CreativeTabBotany;
|
||||
import binnie.botany.core.BotanyGUI;
|
||||
import binnie.core.util.I18N;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
@@ -52,18 +53,15 @@ public class ItemDictionary extends Item {
|
||||
|
||||
@Override
|
||||
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
|
||||
if (stack.getItemDamage() == 0) {
|
||||
Botany.proxy.openGui(BotanyGUI.Database, player, (int) player.posX, (int) player.posY, (int) player.posZ);
|
||||
} else {
|
||||
Botany.proxy.openGui(BotanyGUI.DatabaseNEI, player, (int) player.posX, (int) player.posY, (int) player.posZ);
|
||||
}
|
||||
BotanyGUI guiId = (stack.getItemDamage() == 0) ? BotanyGUI.Database : BotanyGUI.DatabaseNEI;
|
||||
Botany.proxy.openGui(guiId, player, (int) player.posX, (int) player.posY, (int) player.posZ);
|
||||
return stack;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getItemStackDisplayName(ItemStack stack) {
|
||||
return (stack.getItemDamage() == 0) ?
|
||||
"Botanist Database" :
|
||||
"Master Botanist Database";
|
||||
return (stack.getItemDamage() == 0)
|
||||
? I18N.localise(Botany.instance, "item.botanistDatabase.0.name")
|
||||
: I18N.localise(Botany.instance, "item.botanistDatabase.1.name");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user