mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-16 17:33:12 +01:00
51 lines
1.2 KiB
Java
51 lines
1.2 KiB
Java
|
package de.ellpeck.naturesaura.items;
|
||
|
|
||
|
import de.ellpeck.naturesaura.NaturesAura;
|
||
|
import de.ellpeck.naturesaura.reg.IModItem;
|
||
|
import de.ellpeck.naturesaura.reg.IModelProvider;
|
||
|
import de.ellpeck.naturesaura.reg.ModRegistry;
|
||
|
import net.minecraft.item.Item;
|
||
|
import net.minecraft.item.ItemStack;
|
||
|
import net.minecraft.util.ResourceLocation;
|
||
|
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
|
||
|
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
|
||
|
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
|
||
|
|
||
|
import java.util.Collections;
|
||
|
import java.util.Map;
|
||
|
|
||
|
public class ItemImpl extends Item implements IModItem, IModelProvider {
|
||
|
|
||
|
private final String baseName;
|
||
|
|
||
|
public ItemImpl(String baseName) {
|
||
|
this.baseName = baseName;
|
||
|
ModRegistry.addItemOrBlock(this);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public String getBaseName() {
|
||
|
return this.baseName;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public boolean shouldAddCreative() {
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void onPreInit(FMLPreInitializationEvent event) {
|
||
|
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void onInit(FMLInitializationEvent event) {
|
||
|
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void onPostInit(FMLPostInitializationEvent event) {
|
||
|
|
||
|
}
|
||
|
}
|