blob: bf282889422cd997beba88cf5455efce223d1095 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package com.sosnitzka.taiga.generic;
import net.minecraft.item.Item;
/**
* A "wrapper" for Item that makes construction and manipulation easier
*/
public class BasicItem extends Item {
private String oreDictPrefix;
public BasicItem(String name, String oreDictPrefix) {
setUnlocalizedName(name);
setRegistryName(name);
this.oreDictPrefix = oreDictPrefix;
}
public boolean isOreDict() {
return this.oreDictPrefix != null;
}
public String getOreDictPrefix() {
return oreDictPrefix;
}
}
|