This repository has been archived by the owner on Aug 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Showing
25 changed files
with
249 additions
and
267 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
1 change: 0 additions & 1 deletion
1
src/main/java/ladysnake/illuminations/client/gui/UpdateToast.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
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
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
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: 36 additions & 35 deletions
71
src/main/java/ladysnake/illuminations/client/render/entity/model/HaloModel.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,35 +1,36 @@ | ||
//// Made with Model Converter by Globox_Z | ||
//// Generate all required imports | ||
//// Made with Blockbench 3.8.4 | ||
//// Exported for Minecraft version 1.15 | ||
//// Paste this class into your mod and generate all required imports | ||
//package ladysnake.illuminations.client.render.entity.model; | ||
//import net.minecraft.client.model.Model; | ||
//public class HaloModel extends Model { | ||
// private final ModelPart head; | ||
// private final ModelPart crown; | ||
// public HaloModel(ModelPart root) { | ||
//this.head = root.getChild("head"); | ||
//this.crown = this.head.getChild("crown"); | ||
//} | ||
//public static TexturedModelData getTexturedModelData() { | ||
//ModelData modelData = new ModelData(); | ||
//ModelPartData modelPartData = modelData.getRoot(); | ||
//ModelPartData modelPartData1 = modelPartData.addChild("head", ModelPartBuilder.create().uv(0,32).cuboid(-4.0F, -8.0F, -4.0F, 8.0F, 8.0F, 8.0F, 0.0F, true), ModelTransform.pivot(0.0F,0.0F,0.0F)); | ||
//modelPartData1.addChild("crown", ModelPartBuilder.create().uv(0,0).cuboid(-8.0F, -11.0F, 5.0F, 16.0F, 16.0F, 0.0F, 0.0F, true), ModelTransform.pivot(0.0F,-4.0F,0.0F)); | ||
//return TexturedModelData.of(modelData,32,32); | ||
// } | ||
// @Override | ||
// public void setAngles(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) { | ||
// //previously the render function, render code was moved to a method below | ||
// } | ||
// @Override | ||
// public void render(MatrixStack matrixStack, VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) { | ||
// head.render(matrixStack, buffer, packedLight, packedOverlay); | ||
// } | ||
// public void setRotationAngle(ModelPart bone, float x, float y, float z) { | ||
// bone.pitch = x; | ||
// bone.yaw = y; | ||
// bone.roll = z; | ||
// } | ||
//} | ||
package ladysnake.illuminations.client.render.entity.model; | ||
|
||
import ladysnake.illuminations.client.IlluminationsClient; | ||
import net.minecraft.client.model.*; | ||
import net.minecraft.client.render.VertexConsumer; | ||
import net.minecraft.client.render.entity.EntityRendererFactory; | ||
import net.minecraft.client.render.entity.model.EntityModelLayer; | ||
import net.minecraft.client.util.math.MatrixStack; | ||
import net.minecraft.util.Identifier; | ||
|
||
public class HaloModel extends OverheadModel { | ||
public static final EntityModelLayer MODEL_LAYER = new EntityModelLayer(new Identifier(IlluminationsClient.MODID, "halo"), "main"); | ||
|
||
public HaloModel(EntityRendererFactory.Context ctx) { | ||
super(ctx, MODEL_LAYER); | ||
} | ||
|
||
public static TexturedModelData getTexturedModelData() { | ||
ModelData modelData = new ModelData(); | ||
ModelPartData modelPartData = modelData.getRoot(); | ||
ModelPartData modelPartData1 = modelPartData.addChild("head", ModelPartBuilder.create().uv(0, 7).cuboid(-4.0F, -8.0F, -4.0F, 8.0F, 8.0F, 8.0F, new Dilation(-4.0f)), ModelTransform.pivot(0.0F, 0.0F, 0.0F)); | ||
modelPartData1.addChild("halo", ModelPartBuilder.create().uv(0, 0).cuboid(-8.0F, -11.0F, 5.0F, 16.0F, 16.0F, 0.0F), ModelTransform.pivot(0.0F, -4.0F, 0.0F)); | ||
return TexturedModelData.of(modelData, 32, 48); | ||
} | ||
|
||
@Override | ||
public void render(MatrixStack matrixStack, VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha) { | ||
head.render(matrixStack, buffer, packedLight, packedOverlay); | ||
} | ||
|
||
public void setRotationAngle(ModelPart bone, float x, float y, float z) { | ||
bone.pitch = x; | ||
bone.yaw = y; | ||
bone.roll = z; | ||
} | ||
} |
Oops, something went wrong.