Some P Stone work
This commit is contained in:
parent
34846e739a
commit
838335ca69
3 changed files with 27 additions and 2 deletions
|
@ -14,6 +14,7 @@ import net.minecraft.src.mod_EE3;
|
||||||
*/
|
*/
|
||||||
public class ItemPhilosopherStone extends ItemEE implements IItemChargeable, IItemModal {
|
public class ItemPhilosopherStone extends ItemEE implements IItemChargeable, IItemModal {
|
||||||
|
|
||||||
|
private byte type;
|
||||||
private byte currentCharge;
|
private byte currentCharge;
|
||||||
private byte maxCharge;
|
private byte maxCharge;
|
||||||
private byte currentMode;
|
private byte currentMode;
|
||||||
|
@ -21,12 +22,36 @@ public class ItemPhilosopherStone extends ItemEE implements IItemChargeable, IIt
|
||||||
|
|
||||||
public ItemPhilosopherStone(int i) {
|
public ItemPhilosopherStone(int i) {
|
||||||
super(i);
|
super(i);
|
||||||
|
type = 1;
|
||||||
maxCharge = 4;
|
maxCharge = 4;
|
||||||
maxMode = 2;
|
maxMode = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets an icon index based on an item's damage value
|
||||||
|
*/
|
||||||
|
public int getIconFromDamage(int par1)
|
||||||
|
{
|
||||||
|
return this.iconIndex + type;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Returns the custom item rarity type for the item
|
||||||
|
* @see net.minecraft.src.Item#getRarity(net.minecraft.src.ItemStack)
|
||||||
|
*/
|
||||||
public EnumRarity getRarity(ItemStack par1ItemStack) {
|
public EnumRarity getRarity(ItemStack par1ItemStack) {
|
||||||
|
if (type == 1)
|
||||||
return mod_EE3.proxy.getCustomEnumRarityType(CustomItemRarity.RARE);
|
return mod_EE3.proxy.getCustomEnumRarityType(CustomItemRarity.RARE);
|
||||||
|
else
|
||||||
|
return mod_EE3.proxy.getCustomEnumRarityType(CustomItemRarity.MAGICAL);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Gives the Philosopher Stone a nice visual effect
|
||||||
|
* @see net.minecraft.src.Item#hasEffect(net.minecraft.src.ItemStack)
|
||||||
|
*/
|
||||||
|
public boolean hasEffect(ItemStack par1ItemStack) {
|
||||||
|
return (this.type == 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -14,7 +14,7 @@ public class Reference {
|
||||||
public static final String CONFIG_DIR = "config/ee3/";
|
public static final String CONFIG_DIR = "config/ee3/";
|
||||||
|
|
||||||
public static final String SPRITE_SHEET_LOCATION = "/ee3/art/sprites/";
|
public static final String SPRITE_SHEET_LOCATION = "/ee3/art/sprites/";
|
||||||
public static final String ITEM_SPRITE_SHEET = "eqexsheet.png";
|
public static final String ITEM_SPRITE_SHEET = "ee3_items.png";
|
||||||
public static final String GUI_SHEET_LOCATION = "/ee3/art/gui/";
|
public static final String GUI_SHEET_LOCATION = "/ee3/art/gui/";
|
||||||
public static final String ARMOR_SHEET_LOCATION = "/ee3/art/armor/";
|
public static final String ARMOR_SHEET_LOCATION = "/ee3/art/armor/";
|
||||||
public static final String SOUND_RESOURCE_LOCATION = "/ee3/sound/";
|
public static final String SOUND_RESOURCE_LOCATION = "/ee3/sound/";
|
||||||
|
|
BIN
resources/ee3/art/sprites/ee3_items.png
Normal file
BIN
resources/ee3/art/sprites/ee3_items.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
Loading…
Reference in a new issue