All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.kosmx.bendylib.impl.IVertex Maven / Gradle / Ivy

The newest version!
package io.github.kosmx.bendylib.impl;

import net.minecraft.class_1160;
import net.minecraft.class_630;

/**
 * To create custom Vertices
 * You can use {@link Vertex} or {@link RepositionableVertex}
 */
public interface IVertex {

    /**
     * get the vertex's position
     * @return pos
     */
    class_1160 getPos();

    /**
     * get texture u coordinate
     * @return texture U
     */
    float getU();

    /**
     * get texture v coordinate
     * @return texture V
     */
    float getV();

    /**
     * Keep the original position, set unique texture coordinates.
     * @param u Texture U
     * @param v Texture V
     * @return The remapped IVertex
     */
    IVertex remap(float u, float v);

    default class_630.class_618 toMojVertex(){
        return new class_630.class_618(this.getPos(), getU(), getV());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy