package net.minecraft.client.model;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import java.util.List;
import java.util.Map;
import java.util.Random;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
public abstract class ModelBase
{
public float swingProgress;
public boolean isRiding;
public boolean isChild = true;
/**
* This is a list of all the boxes (ModelRenderer.class) in the current model.
*/
public List boxList = Lists.newArrayList();
/** A mapping for all texture offsets */
private Map modelTextureMap = Maps.newHashMap();
public int textureWidth = 64;
public int textureHeight = 32;
private static final String __OBFID = "CL_00000845";
/**
* Sets the models various rotation angles then renders the model.
*/
public void render(Entity p_78088_1_, float p_78088_2_, float p_78088_3_, float p_78088_4_, float p_78088_5_, float p_78088_6_, float p_78088_7_) {}
/**
* Sets the model's various rotation angles. For bipeds, par1 and par2 are used for animating the movement of arms
* and legs, where par1 represents the time(so that arms and legs swing back and forth) and par2 represents how
* "far" arms and legs can swing at most.
*/
public void setRotationAngles(float p_78087_1_, float p_78087_2_, float p_78087_3_, float p_78087_4_, float p_78087_5_, float p_78087_6_, Entity p_78087_7_) {}
/**
* Used for easily adding entity-dependent animations. The second and third float params here are the same second
* and third as in the setRotationAngles method.
*/
public void setLivingAnimations(EntityLivingBase p_78086_1_, float p_78086_2_, float p_78086_3_, float p_78086_4_) {}
public ModelRenderer getRandomModelBox(Random p_85181_1_)
{
return (ModelRenderer)this.boxList.get(p_85181_1_.nextInt(this.boxList.size()));
}
protected void setTextureOffset(String p_78085_1_, int p_78085_2_, int p_78085_3_)
{
this.modelTextureMap.put(p_78085_1_, new TextureOffset(p_78085_2_, p_78085_3_));
}
public TextureOffset getTextureOffset(String p_78084_1_)
{
return (TextureOffset)this.modelTextureMap.get(p_78084_1_);
}
public static void func_178685_a(ModelRenderer p_178685_0_, ModelRenderer p_178685_1_)
{
p_178685_1_.rotateAngleX = p_178685_0_.rotateAngleX;
p_178685_1_.rotateAngleY = p_178685_0_.rotateAngleY;
p_178685_1_.rotateAngleZ = p_178685_0_.rotateAngleZ;
p_178685_1_.rotationPointX = p_178685_0_.rotationPointX;
p_178685_1_.rotationPointY = p_178685_0_.rotationPointY;
p_178685_1_.rotationPointZ = p_178685_0_.rotationPointZ;
}
public void setModelAttributes(ModelBase p_178686_1_)
{
this.swingProgress = p_178686_1_.swingProgress;
this.isRiding = p_178686_1_.isRiding;
this.isChild = p_178686_1_.isChild;
}
}