put 1.7.10 in main folder

This commit is contained in:
Martin Robertz committed 2023-01-13 19:25:21 +01:00
1 parent f6dd34eb96
commit b3a9147a3c
1429 files changed
+1 -135029

No files matched your search

@@ -0,0 +1,35 @@
package ab.client.render.tile;
import java.util.Random;
import org.lwjgl.opengl.GL11;
import ab.client.model.ModelEngineerHopper;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
import vazkii.botania.client.core.handler.ClientTickHandler;
public class RenderTileEngineerHopper extends TileEntitySpecialRenderer {
private static final ModelEngineerHopper model = new ModelEngineerHopper();
private static final ResourceLocation texture = new ResourceLocation("ab:textures/model/engineerHopper.png");
public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float ticks) {
double time = (tile.getWorldObj() == null) ? 0.0D : (ClientTickHandler.ticksInGame + ticks);
if(tile != null)
time += (new Random((tile.xCoord ^ tile.yCoord ^ tile.zCoord))).nextInt(360);
GL11.glPushMatrix();
GL11.glEnable(32826);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GL11.glTranslated(x, y, z);
GL11.glTranslatef(0.5f, 1.0625f, 0.5f);
GL11.glRotatef(180, 1.0f, 0.0f, 1.0f);
GL11.glScalef(0.7f, 0.7f, 0.7f);
Minecraft.getMinecraft().renderEngine.bindTexture(texture);
model.renderHoper(time);
GL11.glEnable(32826);
GL11.glPopMatrix();
}
}