MineLittlePony/src/main/java/com/minelittlepony/api/model/IPart.java
2023-03-29 21:35:01 +01:00

25 lines
747 B
Java

package com.minelittlepony.api.model;
import net.minecraft.client.render.VertexConsumer;
import net.minecraft.client.util.math.MatrixStack;
public interface IPart {
/**
* Sets the model's various rotation angles.
*/
default void setPartAngles(ModelAttributes attributes, float limbAngle, float limbSpeed, float bodySwing, float animationProgress) {
}
/**
* Renders this model component.
*/
void renderPart(MatrixStack stack, VertexConsumer vertices, int overlay, int light, float red, float green, float blue, float alpha, ModelAttributes attributes);
/**
* Sets whether this part should be rendered.
*/
default void setVisible(boolean visible, ModelAttributes attributes) {
}
}