mirror of
https://github.com/TeamMidnightDust/MidnightLib.git
synced 2025-12-16 17:25:09 +01:00
MidnightLib v0.2.0 for 21w19a
- MidnightConfig screens can be viewed from a new screen in the minecraft options - Code cleanup - Examples & Documentation - New Methods - Upgrade to 21w19a and Java 16 MidnightConfig v1.0.0: - The config screen no longer shows the entries of all instances of MidnightConfig - Compatible with servers! - Scrollable! - Comment support! - Fresh new design
This commit is contained in:
10
src/main/java/eu/midnightdust/hats/bunny/BunnyEarsModel.java
Normal file → Executable file
10
src/main/java/eu/midnightdust/hats/bunny/BunnyEarsModel.java
Normal file → Executable file
@@ -11,10 +11,8 @@ public class BunnyEarsModel<T extends LivingEntity> extends SinglePartEntityMode
|
||||
|
||||
public BunnyEarsModel(ModelPart root) {
|
||||
this.right_ear = root;
|
||||
|
||||
right_ear.setPivot(0.0F, -3.0F, -1.0F);
|
||||
|
||||
}
|
||||
}
|
||||
public static ModelData getModelData(){
|
||||
ModelData modelData = new ModelData();
|
||||
ModelPartData modelPartData = modelData.getRoot();
|
||||
@@ -35,10 +33,4 @@ public class BunnyEarsModel<T extends LivingEntity> extends SinglePartEntityMode
|
||||
public void render(MatrixStack matrixStack, VertexConsumer buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha){
|
||||
right_ear.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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user