forked from JDKDigital/productive-bees
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jais Djurhuus-Kempel
committed
Feb 5, 2021
1 parent
c3f1119
commit e9f366d
Showing
19 changed files
with
215 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 0 additions & 31 deletions
31
src/main/java/cy/jdkdigital/productivebees/client/render/entity/layers/SlimyGelLayer.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 20 additions & 51 deletions
71
src/main/java/cy/jdkdigital/productivebees/client/render/entity/model/SlimyBeeModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,31 @@ | ||
package cy.jdkdigital.productivebees.client.render.entity.model; | ||
|
||
import cy.jdkdigital.productivebees.common.entity.bee.ProductiveBeeEntity; | ||
import net.minecraft.client.renderer.model.Model; | ||
import net.minecraft.client.renderer.model.ModelRenderer; | ||
|
||
public class SlimyBeeModel<T extends ProductiveBeeEntity> extends ProductiveBeeModel<T> | ||
public class SlimyBeeModel extends MediumBeeModel | ||
{ | ||
public SlimyBeeModel(boolean outerLayer) { | ||
super(); | ||
public SlimyBeeModel(Model model, ModelRenderer body, ModelRenderer torso, ModelRenderer stinger, ModelRenderer leftAntenna, ModelRenderer rightAntenna, ModelRenderer leftWing, ModelRenderer rightWing, ModelRenderer middleLegs, ModelRenderer frontLegs, ModelRenderer backLegs, ModelRenderer externals, ModelRenderer innards, ModelRenderer santaHat) { | ||
super(model, body, torso, stinger, leftAntenna, rightAntenna, leftWing, rightWing, middleLegs, frontLegs, backLegs, externals, innards, santaHat); | ||
} | ||
|
||
ModelRenderer slime = new ModelRenderer(this, 0, 0); | ||
ModelRenderer innards = new ModelRenderer(this, 34, 0); | ||
@Override | ||
public void addBodyParts(boolean withTorso) { | ||
super.addBodyParts(false); | ||
addCrystals(); | ||
} | ||
|
||
if (!outerLayer) { | ||
addBodyParts(true); | ||
} else { | ||
slime.setRotationPoint(0.0F, 0.0F, 0.0F); | ||
slime.addBox(-3.5F, -4.0F, -5.0F, 7.0F, 7.0F, 10.0F, 0.0F); | ||
this.body.addChild(slime); | ||
@Override | ||
protected void addCrystals() { | ||
externals.setRotationPoint(0.0F, 0.0F, 0.0F); | ||
externals.addBox(-3.5F, -4.0F, -5.0F, 7.0F, 7.0F, 10.0F, 0.0F); | ||
body.addChild(externals); | ||
|
||
innards.setRotationPoint(0.0F, 0.0F, 0.0F); | ||
innards.addBox(-2.5F, -3.0F, -4.0F, 5.0F, 5.0F, 8.0F, 0.0F); | ||
this.body.addChild(innards); | ||
} | ||
innards.setRotationPoint(0.0F, 0.0F, 0.0F); | ||
innards.addBox(-2.5F, -3.0F, -4.0F, 5.0F, 5.0F, 8.0F, 0.0F); | ||
body.addChild(innards); | ||
} | ||
|
||
protected void addBodyParts(boolean withTorso) { | ||
this.body.setRotationPoint(0.0F, 19.0F, 0.0F); | ||
this.torso.setRotationPoint(0.0F, 0.0F, 0.0F); | ||
this.body.addChild(this.torso); | ||
this.stinger.addBox(0.0F, -1.0F, 5.0F, 0.0F, 1.0F, 2.0F, 0.0F); | ||
this.torso.addChild(this.stinger); | ||
this.leftAntenna.setRotationPoint(0.0F, -2.0F, -5.0F); | ||
this.leftAntenna.addBox(1.5F, -2.0F, -3.0F, 1.0F, 2.0F, 3.0F, 0.0F); | ||
this.rightAntenna.setRotationPoint(0.0F, -2.0F, -5.0F); | ||
this.rightAntenna.addBox(-2.5F, -2.0F, -3.0F, 1.0F, 2.0F, 3.0F, 0.0F); | ||
this.torso.addChild(this.leftAntenna); | ||
this.torso.addChild(this.rightAntenna); | ||
this.rightWing.setRotationPoint(-1.5F, -4.0F, -3.0F); | ||
this.rightWing.rotateAngleX = 0.0F; | ||
this.rightWing.rotateAngleY = -0.2618F; | ||
this.rightWing.rotateAngleZ = 0.0F; | ||
this.body.addChild(this.rightWing); | ||
this.rightWing.addBox(-9.0F, 0.0F, 0.0F, 9.0F, 0.0F, 6.0F, 0.001F); | ||
this.leftWing.setRotationPoint(1.5F, -4.0F, -3.0F); | ||
this.leftWing.rotateAngleX = 0.0F; | ||
this.leftWing.rotateAngleY = 0.2618F; | ||
this.leftWing.rotateAngleZ = 0.0F; | ||
this.leftWing.mirror = true; | ||
this.body.addChild(this.leftWing); | ||
this.leftWing.addBox(0.0F, 0.0F, 0.0F, 9.0F, 0.0F, 6.0F, 0.001F); | ||
this.frontLegs.setRotationPoint(1.5F, 3.0F, -2.0F); | ||
this.body.addChild(this.frontLegs); | ||
this.frontLegs.addBox("frontLegBox", -5.0F, 0.0F, 0.0F, 7, 2, 0, 0.0F, 26, 1); | ||
this.middleLegs.setRotationPoint(1.5F, 3.0F, 0.0F); | ||
this.body.addChild(this.middleLegs); | ||
this.middleLegs.addBox("midLegBox", -5.0F, 0.0F, 0.0F, 7, 2, 0, 0.0F, 26, 3); | ||
this.backLegs.setRotationPoint(1.5F, 3.0F, 2.0F); | ||
this.body.addChild(this.backLegs); | ||
this.backLegs.addBox("backLegBox", -5.0F, 0.0F, 0.0F, 7, 2, 0, 0.0F, 26, 5); | ||
} | ||
@Override | ||
protected void addSantaHat() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.