Skip to content

Commit

Permalink
fix(mod): add MixinServerGamePacketListenerImpl.java to git
Browse files Browse the repository at this point in the history
  • Loading branch information
Apehum committed Feb 6, 2024
1 parent c0ca513 commit 739994a
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package su.plo.slib.mod.mixin;

//#if FORGE
//#if MC<12002
//$$ import net.minecraft.network.protocol.game.ServerboundCustomPayloadPacket;
//$$ import net.minecraft.server.level.ServerPlayer;
//$$ import net.minecraft.server.network.ServerGamePacketListenerImpl;
//$$ import org.spongepowered.asm.mixin.Mixin;
//$$ import org.spongepowered.asm.mixin.Shadow;
//$$ import org.spongepowered.asm.mixin.injection.At;
//$$ import org.spongepowered.asm.mixin.injection.Inject;
//$$ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
//$$ import su.plo.slib.mod.mixinkt.MixinServerGamePacketListenerImplKt;
//$$
//$$ @Mixin(ServerGamePacketListenerImpl.class)
//$$ public abstract class MixinServerGamePacketListenerImpl {
//$$
//$$ @Shadow public ServerPlayer player;
//$$
//$$ @Inject(method = "handleCustomPayload", at = @At("HEAD"))
//$$ public void handleCustomPayload(ServerboundCustomPayloadPacket packet, CallbackInfo ci) {
//$$ MixinServerGamePacketListenerImplKt.INSTANCE.handleCustomPayload(player, packet);
//$$ }
//$$ }
//#endif
//#endif

0 comments on commit 739994a

Please sign in to comment.