summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2014-10-25 17:19:09 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2014-10-25 17:19:09 +0100
commitf39716fbbaa9ecdf94a9865309eaeef6f54a9560 (patch)
tree51f855f58ff73df3fe91aaa4eac2536e485a5654
parent117d8c308f94f36389ee15ad8aff346d2aac2396 (diff)
downloadnoctis-f39716fbbaa9ecdf94a9865309eaeef6f54a9560.tar.bz2
Journal texture, clean up item, etc
-rw-r--r--src/main/java/net/flarn/noctis/item/ItemJournal.java15
-rw-r--r--src/main/java/net/flarn/noctis/refs/Strings.java1
-rw-r--r--src/main/resources/assets/noctis/lang/en_GB.lang2
-rw-r--r--src/main/resources/assets/noctis/textures/items/journal.pngbin0 -> 768 bytes
4 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/net/flarn/noctis/item/ItemJournal.java b/src/main/java/net/flarn/noctis/item/ItemJournal.java
index 8ef8b5c..388039e 100644
--- a/src/main/java/net/flarn/noctis/item/ItemJournal.java
+++ b/src/main/java/net/flarn/noctis/item/ItemJournal.java
@@ -1,11 +1,26 @@
package net.flarn.noctis.item;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
import net.flarn.noctis.refs.Names;
+import net.flarn.noctis.refs.Strings;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.util.StatCollector;
+
+import java.util.List;
public class ItemJournal extends ItemNoctisBase {
public ItemJournal() {
super();
setUnlocalizedName(Names.Items.JOURNAL);
}
+
+ @Override
+ @SideOnly(Side.CLIENT)
+ public void addInformation(ItemStack s, EntityPlayer p, List strs, boolean b) {
+ strs.add("");
+ strs.add(StatCollector.translateToLocal(Strings.JOURNAL_DESC));
+ }
}
diff --git a/src/main/java/net/flarn/noctis/refs/Strings.java b/src/main/java/net/flarn/noctis/refs/Strings.java
index c34e808..adcdd37 100644
--- a/src/main/java/net/flarn/noctis/refs/Strings.java
+++ b/src/main/java/net/flarn/noctis/refs/Strings.java
@@ -5,4 +5,5 @@ public class Strings {
public static final String DESC_PREFIX = "desc." + Refs.MOD_ID.toLowerCase() + ":";
public static final String CATALYST_LIFELESS = DESC_PREFIX + "catalyst.lifeless";
public static final String CATALYST_THRUMS = DESC_PREFIX + "catalyst.thrums";
+ public static final String JOURNAL_DESC = DESC_PREFIX + "journal";
}
diff --git a/src/main/resources/assets/noctis/lang/en_GB.lang b/src/main/resources/assets/noctis/lang/en_GB.lang
index 82af7a0..1498a73 100644
--- a/src/main/resources/assets/noctis/lang/en_GB.lang
+++ b/src/main/resources/assets/noctis/lang/en_GB.lang
@@ -3,11 +3,13 @@ itemGroup.noctis=Noctis - Spatio inter Stellarum
itemGroup.noctis.creative=Noctis - Creative Mode Only Items
# Item localisations
+item.noctis:journal.name=Spatio inter Stellarum
item.noctis:glassSword.name=Un-attuned Glass Sword
item.noctis:lightCatalyst.name=Catalyst attuned to the light of the moon
item.noctis:darkCatalyst.name=Catalyst attuned to the space between the stars
item.noctis:mixedCatalyst.name=Catalyst attuned to all the night can provide
# Description localisations
+desc.noctis:journal=Everything I know about the power of the night is in here.
desc.noctis:catalyst.lifeless=This seems dull somehow
desc.noctis:catalyst.thrums=An aura of %s infuses this
diff --git a/src/main/resources/assets/noctis/textures/items/journal.png b/src/main/resources/assets/noctis/textures/items/journal.png
new file mode 100644
index 0000000..f85fc62
--- /dev/null
+++ b/src/main/resources/assets/noctis/textures/items/journal.png
Binary files differ