30 lines
650 B
Java
30 lines
650 B
Java
package eu.crushedpixel.replaymod.holders;
|
|
|
|
import eu.crushedpixel.replaymod.interpolation.Interpolate;
|
|
import eu.crushedpixel.replaymod.interpolation.KeyframeValue;
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.Data;
|
|
import lombok.NoArgsConstructor;
|
|
import net.minecraft.util.BlockPos;
|
|
|
|
@Data
|
|
@AllArgsConstructor
|
|
@NoArgsConstructor
|
|
public class Position implements KeyframeValue {
|
|
|
|
@Interpolate
|
|
public double x, y, z;
|
|
|
|
@Override
|
|
public Position newInstance() {
|
|
return new Position();
|
|
}
|
|
|
|
public Position(BlockPos pos) {
|
|
this.x = pos.getX();
|
|
this.y = pos.getY();
|
|
this.z = pos.getZ();
|
|
}
|
|
|
|
}
|