mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-16 17:33:12 +01:00
26 lines
672 B
Java
26 lines
672 B
Java
package de.ellpeck.naturesaura.items;
|
|
|
|
import de.ellpeck.naturesaura.NaturesAura;
|
|
import de.ellpeck.naturesaura.reg.IModItem;
|
|
import de.ellpeck.naturesaura.reg.ModRegistry;
|
|
import net.minecraft.item.Item;
|
|
|
|
public class ItemImpl extends Item implements IModItem {
|
|
|
|
private final String baseName;
|
|
|
|
public ItemImpl(String baseName) {
|
|
this(baseName, new Properties().group(NaturesAura.CREATIVE_TAB));
|
|
}
|
|
|
|
public ItemImpl(String baseName, Item.Properties properties) {
|
|
super(properties);
|
|
this.baseName = baseName;
|
|
ModRegistry.add(this);
|
|
}
|
|
|
|
@Override
|
|
public String getBaseName() {
|
|
return this.baseName;
|
|
}
|
|
}
|