2015-11-09 18:05:52 +01:00
|
|
|
/*
|
2016-05-16 22:52:27 +02:00
|
|
|
* This file ("ItemCrystal.java") is part of the Actually Additions mod for Minecraft.
|
2015-11-09 18:05:52 +01:00
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
* under the Actually Additions License to be found at
|
2016-05-16 22:52:27 +02:00
|
|
|
* http://ellpeck.de/actaddlicense
|
2015-11-09 18:05:52 +01:00
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2017-01-01 16:23:26 +01:00
|
|
|
* © 2015-2017 Ellpeck
|
2015-11-09 18:05:52 +01:00
|
|
|
*/
|
|
|
|
|
2016-01-05 04:47:35 +01:00
|
|
|
package de.ellpeck.actuallyadditions.mod.items;
|
2015-11-09 18:05:52 +01:00
|
|
|
|
2016-01-05 04:47:35 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.items.base.ItemBase;
|
2015-11-09 18:05:52 +01:00
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
2019-05-02 09:08:15 +02:00
|
|
|
public class ItemCrystal extends ItemBase {
|
2016-11-16 20:31:16 +01:00
|
|
|
private final boolean isEmpowered;
|
2016-08-03 13:36:42 +02:00
|
|
|
|
2021-02-27 22:44:00 +01:00
|
|
|
public ItemCrystal(boolean isEmpowered) {
|
|
|
|
super();
|
2016-08-03 13:36:42 +02:00
|
|
|
this.isEmpowered = isEmpowered;
|
2015-11-09 18:05:52 +01:00
|
|
|
}
|
|
|
|
|
2021-02-27 22:44:00 +01:00
|
|
|
public ItemCrystal() {
|
|
|
|
this.isEmpowered = false;
|
2015-11-09 18:05:52 +01:00
|
|
|
}
|
|
|
|
|
2016-08-03 13:36:42 +02:00
|
|
|
@Override
|
2021-08-22 17:09:06 +02:00
|
|
|
public boolean isFoil(ItemStack stack) {
|
2016-08-03 13:36:42 +02:00
|
|
|
return this.isEmpowered;
|
|
|
|
}
|
2016-05-29 23:49:35 +02:00
|
|
|
|
2021-02-27 22:44:00 +01:00
|
|
|
// @Override
|
|
|
|
// public String getTranslationKey(ItemStack stack) {
|
|
|
|
// return stack.getItemDamage() >= BlockCrystal.ALL_CRYSTALS.length
|
|
|
|
// ? StringUtil.BUGGED_ITEM_NAME
|
|
|
|
// : this.getTranslationKey() + "_" + BlockCrystal.ALL_CRYSTALS[stack.getItemDamage()].name;
|
|
|
|
// }
|
2021-02-26 22:15:48 +01:00
|
|
|
}
|