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

26 lines
712 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;
2023-09-26 01:45:28 +01:00
public interface SubModel {
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.
*/
2024-06-04 23:43:55 +01:00
void renderPart(MatrixStack stack, VertexConsumer vertices, int overlay, int light, int color, 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
}