mirror of
https://github.com/veralol/VeraSpigotAPI.git
synced 2024-11-10 01:01:32 +01:00
Initial commit
This commit is contained in:
commit
2baac7430f
35
.gitignore
vendored
Normal file
35
.gitignore
vendored
Normal 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
26
pom.xml
Normal 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>
|
25
src/main/java/lol/vera/spigot/ApiImplementation.java
Normal file
25
src/main/java/lol/vera/spigot/ApiImplementation.java
Normal 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
13
src/main/java/lol/vera/spigot/VeraSpigotAPI.java
Normal file
13
src/main/java/lol/vera/spigot/VeraSpigotAPI.java
Normal 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();
|
||||||
|
|
||||||
|
}
|
@ -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();
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user