net.minecraft.src
Class ModelBillboard

java.lang.Object
  extended by net.minecraft.src.ModelBase
      extended by net.minecraft.src.ModelBillboard

public class ModelBillboard
extends net.minecraft.src.ModelBase

A billboard in computer rendering is an image that always faces a certain entity, in most cases the camera (you). Examples of them in Minecraft are the items when you drop them in-game, or the particles.

Author:
GaryCXJk

Field Summary
 ModelRendererTurbo[] face
           
 
Fields inherited from class net.minecraft.src.ModelBase
isRiding, onGround
 
Constructor Summary
ModelBillboard(float w, float h)
          Creates a new ModelBillboard.
ModelBillboard(float w, float h, int dirs, float frameWidth, float frameHeight, int perRow, float imgWidth, float imgHeight)
          Creates a new ModelBillboard.
ModelBillboard(float w, float h, int dirs, float frameHeight, int perRow, float imgHeight)
          Creates a new ModelBillboard.
 
Method Summary
 void render(float yaw, float pitch, float entYaw, float worldScale)
           
 void setRotation(float yaw, float pitch, float entYaw)
           
 
Methods inherited from class net.minecraft.src.ModelBase
render, setLivingAnimations, setRotationAngles
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

face

public ModelRendererTurbo[] face
Constructor Detail

ModelBillboard

public ModelBillboard(float w,
                      float h)
Creates a new ModelBillboard.

Parameters:
w - the width of the billboard
h - the height of the billboard

ModelBillboard

public ModelBillboard(float w,
                      float h,
                      int dirs,
                      float frameHeight,
                      int perRow,
                      float imgHeight)
Creates a new ModelBillboard.

Parameters:
w - the width of the billboard
h - the height of the billboard
dirs - the amount of directions a sprite can face
frameHeight - the height of the drawing frame
perRow - the amount of frames per row
imgHeight - the height of the total image

ModelBillboard

public ModelBillboard(float w,
                      float h,
                      int dirs,
                      float frameWidth,
                      float frameHeight,
                      int perRow,
                      float imgWidth,
                      float imgHeight)
Creates a new ModelBillboard.

Parameters:
w - the width of the billboard
h - the height of the billboard
dirs - the amount of directions a sprite can face
frameWidth - the width of the drawing frame
frameHeight - the height of the drawing frame
perRow - the amount of frames per row
imgWidth - the width of the total image
imgHeight - the height of the total image
Method Detail

render

public void render(float yaw,
                   float pitch,
                   float entYaw,
                   float worldScale)

setRotation

public void setRotation(float yaw,
                        float pitch,
                        float entYaw)