-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
abae4de
commit c01961e
Showing
94 changed files
with
227 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
api/src/main/java/com/redmagic/undefinedapi/nms/PlayerInteract.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.redmagic.undefinedapi.nms | ||
|
||
class PlayerInteract(val actionType: ClickType, val nmsPlayer: NMSPlayer) | ||
|
||
enum class ClickType { | ||
|
||
RIGHT_CLICK, | ||
LEFT_CLICK | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,7 @@ tasks { | |
} | ||
|
||
runServer { | ||
minecraftVersion("1.20.5") | ||
minecraftVersion("1.20.6") | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
v1_20_4/src/main/java/com/redmagic/undefinedapi/NMSManager1_20_4.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.redmagic.undefinedapi | ||
|
||
import com.redmagic.undefinedapi.nms.NMSPlayer | ||
import com.redmagic.undefinedapi.nms.PlayerInteract | ||
|
||
object NMSManager1_20_4 { | ||
|
||
val npcInteraction: HashMap<NMSPlayer, PlayerInteract.() -> Unit> = hashMapOf() | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
v1_20_5/src/main/java/com/redmagic/undefinedapi/NMSManager1_20_5.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.redmagic.undefinedapi | ||
|
||
import com.redmagic.undefinedapi.nms.NMSPlayer | ||
import com.redmagic.undefinedapi.nms.PlayerInteract | ||
|
||
object NMSManager1_20_5 { | ||
|
||
val npcInteraction: HashMap<NMSPlayer, PlayerInteract.() -> Unit> = hashMapOf() | ||
|
||
} |
5 changes: 4 additions & 1 deletion
5
v1_20_5/src/main/java/com/redmagic/undefinedapi/PlayerExtension1_20_5.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
package com.redmagic.undefinedapi | ||
|
||
import net.minecraft.network.protocol.game.ServerboundSwingPacket | ||
import net.minecraft.server.network.ServerGamePacketListenerImpl | ||
import org.bukkit.craftbukkit.entity.CraftPlayer | ||
import org.bukkit.entity.Player | ||
|
||
|
||
fun Player.getConnection(): ServerGamePacketListenerImpl = (this as CraftPlayer).handle.connection | ||
fun Player.getConnection(): ServerGamePacketListenerImpl = (this as CraftPlayer).handle.connection | ||
|
||
fun isRemapped(): Boolean = ServerboundSwingPacket::class.java.name == "net.minecraft.network.protocol.game.ServerboundSwingPacket" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Command: C:\Users\lijnb\.jdks\corretto-21.0.3\bin\java.exe -Xmx1G -classpath C:\Users\lijnb\.gradle\caches\modules-2\files-2.1\net.fabricmc\tiny-remapper\0.10.2\7b43b2f5baba09a38834e317ea020f82aa78ddd6\tiny-remapper-0.10.2-fat.jar net.fabricmc.tinyremapper.Main C:\Users\lijnb\IdeaProjects\UndefinedAPI\v1_20_6\build\libs\v1_20_6-0.4.49-dev.jar C:\Users\lijnb\IdeaProjects\UndefinedAPI\v1_20_6\build\libs\v1_20_6-0.4.49.jar C:\Users\lijnb\.gradle\caches\paperweight-userdev\ff775525efc29c3503a07d1006e63e5695a742b7505cf63e157d49d32419c69f\module\io.papermc.paper\dev-bundle\1.20.6-R0.1-SNAPSHOT\paperweight\setupCache\extractDevBundle.dir\data\mojang+yarn-spigot-reobf.tiny mojang+yarn spigot C:\Users\lijnb\.gradle\caches\paperweight-userdev\ff775525efc29c3503a07d1006e63e5695a742b7505cf63e157d49d32419c69f\module\io.papermc.paper\dev-bundle\1.20.6-R0.1-SNAPSHOT\paperweight\setupCache\applyMojangMappedPaperclipPatch.jar --threads=1 | ||
Finished after 1699,82 ms. | ||
Command: C:\Users\lijnb\.jdks\corretto-21.0.3\bin\java.exe -Xmx1G -classpath C:\Users\lijnb\.gradle\caches\modules-2\files-2.1\net.fabricmc\tiny-remapper\0.10.2\7b43b2f5baba09a38834e317ea020f82aa78ddd6\tiny-remapper-0.10.2-fat.jar net.fabricmc.tinyremapper.Main C:\Users\lijnb\IdeaProjects\UndefinedAPI\v1_20_6\build\libs\v1_20_6-0.5.00-dev.jar C:\Users\lijnb\IdeaProjects\UndefinedAPI\v1_20_6\build\libs\v1_20_6-0.5.00.jar C:\Users\lijnb\.gradle\caches\paperweight-userdev\ff775525efc29c3503a07d1006e63e5695a742b7505cf63e157d49d32419c69f\module\io.papermc.paper\dev-bundle\1.20.6-R0.1-SNAPSHOT\paperweight\setupCache\extractDevBundle.dir\data\mojang+yarn-spigot-reobf.tiny mojang+yarn spigot C:\Users\lijnb\.gradle\caches\paperweight-userdev\ff775525efc29c3503a07d1006e63e5695a742b7505cf63e157d49d32419c69f\module\io.papermc.paper\dev-bundle\1.20.6-R0.1-SNAPSHOT\paperweight\setupCache\applyMojangMappedPaperclipPatch.jar --threads=1 | ||
Finished after 1484,59 ms. |
Binary file modified
BIN
+347 Bytes
(130%)
v1_20_6/build/classes/kotlin/main/com/redmagic/undefinedapi/PlayerExtension1_20_6Kt.class
Binary file not shown.
Binary file modified
BIN
+359 Bytes
(110%)
...om/redmagic/undefinedapi/event/PacketListenerManager1_20_6$1$channelDuplexHandler$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...classes/kotlin/main/com/redmagic/undefinedapi/event/PacketListenerManager1_20_6$2$1.class
Binary file not shown.
Binary file modified
BIN
+228 Bytes
(110%)
...gic/undefinedapi/event/PacketListenerManager1_20_6$special$$inlined$event$default$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...gic/undefinedapi/event/PacketListenerManager1_20_6$special$$inlined$event$default$2.class
Binary file not shown.
Binary file modified
BIN
+3.83 KB
(220%)
...ild/classes/kotlin/main/com/redmagic/undefinedapi/event/PacketListenerManager1_20_6.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/classes/kotlin/main/com/redmagic/undefinedapi/npc/NMSPlayer1_20_6$name$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...asses/kotlin/main/com/redmagic/undefinedapi/npc/NMSPlayer1_20_6$sendBasePackets$1$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...s/kotlin/main/com/redmagic/undefinedapi/npc/NMSPlayer1_20_6$stopUsingMainHandItem$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...es/kotlin/main/com/redmagic/undefinedapi/npc/NMSPlayer1_20_6$stopUsingOffHandItem$1.class
Binary file not shown.
Binary file modified
BIN
+737 Bytes
(100%)
v1_20_6/build/classes/kotlin/main/com/redmagic/undefinedapi/npc/NMSPlayer1_20_6.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...0_6/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len
Binary file not shown.
Binary file modified
BIN
+4.19 KB
(360%)
...0_6/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...d/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len
Binary file not shown.
Binary file modified
BIN
+24 Bytes
(140%)
...build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
..._6/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...otlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...n/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...uild/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len
Binary file not shown.
Binary file modified
BIN
+623 Bytes
(270%)
...otlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
.../build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
..._6/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...otlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...n/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...uild/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len
Binary file not shown.
Binary file modified
BIN
+3.13 KB
(360%)
...otlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
.../build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab
Binary file not shown.
Binary file modified
BIN
+3 Bytes
(110%)
..._6/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len
Binary file not shown.
Binary file modified
BIN
+10.9 KB
(370%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...uild/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
.../kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len
Binary file not shown.
Binary file modified
BIN
+2.83 KB
(360%)
...uild/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab
Binary file not shown.
Binary file modified
BIN
+426 Bytes
(310%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab
Binary file not shown.
Binary file modified
BIN
+168 Bytes
(200%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/counters.tab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
5 | ||
14 | ||
0 |
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len
Binary file not shown.
Binary file modified
BIN
+54 Bytes
(170%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len
Binary file not shown.
Binary file modified
BIN
+698 Bytes
(260%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab
Binary file not shown.
Binary file modified
BIN
+40 KB
(170%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.len
Binary file not shown.
Binary file modified
BIN
+17.5 KB
(310%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
v1_20_6/build/kotlin/compileKotlin/cacheable/last-build.bin
Binary file not shown.
Binary file modified
BIN
+5.28 KB
(110%)
v1_20_6/build/kotlin/compileKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin
Binary file not shown.
Binary file modified
BIN
+1 KB
(3400%)
v1_20_6/build/kotlin/compileKotlin/local-state/build-history.bin
Binary file not shown.
10 changes: 10 additions & 0 deletions
10
v1_20_6/src/main/java/com/redmagic/undefinedapi/NMSManager1_20_6.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.redmagic.undefinedapi | ||
|
||
import com.redmagic.undefinedapi.nms.NMSPlayer | ||
import com.redmagic.undefinedapi.nms.PlayerInteract | ||
|
||
object NMSManager1_20_6 { | ||
|
||
val npcInteraction: HashMap<NMSPlayer, PlayerInteract.() -> Unit> = hashMapOf() | ||
|
||
} |
5 changes: 4 additions & 1 deletion
5
v1_20_6/src/main/java/com/redmagic/undefinedapi/PlayerExtension1_20_6.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
package com.redmagic.undefinedapi | ||
|
||
import net.minecraft.network.protocol.game.ServerboundSwingPacket | ||
import net.minecraft.server.network.ServerGamePacketListenerImpl | ||
import org.bukkit.craftbukkit.entity.CraftPlayer | ||
import org.bukkit.entity.Player | ||
|
||
|
||
fun Player.getConnection(): ServerGamePacketListenerImpl = (this as CraftPlayer).handle.connection | ||
fun Player.getConnection(): ServerGamePacketListenerImpl = (this as CraftPlayer).handle.connection | ||
|
||
fun isRemapped(): Boolean = ServerboundSwingPacket::class.java.name == "net.minecraft.network.protocol.game.ServerboundSwingPacket" |
Oops, something went wrong.