refactor: Flattened the runestone blocks

This commit is contained in:
WinDanesz
2022-09-09 23:51:30 +02:00
parent b1e70c01f0
commit 5d337b93a6
54 changed files with 399 additions and 333 deletions
@@ -1,16 +1,21 @@
package electroblob.wizardry.item;
import electroblob.wizardry.api.IElemental;
import electroblob.wizardry.constants.Element;
import electroblob.wizardry.registry.WizardryTabs;
import net.minecraft.item.Item;
/** Note that in 1.13, <i>the flattening</i> will make this class redundant, much like ItemCoal, which is probably its
* closest analog in vanilla. */
public class ItemCrystal extends Item {
public class ItemCrystal extends Item implements IElemental {
public ItemCrystal(){
private final Element element;
public ItemCrystal(Element element) {
super();
this.setMaxDamage(0);
this.setCreativeTab(WizardryTabs.WIZARDRY);
}
this.setMaxDamage(0);
this.setCreativeTab(WizardryTabs.WIZARDRY);
this.element = element;
}
@Override
public Element getElement() { return element; }
}