public class AdvancedModelRenderer
extends net.minecraft.client.model.ModelRenderer
| Modifier and Type | Field and Description |
|---|---|
float |
defaultOffsetX |
float |
defaultOffsetY |
float |
defaultOffsetZ |
float |
defaultPositionX |
float |
defaultPositionY |
float |
defaultPositionZ |
float |
defaultRotationX |
float |
defaultRotationY |
float |
defaultRotationZ |
boolean |
scaleChildren |
float |
scaleX |
float |
scaleY |
float |
scaleZ |
int |
textureOffsetX |
int |
textureOffsetY |
| Constructor and Description |
|---|
AdvancedModelRenderer(AdvancedModelBase model) |
AdvancedModelRenderer(AdvancedModelBase model,
int textureOffsetX,
int textureOffsetY) |
AdvancedModelRenderer(AdvancedModelBase model,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
AdvancedModelRenderer |
add3DTexture(float posX,
float posY,
float posZ,
int width,
int height) |
net.minecraft.client.model.ModelRenderer |
addBox(float offX,
float offY,
float offZ,
int width,
int height,
int depth) |
net.minecraft.client.model.ModelRenderer |
addBox(float offX,
float offY,
float offZ,
int width,
int height,
int depth,
boolean mirrored) |
void |
addBox(float offX,
float offY,
float offZ,
int width,
int height,
int depth,
float scaleFactor)
Creates a textured box.
|
net.minecraft.client.model.ModelRenderer |
addBox(java.lang.String partName,
float offX,
float offY,
float offZ,
int width,
int height,
int depth) |
void |
addChild(net.minecraft.client.model.ModelRenderer child) |
void |
bob(float speed,
float degree,
boolean bounce,
float f,
float f1)
Moves this box up and down (rotationPointY).
|
void |
flap(float speed,
float degree,
boolean invert,
float offset,
float weight,
float flap,
float flapAmount)
Rotates this box up and down (rotateAngleZ).
|
AdvancedModelBase |
getModel() |
AdvancedModelRenderer |
getParent() |
void |
parentedPostRender(float scale)
Post renders this box with all its parents
|
void |
render(float scale) |
void |
renderWithParents(float scale)
Renders this box with all it's parents
|
void |
resetToDefaultPose()
Sets the current pose to the previously set default pose.
|
void |
setParent(AdvancedModelRenderer parent)
Sets the parent of this box
|
void |
setScale(float scaleX,
float scaleY,
float scaleZ)
Sets the scale for this AdvancedModelRenderer to be rendered at.
|
void |
setScaleX(float scaleX) |
void |
setScaleY(float scaleY) |
void |
setScaleZ(float scaleZ) |
void |
setShouldScaleChildren(boolean scaleChildren)
If true, when using setScale, the children of this model part will be scaled as well as just this part.
|
AdvancedModelRenderer |
setTextureOffset(int textureOffsetX,
int textureOffsetY) |
void |
swing(float speed,
float degree,
boolean invert,
float offset,
float weight,
float swing,
float swingAmount)
Rotates this box side to side (rotateAngleY).
|
void |
transitionTo(AdvancedModelRenderer to,
float timer,
float maxTime) |
void |
updateDefaultPose()
Sets this ModelRenderer's default pose to the current pose.
|
void |
walk(float speed,
float degree,
boolean invert,
float offset,
float weight,
float walk,
float walkAmount)
Rotates this box back and forth (rotateAngleX).
|
public float defaultRotationX
public float defaultRotationY
public float defaultRotationZ
public float defaultOffsetX
public float defaultOffsetY
public float defaultOffsetZ
public float defaultPositionX
public float defaultPositionY
public float defaultPositionZ
public float scaleX
public float scaleY
public float scaleZ
public int textureOffsetX
public int textureOffsetY
public boolean scaleChildren
public AdvancedModelRenderer(AdvancedModelBase model, java.lang.String name)
public AdvancedModelRenderer(AdvancedModelBase model)
public AdvancedModelRenderer(AdvancedModelBase model, int textureOffsetX, int textureOffsetY)
public AdvancedModelRenderer add3DTexture(float posX, float posY, float posZ, int width, int height)
public net.minecraft.client.model.ModelRenderer addBox(java.lang.String partName,
float offX,
float offY,
float offZ,
int width,
int height,
int depth)
addBox in class net.minecraft.client.model.ModelRendererpublic net.minecraft.client.model.ModelRenderer addBox(float offX,
float offY,
float offZ,
int width,
int height,
int depth)
addBox in class net.minecraft.client.model.ModelRendererpublic net.minecraft.client.model.ModelRenderer addBox(float offX,
float offY,
float offZ,
int width,
int height,
int depth,
boolean mirrored)
addBox in class net.minecraft.client.model.ModelRendererpublic void addBox(float offX,
float offY,
float offZ,
int width,
int height,
int depth,
float scaleFactor)
addBox in class net.minecraft.client.model.ModelRendererpublic void setShouldScaleChildren(boolean scaleChildren)
scaleChildren - true if this parent should scale the childrenpublic void setScale(float scaleX,
float scaleY,
float scaleZ)
scaleX - the x scalescaleY - the y scalescaleZ - the z scalepublic void setScaleX(float scaleX)
public void setScaleY(float scaleY)
public void setScaleZ(float scaleZ)
public void updateDefaultPose()
public void resetToDefaultPose()
public void addChild(net.minecraft.client.model.ModelRenderer child)
addChild in class net.minecraft.client.model.ModelRendererpublic AdvancedModelRenderer getParent()
public void setParent(AdvancedModelRenderer parent)
parent - the new parentpublic void parentedPostRender(float scale)
scale - the render scalepublic void renderWithParents(float scale)
scale - the render scalepublic void render(float scale)
render in class net.minecraft.client.model.ModelRendererpublic AdvancedModelBase getModel()
public void walk(float speed,
float degree,
boolean invert,
float offset,
float weight,
float walk,
float walkAmount)
speed - is how fast the animation runsdegree - is how far the box will rotate;invert - will invert the rotationoffset - will offset the timing of the animationweight - will make the animation favor one direction more based on how fast the mob is movingwalk - is the walked distancewalkAmount - is the walk speedpublic void flap(float speed,
float degree,
boolean invert,
float offset,
float weight,
float flap,
float flapAmount)
speed - is how fast the animation runsdegree - is how far the box will rotate;invert - will invert the rotationoffset - will offset the timing of the animationweight - will make the animation favor one direction more based on how fast the mob is movingflap - is the flapped distanceflapAmount - is the flap speedpublic void swing(float speed,
float degree,
boolean invert,
float offset,
float weight,
float swing,
float swingAmount)
speed - is how fast the animation runsdegree - is how far the box will rotate;invert - will invert the rotationoffset - will offset the timing of the animationweight - will make the animation favor one direction more based on how fast the mob is movingswing - is the swung distanceswingAmount - is the swing speedpublic void bob(float speed,
float degree,
boolean bounce,
float f,
float f1)
speed - is how fast the animation runs;degree - is how far the box will move;bounce - will make the box bounce;f - is the walked distance;f1 - is the walk speed.public AdvancedModelRenderer setTextureOffset(int textureOffsetX, int textureOffsetY)
setTextureOffset in class net.minecraft.client.model.ModelRendererpublic void transitionTo(AdvancedModelRenderer to, float timer, float maxTime)