net.minecraft.src
Class ModelBillboard
java.lang.Object
net.minecraft.src.ModelBase
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
| 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 |
face
public ModelRendererTurbo[] face
ModelBillboard
public ModelBillboard(float w,
float h)
- Creates a new ModelBillboard.
- Parameters:
w - the width of the billboardh - 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 billboardh - the height of the billboarddirs - the amount of directions a sprite can faceframeHeight - the height of the drawing frameperRow - the amount of frames per rowimgHeight - 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 billboardh - the height of the billboarddirs - the amount of directions a sprite can faceframeWidth - the width of the drawing frameframeHeight - the height of the drawing frameperRow - the amount of frames per rowimgWidth - the width of the total imageimgHeight - the height of the total image
render
public void render(float yaw,
float pitch,
float entYaw,
float worldScale)
setRotation
public void setRotation(float yaw,
float pitch,
float entYaw)