forked from SteamWar/SteamWar
Add CraftbukkitWrapper21 for FightSystem
This commit is contained in:
@@ -0,0 +1,43 @@
|
|||||||
|
/*
|
||||||
|
* This file is a part of the SteamWar software.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2024 SteamWar.de-Serverteam
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Affero General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Affero General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
steamwar.java
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compileOnly(project(":FightSystem:FightSystem_Core", "default"))
|
||||||
|
compileOnly(project(":FightSystem:FightSystem_18", "default"))
|
||||||
|
|
||||||
|
compileOnly(libs.paperapi21) {
|
||||||
|
attributes {
|
||||||
|
// Very Hacky, but it works
|
||||||
|
attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 21)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
compileOnly(libs.nms21) {
|
||||||
|
attributes {
|
||||||
|
// Very Hacky, but it works
|
||||||
|
attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 21)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
compileOnly(libs.fastutil)
|
||||||
|
}
|
||||||
+30
@@ -0,0 +1,30 @@
|
|||||||
|
/*
|
||||||
|
* This file is a part of the SteamWar software.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2024 SteamWar.de-Serverteam
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Affero General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Affero General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package de.steamwar.fightsystem.utils;
|
||||||
|
|
||||||
|
import org.bukkit.entity.Entity;
|
||||||
|
|
||||||
|
public class CraftbukkitWrapper21 extends CraftbukkitWrapper18 {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public float headRotation(Entity e) {
|
||||||
|
return getEntity(e).bS();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -37,4 +37,5 @@ dependencies {
|
|||||||
implementation(project(":FightSystem:FightSystem_18"))
|
implementation(project(":FightSystem:FightSystem_18"))
|
||||||
implementation(project(":FightSystem:FightSystem_19"))
|
implementation(project(":FightSystem:FightSystem_19"))
|
||||||
implementation(project(":FightSystem:FightSystem_20"))
|
implementation(project(":FightSystem:FightSystem_20"))
|
||||||
|
implementation(project(":FightSystem:FightSystem_21"))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -198,6 +198,7 @@ include(
|
|||||||
"FightSystem:FightSystem_18",
|
"FightSystem:FightSystem_18",
|
||||||
"FightSystem:FightSystem_19",
|
"FightSystem:FightSystem_19",
|
||||||
"FightSystem:FightSystem_20",
|
"FightSystem:FightSystem_20",
|
||||||
|
"FightSystem:FightSystem_21",
|
||||||
"FightSystem:FightSystem_Core",
|
"FightSystem:FightSystem_Core",
|
||||||
"FightSystem:FightSystem_Standalone"
|
"FightSystem:FightSystem_Standalone"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user