Well, here is an update of my status.
I took the code as it was and did change the structure a bit.
I placed all classes in the ModelLoaderRegistryDebug.java file in sepereta java files.
I placed the java files in an own package:
net.clash_of_nations.forge.confacilities.obj ->
CustomModelBlock.java
OBJCustomDataBlock.java
OBJDirectionBlock.java
OBJDirectionEye.java
OBJDynamicEye.java
OBJDynamicEyeTileEntity.java (temporarily placed here)
OBJTesseractBlock.java
OBJTesseractBlockTileEntity.java
OBJVertexColoring1.java
OBJVertexColoring2.java
OBJVertexColoring2TileEntity.java
(I didn't change any code and implemented all necessary packages)
So my ModelLoaderRegistryDebug.java file (renamed to ObjReg.java) only contains this code (It serves as a list for the initialization in my main java file called CoNFacilities.java):
They are like I said initialized in my main CoNFacilities java file:
I did this because I think it makes it easier for me to keep everything in sight and makes my main file less messy.
I also placed all obj models in the package:
assets.confacilities.models.obj
all textures in the package:
assets.confacilities.textures.objs
all .json (blockstates) in the package:
assets.confacilities.blockstates
I updated all references for textures and models in the .json files.
So, when I try to start this whole thing, the game starts, but without loading my OBJ's. It is loading my simple Block that I created which is loaded here:
...
@EventHandler
public void init(FMLInitializationEvent e){
System.out.println("[ModInit] Loading Mod.");
BlockLoader.loadBlocks();
}
...
BlockLoader.loadBlocks(); is the important line.
When I take a look to the console, it smashes out one error:
EDIT: I solved this problem. Was an unimportant mcmod.info error. I don't get any errors.
Did I do something wrong?
Please let me know if you need something else to see the error.
I'm glad for everyone who helps and thank you guys!