2015-08-29 14:33:25 +02:00
|
|
|
/*
|
2016-05-16 22:52:27 +02:00
|
|
|
* This file ("ItemDust.java") is part of the Actually Additions mod for Minecraft.
|
2015-08-29 14:33:25 +02: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-08-29 14:33:25 +02:00
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2017-01-01 16:23:26 +01:00
|
|
|
* © 2015-2017 Ellpeck
|
2015-08-29 14:33:25 +02:00
|
|
|
*/
|
|
|
|
|
2016-01-05 04:47:35 +01:00
|
|
|
package de.ellpeck.actuallyadditions.mod.items;
|
2015-03-07 02:23:31 +01:00
|
|
|
|
2016-01-05 04:47:35 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.items.base.ItemBase;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.items.metalists.TheDusts;
|
2021-03-01 18:11:34 +01:00
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
|
2021-11-14 00:20:29 +01:00
|
|
|
public class ItemDust extends ItemBase {
|
2015-03-07 02:23:31 +01:00
|
|
|
|
2016-06-17 23:50:38 +02:00
|
|
|
public static final TheDusts[] ALL_DUSTS = TheDusts.values();
|
2015-03-07 02:23:31 +01:00
|
|
|
|
2021-03-01 21:23:52 +01:00
|
|
|
public ItemDust() {
|
2021-11-14 00:20:29 +01:00
|
|
|
//super(name);
|
2015-10-03 10:19:40 +02:00
|
|
|
}
|
|
|
|
|
2021-11-14 00:20:29 +01:00
|
|
|
/*
|
2015-03-07 02:23:31 +01:00
|
|
|
@Override
|
2021-11-13 18:16:25 +01:00
|
|
|
public Rarity getRarity(ItemStack stack) {
|
2021-03-01 18:11:34 +01:00
|
|
|
return stack.getItemDamage() >= ALL_DUSTS.length
|
2021-08-22 23:19:57 +02:00
|
|
|
? EnumRarity.COMMON
|
|
|
|
: ALL_DUSTS[stack.getItemDamage()].rarity;
|
2015-03-07 02:23:31 +01:00
|
|
|
}
|
|
|
|
|
2021-11-14 00:20:29 +01:00
|
|
|
*/
|
2019-02-27 19:53:05 +01:00
|
|
|
|
2021-11-14 00:20:29 +01:00
|
|
|
/*
|
2018-01-14 19:25:36 +01:00
|
|
|
@Override
|
|
|
|
public int getItemBurnTime(ItemStack stack) {
|
2021-03-01 18:11:34 +01:00
|
|
|
if (stack.getMetadata() == 6) {
|
|
|
|
return 1200;
|
|
|
|
}
|
2019-02-27 19:53:05 +01:00
|
|
|
return super.getItemBurnTime(stack);
|
2018-01-14 19:25:36 +01:00
|
|
|
}
|
2021-11-14 00:20:29 +01:00
|
|
|
|
|
|
|
*/
|
2015-03-07 02:23:31 +01:00
|
|
|
}
|