mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-21 12:52:31 +00:00
Clean up CarvableHelper to use defined constants
This commit is contained in:
1 parent
82792ed22e
commit
a878c9d77e
3 files changed
+25
-24
No files matched your search
@@ -11,6 +11,7 @@ import net.minecraft.util.StatCollector;
|
||||
|
||||
public class BaseItem extends Item {
|
||||
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
@Override
|
||||
public void addInformation(ItemStack itemStack, EntityPlayer player, List list, boolean par4) {
|
||||
getWrappedDesc(list, itemStack);
|
||||
@@ -37,7 +38,7 @@ public class BaseItem extends Item {
|
||||
return new String[] { input };
|
||||
|
||||
char[] chars = input.toCharArray();
|
||||
Vector lines = new Vector();
|
||||
Vector<String> lines = new Vector<String>();
|
||||
StringBuffer line = new StringBuffer();
|
||||
StringBuffer word = new StringBuffer();
|
||||
|
||||
@@ -71,7 +72,7 @@ public class BaseItem extends Item {
|
||||
|
||||
String[] ret = new String[lines.size()];
|
||||
int c = 0; // counter
|
||||
for (Enumeration e = lines.elements(); e.hasMoreElements(); c++) {
|
||||
for (Enumeration<String> e = lines.elements(); e.hasMoreElements(); c++) {
|
||||
ret[c] = (String) e.nextElement();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user