Created CustomObjectRenderer to allow for BufferedImages to be rendered at a given Position. This supports Zoom and Rotation on all 3 axes.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package eu.crushedpixel.replaymod.holders;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ExtendedPosition extends Position {
|
||||
|
||||
public ExtendedPosition(double x, double y, double z, float width, float height) {
|
||||
super(x, y, z, 0, 0);
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
}
|
||||
|
||||
private float anchorX, anchorY;
|
||||
private float width, height;
|
||||
private float scale = 1f;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user