package com.sosnitzka.ztic_addon.generic;

import net.minecraft.item.Item;

public class BasicItem extends Item {
    private String oreDictPrefix;

    public BasicItem(String name, String oreDictPrefix) {
        setUnlocalizedName(name);
        setRegistryName(name);
        this.oreDictPrefix = oreDictPrefix;
    }

    public BasicItem(String name) {
        this(name, null);
    }

    public boolean isOreDict() {
        return this.oreDictPrefix != null;
    }

    public String getOreDictPrefix() {
        return oreDictPrefix;
    }
}
