-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Initialize PacketEvents on load
- Loading branch information
Showing
9 changed files
with
81 additions
and
58 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
41 changes: 0 additions & 41 deletions
41
...tform/src/main/java/io/fairyproject/bukkit/configuration/BukkitProtocolConfiguration.java
This file was deleted.
Oops, something went wrong.
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
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
30 changes: 30 additions & 0 deletions
30
framework/tests/mc-tests/src/main/java/io/fairyproject/tests/mc/protocol/MockMCProtocol.java
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,30 @@ | ||
package io.fairyproject.tests.mc.protocol; | ||
|
||
import io.fairyproject.container.ContainerContext; | ||
import io.fairyproject.mc.protocol.MCProtocol; | ||
import io.fairyproject.mc.protocol.PacketEventsBuilder; | ||
import io.fairyproject.mc.protocol.packet.PacketSender; | ||
import io.fairyproject.mc.registry.player.MCPlayerRegistry; | ||
import io.fairyproject.mc.version.MCVersionMappingRegistry; | ||
|
||
public class MockMCProtocol extends MCProtocol { | ||
|
||
private final PacketEventsBuilder packetEventsBuilder; | ||
|
||
public MockMCProtocol(ContainerContext context, | ||
MCPlayerRegistry playerRegistry, | ||
MCVersionMappingRegistry mappingRegistry, | ||
PacketSender packetSender, | ||
PacketEventsBuilder packetEventsBuilder) { | ||
super(context, playerRegistry, mappingRegistry, packetSender); | ||
|
||
this.packetEventsBuilder = packetEventsBuilder; | ||
} | ||
|
||
@Override | ||
public void onPreInitialize() { | ||
loadProtocol(packetEventsBuilder); | ||
|
||
super.onPreInitialize(); | ||
} | ||
} |
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 +1 @@ | ||
version = 0.7.9b8-SNAPSHOT | ||
version = 0.7.9b13-SNAPSHOT |