I recovered that in the MathHelper class there are two methods sin&cos. But why do they exist if the Math class has those methods? Is there any noteworthy benefit?
Everything you need you can get from the MessageContext. It is smart to put the things you wanna make in a new thread like this:
IThreadListener mainThread = (WorldServer) ctx.getServerHandler().playerEntity.worldObj;
mainThread.addScheduledTask(new Runnable() {
World world = ctx.getServerHandler().playerEntity.worldObj;
@Override
public void run() {
}
});
return null;
I don't think that the loader supports Materials. But other than that, how did you made your b3d models work? My models still error with no root mesh in model location error. I tried everything in the json files, but i can't get it working.
Cuz i think that changing the rotationPitchHead(if you have an EntityLivingBase) would rotate the model and not the rotationPitch. I don't know why Minecraft does this
Yes, its pretty easy. In your blockstate file, just make the #inventory tag to set a texture and else, leave the texture field away, thats how i would do it.
Try this in your render method:
GL11.glPushMatrix();
GL11.glRotated(entity.rotationPitch,1,0,0);
//rest of the rendering stuff here
GL11.glPopMatrix();
What have you put in it? When i make system.out int won't work with guis it won't work. What am i makeing wrong? Do i have to log in for that probably?