mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Added new cloud entity textures
This commit is contained in:
parent
124612d02e
commit
37e9c17940
4 changed files with 25 additions and 13 deletions
|
@ -5,25 +5,32 @@ import net.minecraft.client.model.ModelRenderer;
|
|||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class ModelCloud extends ModelBase {
|
||||
ModelRenderer body;
|
||||
|
||||
public ModelCloud() {
|
||||
init();
|
||||
}
|
||||
ModelRenderer body;
|
||||
|
||||
private void init() {
|
||||
body = new ModelRenderer(this, 0, 0);
|
||||
public ModelCloud() {
|
||||
init();
|
||||
}
|
||||
|
||||
body.addBox(-24, 5, -24, 48, 10, 48);
|
||||
private void init() {
|
||||
boxList.clear();
|
||||
|
||||
body.addBox(-10, 14.999F, -10, 30, 2, 30);
|
||||
body.addBox(-19.999F, 14.999F, -15, 15, 3, 25);
|
||||
body = new ModelRenderer(this, 0, 0);
|
||||
body.setTextureSize(250, 90);
|
||||
|
||||
body.addBox(-10, 3.001F, -10, 30, 2, 30);
|
||||
body.rotationPointY += 4.2;
|
||||
}
|
||||
body.setTextureOffset(0, 0);
|
||||
body.addBox(-24, 5, -24, 48, 10, 48);
|
||||
|
||||
public void render(Entity entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scale) {
|
||||
body.setTextureOffset(0, 58);
|
||||
body.addBox(-10, 14.999F, -10, 30, 2, 30);
|
||||
|
||||
body.setTextureOffset(120, 58);
|
||||
body.addBox(-10, 3.001F, -10, 30, 2, 30);
|
||||
|
||||
body.rotationPointY += 4.2;
|
||||
}
|
||||
|
||||
public void render(Entity entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scale) {
|
||||
body.render(scale);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,6 +18,7 @@ public class RenderCloud extends RenderLiving<EntityCloud> {
|
|||
super(rendermanagerIn, new ModelCloud(), 1f);
|
||||
}
|
||||
|
||||
@Override
|
||||
public float prepareScale(EntityCloud entity, float par2) {
|
||||
float scale = entity.getCloudSize();
|
||||
|
||||
|
@ -25,6 +26,7 @@ public class RenderCloud extends RenderLiving<EntityCloud> {
|
|||
return 0.0625F;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void renderModel(EntityCloud entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scaleFactor) {
|
||||
|
||||
if (!entity.isDead) {
|
||||
|
@ -48,6 +50,7 @@ public class RenderCloud extends RenderLiving<EntityCloud> {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ResourceLocation getEntityTexture(EntityCloud entity) {
|
||||
if (entity.getIsRaining() && entity.getIsThundering()) {
|
||||
return rainCloud;
|
||||
|
@ -55,10 +58,12 @@ public class RenderCloud extends RenderLiving<EntityCloud> {
|
|||
return cloud;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getColorMultiplier(EntityCloud par1EntityLivingBase, float yaw, float pitch) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected float getDeathMaxRotation(EntityCloud par1EntityLivingBase) {
|
||||
return 0;
|
||||
}
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 6.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 6.1 KiB |
Loading…
Reference in a new issue