2021-02-06 16:52:06 +02:00
|
|
|
package com.minelittlepony.api.model;
|
2018-05-11 13:52:42 +02:00
|
|
|
|
2019-11-23 19:28:42 +02:00
|
|
|
import net.minecraft.client.render.VertexConsumer;
|
|
|
|
import net.minecraft.client.util.math.MatrixStack;
|
|
|
|
|
2023-03-28 15:53:14 +01:00
|
|
|
public interface IPart {
|
2018-05-11 13:52:42 +02:00
|
|
|
/**
|
|
|
|
* Sets the model's various rotation angles.
|
|
|
|
*/
|
2023-03-29 21:35:01 +01:00
|
|
|
default void setPartAngles(ModelAttributes attributes, float limbAngle, float limbSpeed, float bodySwing, float animationProgress) {
|
2018-08-15 17:14:40 +02:00
|
|
|
|
2018-10-12 18:09:40 +02:00
|
|
|
}
|
2018-05-11 13:52:42 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Renders this model component.
|
|
|
|
*/
|
2023-03-29 21:35:01 +01:00
|
|
|
void renderPart(MatrixStack stack, VertexConsumer vertices, int overlay, int light, float red, float green, float blue, float alpha, ModelAttributes attributes);
|
2018-06-02 18:05:33 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets whether this part should be rendered.
|
|
|
|
*/
|
2023-03-22 11:14:12 +00:00
|
|
|
default void setVisible(boolean visible, ModelAttributes attributes) {
|
2018-06-02 18:05:33 +02:00
|
|
|
|
|
|
|
}
|
2018-05-11 13:52:42 +02:00
|
|
|
}
|