Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Config for holiday feature and student model (#3204)
* Config for holiday feature and student model
- Loading branch information
Showing
17 changed files
with
194 additions
and
1 deletion.
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
177 changes: 177 additions & 0 deletions
177
src/main/java/com/minecolonies/coremod/client/model/ModelEntityStudentMale.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 |
---|---|---|
@@ -0,0 +1,177 @@ | ||
package com.minecolonies.coremod.client.model; | ||
|
||
import net.minecraft.client.model.ModelBiped; | ||
import net.minecraft.client.model.ModelRenderer; | ||
import net.minecraft.entity.Entity; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
/** | ||
* Model for the male students (monks). | ||
*/ | ||
public class ModelEntityStudentMale extends ModelBiped | ||
{ | ||
public ModelEntityStudentMale() | ||
{ | ||
ModelRenderer front; | ||
ModelRenderer back; | ||
ModelRenderer left; | ||
ModelRenderer right; | ||
ModelRenderer armCHorizontal; | ||
ModelRenderer rightArmC; | ||
ModelRenderer leftArmC; | ||
ModelRenderer belly; | ||
ModelRenderer bellyU; | ||
ModelRenderer helmet; | ||
|
||
textureWidth = 128; | ||
textureHeight = 64; | ||
|
||
front = new ModelRenderer(this, 16, 48); | ||
front.addBox(0F, 0F, 1F, 8, 8, 0); | ||
front.setRotationPoint(-4F, 12F, -3F); | ||
front.setTextureSize(128, 64); | ||
front.mirror = true; | ||
setRotation(front, 0F, 0F, 0F); | ||
|
||
back = new ModelRenderer(this, 16, 40); | ||
back.addBox(0F, 0F, 1F, 8, 8, 0); | ||
back.setRotationPoint(-4F, 12F, 3F); | ||
back.setTextureSize(128, 64); | ||
back.mirror = true; | ||
setRotation(back, 0F, 0F, 0F); | ||
|
||
left = new ModelRenderer(this, 16, 34); | ||
left.addBox(0F, 0F, 1F, 0, 8, 6); | ||
left.setRotationPoint(4F, 12F, -3F); | ||
left.setTextureSize(128, 64); | ||
left.mirror = true; | ||
setRotation(left, 0F, 0F, 0F); | ||
|
||
right = new ModelRenderer(this, 16, 34); | ||
right.addBox(0F, 0F, 1F, 0, 8, 6); | ||
right.setRotationPoint(-4F, 12F, -3F); | ||
right.setTextureSize(128, 64); | ||
right.mirror = true; | ||
setRotation(right, 0F, 0F, 0F); | ||
|
||
armCHorizontal = new ModelRenderer(this, 0, 56); | ||
armCHorizontal.addBox(0F, -1F, 1F, 16, 4, 4); | ||
armCHorizontal.setRotationPoint(-8F, 3.8F, -3.5F); | ||
armCHorizontal.setTextureSize(128, 64); | ||
armCHorizontal.mirror = true; | ||
setRotation(armCHorizontal, -0.4886922F, 0F, 0F); | ||
|
||
rightArmC = new ModelRenderer(this, 0, 44); | ||
rightArmC.addBox(0F, 0F, 1F, 4, 8, 4); | ||
rightArmC.setRotationPoint(-8F, -0.5F, -1F); | ||
rightArmC.setTextureSize(128, 64); | ||
rightArmC.mirror = true; | ||
setRotation(rightArmC, -0.5061455F, 0F, 0F); | ||
|
||
leftArmC = new ModelRenderer(this, 0, 44); | ||
leftArmC.addBox(0F, 0F, 1F, 4, 8, 4); | ||
leftArmC.setRotationPoint(4F, -0.5F, -1F); | ||
leftArmC.setTextureSize(128, 64); | ||
leftArmC.mirror = true; | ||
setRotation(leftArmC, -0.5061455F, 0F, 0F); | ||
|
||
bipedRightArm = new ModelRenderer(this, 44, 16); | ||
bipedRightArm.addBox(-3F, -2F, -2F, 4, 12, 4); | ||
bipedRightArm.setRotationPoint(-5F, 2F, 0F); | ||
bipedRightArm.setTextureSize(128, 64); | ||
bipedRightArm.mirror = true; | ||
setRotation(bipedRightArm, 0F, 0F, 0F); | ||
|
||
bipedLeftArm = new ModelRenderer(this, 44, 16); | ||
bipedLeftArm.addBox(-1F, -2F, -2F, 4, 12, 4); | ||
bipedLeftArm.setRotationPoint(5F, 2F, 0F); | ||
bipedLeftArm.setTextureSize(128, 64); | ||
bipedLeftArm.mirror = true; | ||
setRotation(bipedLeftArm, 0F, 0F, 0F); | ||
|
||
belly = new ModelRenderer(this, 29, 34); | ||
belly.addBox(0F, 0F, 1F, 6, 4, 1); | ||
belly.setRotationPoint(-3F, 6F, -4F); | ||
belly.setTextureSize(128, 64); | ||
belly.mirror = true; | ||
setRotation(belly, 0F, 0F, 0F); | ||
|
||
bellyU = new ModelRenderer(this, 19, 29); | ||
bellyU.addBox(0F, 0F, 1F, 4, 1, 1); | ||
bellyU.setRotationPoint(-2F, 5F, -4F); | ||
bellyU.setTextureSize(128, 64); | ||
bellyU.mirror = true; | ||
setRotation(bellyU, 0F, 0F, 0F); | ||
|
||
bipedRightLeg = new ModelRenderer(this, 0, 16); | ||
bipedRightLeg.addBox(-2F, 0F, -2F, 4, 12, 4); | ||
bipedRightLeg.setRotationPoint(-2F, 12F, 0F); | ||
bipedRightLeg.setTextureSize(128, 64); | ||
bipedRightLeg.mirror = true; | ||
setRotation(bipedRightLeg, 0F, 0F, 0F); | ||
|
||
bipedLeftLeg = new ModelRenderer(this, 0, 16); | ||
bipedLeftLeg.addBox(-2F, 0F, -2F, 4, 12, 4); | ||
bipedLeftLeg.setRotationPoint(2F, 12F, 0F); | ||
bipedLeftLeg.setTextureSize(128, 64); | ||
bipedLeftLeg.mirror = true; | ||
setRotation(bipedLeftLeg, 0F, 0F, 0F); | ||
|
||
bipedBody = new ModelRenderer(this, 16, 16); | ||
bipedBody.addBox(-4F, 0F, -2F, 8, 12, 6); | ||
bipedBody.setRotationPoint(0F, 0F, -1F); | ||
bipedBody.setTextureSize(128, 64); | ||
bipedBody.mirror = true; | ||
setRotation(bipedBody, 0F, 0F, 0F); | ||
|
||
bipedHead = new ModelRenderer(this, 0, 0); | ||
bipedHead.addBox(-4F, -8F, -4F, 8, 8, 8); | ||
bipedHead.setRotationPoint(0F, 0F, 0F); | ||
bipedHead.setTextureSize(128, 64); | ||
bipedHead.mirror = true; | ||
setRotation(bipedHead, 0F, 0F, 0F); | ||
|
||
helmet = new ModelRenderer(this, 40, 46); | ||
helmet.addBox(0F, 0F, 0F, 9, 9, 9); | ||
helmet.setRotationPoint(-4.5F, -8.5F, -4.5F); | ||
helmet.setTextureSize(128, 64); | ||
helmet.mirror = true; | ||
setRotation(helmet, 0F, 0F, 0F); | ||
|
||
this.bipedBody.addChild(belly); | ||
this.bipedBody.addChild(bellyU); | ||
this.bipedBody.addChild(front); | ||
this.bipedBody.addChild(back); | ||
this.bipedBody.addChild(right); | ||
this.bipedBody.addChild(left); | ||
this.bipedBody.addChild(armCHorizontal); | ||
|
||
this.bipedHead.addChild(helmet); | ||
|
||
|
||
this.bipedBody.addChild(leftArmC); | ||
this.bipedBody.addChild(rightArmC); | ||
|
||
} | ||
|
||
@Override | ||
public void render( | ||
@NotNull final Entity entity, | ||
final float limbSwing, | ||
final float limbSwingAmount, | ||
final float ageInTicks, | ||
final float netHeadYaw, | ||
final float headPitch, | ||
final float scaleFactor) | ||
{ | ||
super.render(entity, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scaleFactor); | ||
setRotationAngles(limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scaleFactor, entity); | ||
} | ||
|
||
private void setRotation(@NotNull final ModelRenderer model, final float x, final float y, final float z) | ||
{ | ||
model.rotateAngleX = x; | ||
model.rotateAngleY = y; | ||
model.rotateAngleZ = z; | ||
} | ||
} |
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
Binary file added
BIN
+6.88 KB
src/main/resources/assets/minecolonies/textures/entity/studentfemale1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.38 KB
src/main/resources/assets/minecolonies/textures/entity/studentfemale2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.73 KB
src/main/resources/assets/minecolonies/textures/entity/studentfemale3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.88 KB
src/main/resources/assets/minecolonies/textures/entity/studentfemale4.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.38 KB
src/main/resources/assets/minecolonies/textures/entity/studentfemale5.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.73 KB
src/main/resources/assets/minecolonies/textures/entity/studentfemale6.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.62 KB
src/main/resources/assets/minecolonies/textures/entity/studentmale1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.75 KB
src/main/resources/assets/minecolonies/textures/entity/studentmale2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.71 KB
src/main/resources/assets/minecolonies/textures/entity/studentmale4.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.71 KB
src/main/resources/assets/minecolonies/textures/entity/studentmale6.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.