Drop lombok, it has been causing too much confusion
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).
This commit is contained in:
@@ -10,8 +10,6 @@ import com.replaymod.replay.ReplayModReplay;
|
||||
import com.replaymod.replay.Setting;
|
||||
import com.replaymod.replay.mixin.FirstPersonRendererAccessor;
|
||||
import com.replaymod.replaystudio.util.Location;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
import net.minecraft.client.network.AbstractClientPlayerEntity;
|
||||
import net.minecraft.client.network.ClientPlayNetworkHandler;
|
||||
@@ -105,8 +103,6 @@ public class CameraEntity
|
||||
*/
|
||||
public float roll;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
private CameraController cameraController;
|
||||
|
||||
private long lastControllerUpdate = System.currentTimeMillis();
|
||||
@@ -166,6 +162,14 @@ public class CameraEntity
|
||||
}
|
||||
}
|
||||
|
||||
public CameraController getCameraController() {
|
||||
return cameraController;
|
||||
}
|
||||
|
||||
public void setCameraController(CameraController cameraController) {
|
||||
this.cameraController = cameraController;
|
||||
}
|
||||
|
||||
/**
|
||||
* Moves the camera by the specified delta.
|
||||
* @param x Delta in X direction
|
||||
|
||||
@@ -2,7 +2,6 @@ package com.replaymod.replay.camera;
|
||||
|
||||
import com.replaymod.replay.ReplayModReplay;
|
||||
import com.replaymod.replay.mixin.EntityPlayerAccessor;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
import net.minecraft.client.options.KeyBinding;
|
||||
import net.minecraft.entity.Entity;
|
||||
@@ -21,10 +20,13 @@ import java.util.Arrays;
|
||||
|
||||
import static com.replaymod.core.versions.MCVer.*;
|
||||
|
||||
@RequiredArgsConstructor
|
||||
public class SpectatorCameraController implements CameraController {
|
||||
private final CameraEntity camera;
|
||||
|
||||
public SpectatorCameraController(CameraEntity camera) {
|
||||
this.camera = camera;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(float partialTicksPassed) {
|
||||
MinecraftClient mc = getMinecraft();
|
||||
|
||||
Reference in New Issue
Block a user