Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.wizardofoz.basic.item.entity;
- import net.minecraft.tileentity.TileEntity;
- public class TileEntityPurpleGrass extends TileEntity {
- }
- package com.wizardofoz.basic.item.entity.render;
- import org.lwjgl.opengl.GL11;
- import org.lwjgl.opengl.GL12;
- import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
- import net.minecraft.src.ModelPurpleGrass;
- import net.minecraft.tileentity.TileEntity;
- import net.minecraft.util.ResourceLocation;
- public class RenderPurpleGrass extends TileEntitySpecialRenderer {
- private static final ResourceLocation texture = new ResourceLocation("Gillikins:textures/models/blocks/PurpleGrass.png");
- private ModelPurpleGrass model;
- public RenderPurpleGrass() {
- this.model = new ModelPurpleGrass();
- }
- @Override
- public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {
- GL11.glPushMatrix();
- GL11.glTranslatef((float)x + 0.5F, (float)y + 1.5F, (float)z + 0.5F);
- GL11.glRotatef(180, 0F, 0F, 1F);
- this.bindTexture(texture);
- GL11.glPushMatrix();
- this.model.renderModel(0.0625F);
- GL11.glPopMatrix();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment