Initial commit

This commit is contained in:
Freddie 2023-04-17 22:06:34 +01:00
commit 2baac7430f
5 changed files with 142 additions and 0 deletions

35
.gitignore vendored Normal file
View File

@ -0,0 +1,35 @@
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
### IntelliJ IDEA ###
.idea/
*.iws
*.iml
*.ipr
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store

26
pom.xml Normal file
View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>lol.vera.spigot</groupId>
<artifactId>VeraSpigotAPI</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.26</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,25 @@
package lol.vera.spigot;
import lol.vera.spigot.knockback.KnockbackProfile;
public interface ApiImplementation {
KnockbackProfile getActiveKnockbackProfile();
KnockbackProfile getKnockbackProfile(String name);
class DEFAULT implements ApiImplementation {
@Override
public KnockbackProfile getActiveKnockbackProfile() {
return null;
}
@Override
public KnockbackProfile getKnockbackProfile(String name) {
return null;
}
}
}

View File

@ -0,0 +1,13 @@
package lol.vera.spigot;
import lombok.Data;
@Data
public class VeraSpigotAPI {
public static VeraSpigotAPI INSTANCE = new VeraSpigotAPI();
private ApiImplementation implementation = new ApiImplementation.DEFAULT();
}

View File

@ -0,0 +1,43 @@
package lol.vera.spigot.knockback;
public interface KnockbackProfile {
String getName();
double getFriction();
double getVertical();
double getHorizontal();
double getVerticalLimit();
double getExtraVertical();
double getExtraHorizontal();
double getEntitySlowdown();
double getDamageTicks();
boolean isAutoWTap();
boolean isOnePointSeven();
double getRodSpeed();
double getBowSpeed();
double getPearlSpeed();
double getPotionSpeed();
double getPotionIntensity();
double getPotionOffset();
double getPotionDistance();
Integer getPotionTicks();
}