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

28 lines
849 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;
2019-05-27 17:59:15 +02:00
public interface IPart extends PonyModelConstants {
2018-05-11 13:52:42 +02:00
/**
* Sets the model's various rotation angles.
2021-05-15 01:14:42 +02:00
* <p>
2018-05-11 13:52:42 +02:00
* See {@link AbstractPonyMode.setRotationAndAngle} for an explanation of the various parameters.
*/
2023-03-20 01:30:46 +00:00
default void setRotationAndAngles(ModelAttributes attributes, float move, float swing, float bodySwing, float ticks) {
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.
*/
void renderPart(MatrixStack stack, VertexConsumer vertices, int overlayUv, int lightUv, 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) {
}
2018-05-11 13:52:42 +02:00
}