2018-10-14 17:46:00 +02:00
|
|
|
package de.ellpeck.naturesaura.items;
|
|
|
|
|
2019-11-04 19:08:49 +01:00
|
|
|
import de.ellpeck.naturesaura.NaturesAura;
|
2018-10-14 17:46:00 +02:00
|
|
|
import de.ellpeck.naturesaura.reg.IModItem;
|
2020-01-22 01:32:26 +01:00
|
|
|
import de.ellpeck.naturesaura.reg.ModRegistry;
|
2018-10-14 17:46:00 +02:00
|
|
|
import net.minecraft.item.Item;
|
|
|
|
|
2020-01-29 00:40:28 +01:00
|
|
|
public class ItemImpl extends Item implements IModItem {
|
2018-10-14 17:46:00 +02:00
|
|
|
|
|
|
|
private final String baseName;
|
|
|
|
|
|
|
|
public ItemImpl(String baseName) {
|
2020-02-07 23:50:16 +01:00
|
|
|
this(baseName, new Properties());
|
2019-11-04 19:08:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public ItemImpl(String baseName, Item.Properties properties) {
|
2020-02-07 23:50:16 +01:00
|
|
|
super(properties.group(NaturesAura.CREATIVE_TAB));
|
2018-10-14 17:46:00 +02:00
|
|
|
this.baseName = baseName;
|
2020-01-22 01:32:26 +01:00
|
|
|
ModRegistry.add(this);
|
2018-10-14 17:46:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getBaseName() {
|
|
|
|
return this.baseName;
|
|
|
|
}
|
|
|
|
}
|