Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fossils.basic;
- import fossils.entity.models.ModelEgg;
- import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
- import net.minecraft.tileentity.TileEntity;
- import net.minecraft.util.ResourceLocation;
- import static org.lwjgl.opengl.GL11.*;
- public class BasicBlockRenderer extends TileEntitySpecialRenderer
- {
- public ModelEgg model = new ModelEgg();
- public ResourceLocation texture = new ResourceLocation("fossils:textures/entities/Egg.png");
- public void renderTileEntityAt(TileEntity entity, double x, double y, double z, float scale)
- {
- glPushMatrix();
- glTranslatef((float) x + 0.5f, (float) y + 1.5f, (float) z + 0.5f);
- bindTexture(texture);
- glPushMatrix();
- glRotatef(180.0f, 0.0f, 0.0f, 1.0f);
- model.render();
- glPopMatrix();
- glPopMatrix();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment