-
Notifications
You must be signed in to change notification settings - Fork 4
/
TombStoneModel.java
38 lines (31 loc) · 1016 Bytes
/
TombStoneModel.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package TombStone;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class TombStoneModel extends ModelBase
{
public ModelRenderer tombBase;
public ModelRenderer tombHeadstone;
public TombStoneModel()
{
this.tombBase = new ModelRenderer(this, 0, 0);
this.tombBase.textureWidth = 64;
this.tombBase.textureHeight = 64;
this.tombBase.addBox(-8.0F, -12.0F, -6.5F, 16, 3, 13, 0.0F);
this.tombHeadstone = new ModelRenderer(this, 0, 0);
this.tombHeadstone.textureWidth = 64;
this.tombHeadstone.textureHeight = 64;
this.tombHeadstone.addBox(-5.0F, -9.0F, -2.0F, 10, 13, 4, 0.0F);
}
public void renderBase()
{
this.tombBase.render(0.0625F);
}
public void renderHeadstone()
{
this.tombHeadstone.render(0.0625F);
}
}