mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
33 lines
882 B
Java
33 lines
882 B
Java
package com.hbm.render.tileentity;
|
|
|
|
import org.lwjgl.opengl.GL11;
|
|
|
|
import com.hbm.render.util.SoyuzLauncherPronter;
|
|
import com.hbm.render.util.SoyuzPronter;
|
|
import com.hbm.tileentity.machine.TileEntitySoyuzLauncher;
|
|
|
|
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
|
import net.minecraft.tileentity.TileEntity;
|
|
|
|
public class RenderSoyuzLauncher extends TileEntitySpecialRenderer {
|
|
|
|
@Override
|
|
public void renderTileEntityAt(TileEntity te, double x, double y, double z, float p_147500_8_) {
|
|
|
|
GL11.glPushMatrix();
|
|
GL11.glTranslatef((float) x + 0.5F, (float) y, (float) z + 0.5F);
|
|
|
|
TileEntitySoyuzLauncher launcher = (TileEntitySoyuzLauncher)te;
|
|
|
|
SoyuzLauncherPronter.prontLauncher();
|
|
|
|
if(launcher.rocketType >= 0) {
|
|
GL11.glTranslatef(0.0F, 5.0F, 0.0F);
|
|
SoyuzPronter.prontSoyuz(launcher.rocketType);
|
|
}
|
|
|
|
GL11.glPopMatrix();
|
|
}
|
|
|
|
}
|