Basically the result of the Delombok function, except we use IntelliJ's equals, hashCode and toString and don't re-organize imports (cause that breaks the preprocessor) and a bunch of manual cleanup was necessary (and half the classes weren't even converted).
33 lines
746 B
Java
33 lines
746 B
Java
package com.replaymod.render.frame;
|
|
|
|
import com.replaymod.render.rendering.Frame;
|
|
import de.johni0702.minecraft.gui.utils.lwjgl.ReadableDimension;
|
|
|
|
import java.nio.ByteBuffer;
|
|
|
|
public class OpenGlFrame implements Frame {
|
|
private final int frameId;
|
|
|
|
private final ReadableDimension size;
|
|
|
|
private final ByteBuffer byteBuffer;
|
|
|
|
public OpenGlFrame(int frameId, ReadableDimension size, ByteBuffer byteBuffer) {
|
|
this.frameId = frameId;
|
|
this.size = size;
|
|
this.byteBuffer = byteBuffer;
|
|
}
|
|
|
|
public int getFrameId() {
|
|
return this.frameId;
|
|
}
|
|
|
|
public ReadableDimension getSize() {
|
|
return this.size;
|
|
}
|
|
|
|
public ByteBuffer getByteBuffer() {
|
|
return this.byteBuffer;
|
|
}
|
|
}
|