net.minecraft.src
Class RenderBillboard

java.lang.Object
  extended by net.minecraft.src.Render
      extended by net.minecraft.src.RenderLiving
          extended by net.minecraft.src.RenderBillboard

public class RenderBillboard
extends net.minecraft.src.RenderLiving

The RenderBillboard class provides an easy way to use the ModelBillboard class by fully automating it for you. You only need to attach an entity to it, and you're pretty much set.

Author:
GaryCXJk

Constructor Summary
RenderBillboard(float bbWidth, float bbHeight)
          Creates a new RenderBillboard instance.
RenderBillboard(float bbWidth, float bbHeight, int directions, float frameWidth, float frameHeight, int perRow, float imgWidth, float imgHeight, float pitchScale)
          Creates a new RenderBillboard instance.
RenderBillboard(float bbWidth, float bbHeight, int directions, float frameHeight, int perRow, float imgHeight)
          Creates a new RenderBillboard instance.
RenderBillboard(float bbWidth, float bbHeight, int directions, float frameHeight, int perRow, float imgHeight, float pitchScale)
          Creates a new RenderBillboard instance.
 
Method Summary
 void doRenderLiving(net.minecraft.src.EntityLiving entityliving, double d, double d1, double d2, float f, float f1)
           
 
Methods inherited from class net.minecraft.src.RenderLiving
doRender, setRenderPassModel
 
Methods inherited from class net.minecraft.src.Render
doRenderShadowAndFire, getFontRendererFromRenderManager, renderAABB, renderOffsetAABB, setRenderManager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenderBillboard

public RenderBillboard(float bbWidth,
                       float bbHeight)
Creates a new RenderBillboard instance.

Parameters:
bbWidth - the width of the billboard in-game
bbHeight - the height of the billboard in-game

RenderBillboard

public RenderBillboard(float bbWidth,
                       float bbHeight,
                       int directions,
                       float frameHeight,
                       int perRow,
                       float imgHeight)
Creates a new RenderBillboard instance.

Parameters:
bbWidth - the width of the billboard in-game
bbHeight - the height of the billboard in-game
directions - the amount of directions that are set
frameHeight - the height of one frame
perRow - the amount of frames per row
imgHeight - the total height of the image

RenderBillboard

public RenderBillboard(float bbWidth,
                       float bbHeight,
                       int directions,
                       float frameHeight,
                       int perRow,
                       float imgHeight,
                       float pitchScale)
Creates a new RenderBillboard instance.

Parameters:
bbWidth - the width of the billboard in-game
bbHeight - the height of the billboard in-game
directions - the amount of directions that are set
frameHeight - the height of one frame
perRow - the amount of frames per row
imgHeight - the total height of the image
pitchScale - the scale of the pitch

RenderBillboard

public RenderBillboard(float bbWidth,
                       float bbHeight,
                       int directions,
                       float frameWidth,
                       float frameHeight,
                       int perRow,
                       float imgWidth,
                       float imgHeight,
                       float pitchScale)
Creates a new RenderBillboard instance.

Parameters:
bbWidth - the width of the billboard in-game
bbHeight - the height of the billboard in-game
directions - the amount of directions that are set
frameWidth - the width of one frame
frameHeight - the height of one frame
perRow - the amount of frames per row
imgWidth - the total width of the image
imgHeight - the total height of the image
pitchScale - the scale of the pitch
Method Detail

doRenderLiving

public void doRenderLiving(net.minecraft.src.EntityLiving entityliving,
                           double d,
                           double d1,
                           double d2,
                           float f,
                           float f1)
Overrides:
doRenderLiving in class net.minecraft.src.RenderLiving