/
Belyash5
/
Flu
Обзор
Документация
Войти
/
Belyash5
/
Flu
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/main/java/com/hbm/render/entity/rocket/RenderMinerRocket.java
38 строк
990 B
Bob
removed more useless crap
24 мар 2024, 20:26
24 мар 2024, 20:26
bc65f80
Код
Авторство
О чём код?
package com.hbm.render.entity.rocket; import org.lwjgl.opengl.GL11; import com.hbm.entity.missile.EntityMinerRocket; import com.hbm.main.ResourceManager; import net.minecraft.client.renderer.entity.Render; import net.minecraft.entity.Entity; import net.minecraft.util.ResourceLocation; public class RenderMinerRocket extends Render { @Override public void doRender(Entity entity, double x, double y, double z, float p_76986_8_, float p_76986_9_) { GL11.glPushMatrix(); GL11.glTranslatef((float) x, (float) y, (float) z); GL11.glDisable(GL11.GL_CULL_FACE); if(entity instanceof EntityMinerRocket) { bindTexture(ResourceManager.minerRocket_tex); } else { bindTexture(ResourceManager.bobmazon_tex); GL11.glRotatef(180, 1, 0, 0); } ResourceManager.minerRocket.renderAll(); GL11.glEnable(GL11.GL_CULL_FACE); GL11.glPopMatrix(); } @Override protected ResourceLocation getEntityTexture(Entity p_110775_1_) { return ResourceManager.minerRocket_tex; } }