forked from KryptonCaptain/Et-Futurum
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated raft item texture to be programmer art-styled
- Loading branch information
1 parent
2c78e6e
commit a3d0e01
Showing
9 changed files
with
75 additions
and
65 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
95 changes: 42 additions & 53 deletions
95
src/main/java/ganymedes01/etfuturum/client/model/ModelRaft.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,57 +1,46 @@ | ||
package ganymedes01.etfuturum.client.model; | ||
|
||
import net.minecraft.client.model.ModelBase; | ||
import net.minecraft.client.model.ModelRenderer; | ||
import net.minecraft.entity.Entity; | ||
|
||
public class ModelRaft extends ModelBase { | ||
// private final ModelRenderer leftPaddle; | ||
// private final ModelRenderer rightPaddle; | ||
// private final ImmutableList<ModelRenderer> parts; | ||
// | ||
// public RaftModel() { | ||
// this.leftPaddle = p_251383_.getChild("left_paddle"); | ||
// this.rightPaddle = p_251383_.getChild("right_paddle"); | ||
// this.parts = this.createPartsBuilder(p_251383_).build(); | ||
// } | ||
// | ||
// protected ImmutableList.Builder<ModelPart> createPartsBuilder(ModelRenderer p_250773_) { | ||
// ImmutableList.Builder<ModelPart> builder = new ImmutableList.Builder<>(); | ||
// builder.add(p_250773_.getChild("bottom"), this.leftPaddle, this.rightPaddle); | ||
// return builder; | ||
// } | ||
// | ||
// public static void createChildren(PartDefinition p_250262_) { | ||
// p_250262_.addOrReplaceChild("bottom", CubeListBuilder.create().texOffs(0, 0).addBox(-14.0F, -11.0F, -4.0F, 28.0F, 20.0F, 4.0F).texOffs(0, 0).addBox(-14.0F, -9.0F, -8.0F, 28.0F, 16.0F, 4.0F), PartPose.offsetAndRotation(0.0F, -2.0F, 1.0F, 1.5708F, 0.0F, 0.0F)); | ||
// int i = 20; | ||
// int j = 7; | ||
// int k = 6; | ||
// float f = -5.0F; | ||
// p_250262_.addOrReplaceChild("left_paddle", CubeListBuilder.create().texOffs(0, 24).addBox(-1.0F, 0.0F, -5.0F, 2.0F, 2.0F, 18.0F).addBox(-1.001F, -3.0F, 8.0F, 1.0F, 6.0F, 7.0F), PartPose.offsetAndRotation(3.0F, -4.0F, 9.0F, 0.0F, 0.0F, 0.19634955F)); | ||
// p_250262_.addOrReplaceChild("right_paddle", CubeListBuilder.create().texOffs(40, 24).addBox(-1.0F, 0.0F, -5.0F, 2.0F, 2.0F, 18.0F).addBox(0.001F, -3.0F, 8.0F, 1.0F, 6.0F, 7.0F), PartPose.offsetAndRotation(3.0F, -4.0F, -9.0F, 0.0F, (float)Math.PI, 0.19634955F)); | ||
// } | ||
// | ||
// public static LayerDefinition createBodyModel() { | ||
// MeshDefinition meshdefinition = new MeshDefinition(); | ||
// PartDefinition partdefinition = meshdefinition.getRoot(); | ||
// createChildren(partdefinition); | ||
// return LayerDefinition.create(meshdefinition, 128, 64); | ||
// } | ||
// | ||
// public void setupAnim(Boat p_249733_, float p_249202_, float p_252219_, float p_249366_, float p_249759_, float p_250286_) { | ||
// animatePaddle(p_249733_, 0, this.leftPaddle, p_249202_); | ||
// animatePaddle(p_249733_, 1, this.rightPaddle, p_249202_); | ||
// } | ||
// | ||
// public ImmutableList<ModelPart> parts() { | ||
// return this.parts; | ||
// } | ||
// | ||
// public void renderPaddle(EntityNewBoat boat, int paddle, float scale, float limbSwing) { | ||
// float f = p_250792_.getRowingTime(p_249947_, p_251990_); | ||
// p_248943_.xRot = Math.clampedLerp((-(float)Math.PI / 3F), -0.2617994F, (Math.sin(-f) + 1.0F) / 2.0F); | ||
// p_248943_.yRot = Math.clampedLerp((-(float)Math.PI / 4F), ((float)Math.PI / 4F), (Math.sin(-f + 1.0F) + 1.0F) / 2.0F); | ||
// if (p_249947_ == 1) { | ||
// p_248943_.yRot = (float)Math.PI - p_248943_.yRot; | ||
// } | ||
// | ||
// } | ||
public class ModelRaft extends ModelNewBoat { | ||
public ModelRaft() { | ||
super(new ModelRenderer[2], new ModelRenderer[2]); | ||
} | ||
|
||
@Override | ||
protected void setupModel() { | ||
this.boatSides[0] = (new ModelRenderer(this, 0, 0)).setTextureSize(128, 64); | ||
this.boatSides[1] = (new ModelRenderer(this, 0, 0)).setTextureSize(128, 64); | ||
|
||
this.boatSides[0].addBox(-14.0F, -11.0F, -4.0F, 28, 20, 4) | ||
.setRotationPoint(1.5708F, 0.0F, 0.0F); | ||
this.boatSides[1].addBox(-14.0F, -9.0F, -8.0F, 28, 16, 4) | ||
.setRotationPoint(1.5708F, 0.0F, 0.0F); | ||
boatSides[0].rotateAngleX = ((float) Math.PI / 2F); | ||
boatSides[0].offsetX = -0.09375F; | ||
boatSides[0].offsetY = -0.125F; | ||
boatSides[0].offsetZ = 0.09375F; | ||
boatSides[1].rotateAngleX = ((float) Math.PI / 2F); | ||
boatSides[1].offsetX = -0.09375F; | ||
boatSides[1].offsetY = -0.125F; | ||
boatSides[1].offsetZ = 0.09375F; | ||
this.paddles[0] = this.makePaddle(true); | ||
this.paddles[0].setRotationPoint(3.0F, -4.0F, 9.0F); | ||
this.paddles[1] = this.makePaddle(false); | ||
this.paddles[1].setRotationPoint(3.0F, -4.0F, 9.0F); | ||
this.paddles[1].rotateAngleY = (float) Math.PI; | ||
this.paddles[0].rotateAngleZ = this.paddles[1].rotateAngleZ = 0.19634955F; | ||
paddles[1].offsetZ = -1.0625F; | ||
} | ||
|
||
public void renderMultipass(Entity p_187054_1_, float p_187054_2_, float p_187054_3_, float p_187054_4_, float p_187054_5_, float p_187054_6_, float scale) { | ||
} | ||
|
||
ModelRenderer makePaddle(boolean p_187056_1_) { | ||
ModelRenderer modelrenderer = (new ModelRenderer(this, p_187056_1_ ? 0 : 40, 24)).setTextureSize(128, 64); | ||
modelrenderer.addBox(-1.0F, 0.0F, -5.0F, 2, 2, 18); | ||
modelrenderer.addBox(p_187056_1_ ? -1.001F : 0.01F, -3.0F, 8.0F, 1, 6, 7); | ||
return modelrenderer; | ||
} | ||
} |
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
Binary file modified
BIN
+2.19 KB
(760%)
src/main/resources/assets/minecraft/textures/items/bamboo_chest_raft.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.28 KB
(870%)
src/main/resources/assets/minecraft/textures/items/bamboo_raft.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.