mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
Rework dagger into a projectileBase entity!
This commit is contained in:
1 parent
46059d6913
commit
dbc446636f
11 files changed
+83
-74
No files matched your search
@@ -0,0 +1,25 @@
|
||||
package tconstruct.tools.client;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import tconstruct.tools.entity.DaggerEntity;
|
||||
import tconstruct.weaponry.client.entity.ProjectileBaseRenderer;
|
||||
|
||||
public class DaggerEntityRenderer extends ProjectileBaseRenderer<DaggerEntity> {
|
||||
@Override
|
||||
public void customRendering(DaggerEntity entity, double x, double y, double z, float p_76986_8_, float p_76986_9_) {
|
||||
|
||||
// rotate it into the direction we threw it
|
||||
GL11.glRotatef(entity.rotationYaw, 0f, 1f, 0f);
|
||||
GL11.glRotatef(-entity.rotationPitch, 1f, 0f, 0f);
|
||||
|
||||
// rotate it into a vertical position
|
||||
GL11.glRotatef(90f, 0f, 1f, 0f);
|
||||
|
||||
// it rotates!
|
||||
GL11.glRotatef(entity.roll, 0f, 0f, 1f);
|
||||
|
||||
|
||||
// also make it a bit thicker
|
||||
toolCoreRenderer.setDepth(1/20f);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user