Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fr.hugoland.rpmod.client.models;
- import net.minecraft.client.model.ModelBase;
- import net.minecraft.client.model.ModelRenderer;
- public class ModelPancarte extends ModelBase
- {
- //fields
- ModelRenderer Base;
- ModelRenderer Horizontal;
- public ModelPancarte()
- {
- textureWidth = 64;
- textureHeight = 32;
- Base = new ModelRenderer(this, 0, 0);
- Base.addBox(0F, 0F, 0F, 14, 10, 2);
- Base.setRotationPoint(-7F, 11F, 4F);
- Base.setTextureSize(64, 32);
- setRotation(Base, 0F, 0F, 0F);
- Horizontal = new ModelRenderer(this, 33, 0);
- Horizontal.addBox(0F, 0F, 0F, 2, 2, 8);
- Horizontal.setRotationPoint(-1F, 15F, 6F);
- Horizontal.setTextureSize(64, 32);
- setRotation(Horizontal, 0F, 0F, 0F);
- }
- public void renderAll()
- {
- Base.render(0.0625F);
- Horizontal.render(0.0625F);
- }
- private void setRotation(ModelRenderer model, float x, float y, float z)
- {
- model.rotateAngleX = x;
- model.rotateAngleY = y;
- model.rotateAngleZ = z;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement