I wrote this cord, but it is worked only when player hold items.
Moreover blocks render on player.
@SubscribeEvent
public static void onRenderPlayerPre(RenderPlayerEvent.Pre event) {
GlStateManager.pushMatrix();
GlStateManager.scalef(2.0f, 1.0f, 1.0f);
}
@SubscribeEvent
public static void onRenderPlayerPost(RenderPlayerEvent.Post event) {
GlStateManager.popMatrix();
}
Then, how does GlStateManager.scalef work?
I want to change Player's scaleX(depth) to 1.2X and scaleZ(width) to 2.0Z.
GlStateManager.scalef(2.0f, 1.0f, 1.0f) makes a player fat, but depth doesn't change.
GlStateManager.scalef(1.0f, 1.0f, 2.0f) shrinks a player's height.