MineLittlePony/src/main/java/com/minelittlepony/api/model/IPart.java

26 lines
747 B
Java
Raw Normal View History

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;
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.
*/
default void setVisible(boolean visible, ModelAttributes attributes) {
2018-06-02 18:05:33 +02:00
}
2018-05-11 13:52:42 +02:00
}