adding remaining files
This commit is contained in:
@@ -0,0 +1,25 @@
|
|||||||
|
package nmd.primal.forgecraft.Item;
|
||||||
|
|
||||||
|
import net.minecraft.client.Minecraft;
|
||||||
|
//import net.minecraft.client.resources.model.ModelResourceLocation;
|
||||||
|
//import net.minecraft.client.resources.
|
||||||
|
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
import nmd.primal.forgecraft.ModInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by kitsu on 11/24/2016.
|
||||||
|
*/
|
||||||
|
public class ItemRenderRegister {
|
||||||
|
|
||||||
|
public static String modid = ModInfo.MOD_ID;
|
||||||
|
|
||||||
|
public static void registerItemRenderer() {
|
||||||
|
reg(ModItems.test);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void reg(Item item) {
|
||||||
|
Minecraft.getMinecraft().getRenderItem().getItemModelMesher()
|
||||||
|
.register(item, 0, new ModelResourceLocation(modid + ":" + item.getUnlocalizedName().substring(5), "inventory"));
|
||||||
|
}
|
||||||
|
}
|
||||||
27
src/main/java/nmd/primal/forgecraft/proxy/ServerProxy.java
Normal file
27
src/main/java/nmd/primal/forgecraft/proxy/ServerProxy.java
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
package nmd.primal.forgecraft.proxy;
|
||||||
|
|
||||||
|
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
|
||||||
|
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
|
||||||
|
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by kitsu on 11/24/2016.
|
||||||
|
*/
|
||||||
|
public class ServerProxy extends CommonProxy {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void preInit(FMLPreInitializationEvent e) {
|
||||||
|
super.preInit(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void init(FMLInitializationEvent e) {
|
||||||
|
super.init(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void postInit(FMLPostInitializationEvent e) {
|
||||||
|
super.postInit(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user