mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 23:33:08 +00:00
More work!
This commit is contained in:
1 parent
2523d2fd6b
commit
076c5f7377
8 files changed
+116
-62
No files matched your search
@@ -0,0 +1,23 @@
|
||||
package mekanism.common.item;
|
||||
|
||||
import mekanism.common.IUpgradeItem;
|
||||
import mekanism.common.Upgrade;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class ItemUpgrade extends ItemMekanism implements IUpgradeItem
|
||||
{
|
||||
private Upgrade upgrade;
|
||||
|
||||
public ItemUpgrade(Upgrade type)
|
||||
{
|
||||
upgrade = type;
|
||||
|
||||
setMaxStackSize(type.getMax());
|
||||
}
|
||||
|
||||
@Override
|
||||
public Upgrade getUpgradeType(ItemStack stack)
|
||||
{
|
||||
return upgrade;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user