io.github.kosmx.bendylib.impl.RepositionableVertex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bendy-lib Show documentation
Show all versions of bendy-lib Show documentation
Minecraft FabricMC model render library
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