added a short usage description to the holosphere
package se.mickelus.tetra.items.journal;
+import com.mojang.realmsclient.gui.ChatFormatting;
import net.minecraft.client.Minecraft;
+import net.minecraft.client.resources.I18n;
+import net.minecraft.client.util.ITooltipFlag;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ActionResult;
@@ -15,6 +18,9 @@ import se.mickelus.tetra.items.TetraCreativeTabs;
import se.mickelus.tetra.items.TetraItem;
import se.mickelus.tetra.items.journal.gui.GuiJournal;
+import javax.annotation.Nullable;
+import java.util.List;
+
public class ItemJournal extends TetraItem {
private static final String unlocalizedName = "journal";
@@ -33,6 +39,13 @@ public class ItemJournal extends TetraItem {
setCreativeTab(TetraCreativeTabs.getInstance());
}
+ @Override
+ public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> tooltip, ITooltipFlag flagIn) {
+ tooltip.add(ChatFormatting.DARK_GRAY + I18n.format("item.journal.tooltip1"));
+ tooltip.add("");
+ tooltip.add(ChatFormatting.DARK_GRAY + ChatFormatting.ITALIC.toString() + I18n.format("item.journal.tooltip2"));
+ }
+
@Override
public ActionResult<ItemStack> onItemRightClick(World world, EntityPlayer player, EnumHand hand) {
if (world.isRemote) {
