Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void doRender(Entity entity, double x, double y, double z, float yaw, float partialTick) {
- // again, if you need some information from your custom entity class, you can cast to your
- // custom class, either passing off to another method, or just doing it here
- // in this example, it is not necessary
- // if you are going to do any openGL matrix transformations, be sure to always Push and Pop
- GL11.glPushMatrix();
- // bind your texture:
- bindTexture(textureSkin);
- // do whatever transformations you need, then render
- // typically you will at least want to translate for x/y/z position:
- GL11.glTranslated(x, y, z);
- // if you are using a model, you can do so like this:
- model.render(entity, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F);
- // note all the values are 0 except the final argument, which is scale
- // vanilla Minecraft almost excusively uses 0.0625F, but you can change it to whatever works
- GL11.glPopMatrix();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement