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

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

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

import net.minecraft.class_1160;

/**
 * This vertex's position can be changed.
 */
public class RepositionableVertex implements IRepositionableVertex {
    public final float u;
    public final float v;
    protected final RememberingPos pos;

    public RepositionableVertex(float u, float v, RememberingPos pos) {
        this.u = u;
        this.v = v;
        this.pos = pos;
    }


    @Override
    public RepositionableVertex remap(float u, float v){
        return new RepositionableVertex(u, v, this.pos);
    }

    @Override
    public class_1160 getPos() {
        return pos.getPos();
    }

    @Override
    public float getU() {
        return this.u;
    }

    @Override
    public float getV() {
        return this.v;
    }


    public RememberingPos getPosObject(){
        return this.pos;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy