Skip to content

Commit 338703f

Browse files
committed
Remove incorrect extend for ServerLoginPacketListenerBridge; use Mojang name for some network mixins.
1 parent 56b248d commit 338703f

File tree

16 files changed

+39
-39
lines changed

16 files changed

+39
-39
lines changed

arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/network/login/ServerLoginNetHandlerBridge.java arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/network/login/ServerLoginPacketListenerBridge.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
package io.izzel.arclight.common.bridge.core.network.login;
22

33
import com.mojang.authlib.GameProfile;
4-
import io.izzel.arclight.common.bridge.core.network.common.ServerCommonPacketListenerBridge;
54
import io.izzel.arclight.common.mod.util.ArclightCustomQueryAnswerPayload;
65
import net.minecraft.network.FriendlyByteBuf;
76
import net.minecraft.network.protocol.login.ServerboundCustomQueryAnswerPacket;
87

9-
public interface ServerLoginNetHandlerBridge extends ServerCommonPacketListenerBridge {
8+
public interface ServerLoginPacketListenerBridge {
109
default Thread bridge$newHandleThread(String name, Runnable runnable) {
1110
return new Thread(runnable, name);
1211
}
@@ -15,6 +14,8 @@ public interface ServerLoginNetHandlerBridge extends ServerCommonPacketListenerB
1514

1615
void bridge$preLogin(GameProfile authenticatedProfile) throws Exception;
1716

17+
void bridge$disconnect(String reason);
18+
1819
default FriendlyByteBuf bridge$getDiscardedQueryAnswerData(ServerboundCustomQueryAnswerPacket packet) {
1920
return packet.payload() instanceof ArclightCustomQueryAnswerPayload payload
2021
? new FriendlyByteBuf(payload.buf())

arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/network/play/ServerPlayNetHandlerBridge.java arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/network/play/ServerGamePacketListenerBridge.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import org.bukkit.Location;
1515
import org.bukkit.event.player.PlayerTeleportEvent;
1616

17-
public interface ServerPlayNetHandlerBridge extends ServerCommonPacketListenerBridge {
17+
public interface ServerGamePacketListenerBridge extends ServerCommonPacketListenerBridge {
1818

1919
void bridge$pushTeleportCause(PlayerTeleportEvent.TeleportCause cause);
2020

arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/network/ServerGamePacketListenerImplMixin.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import io.izzel.arclight.common.bridge.core.entity.player.PlayerEntityBridge;
55
import io.izzel.arclight.common.bridge.core.entity.player.ServerPlayerEntityBridge;
66
import io.izzel.arclight.common.bridge.core.inventory.container.ContainerBridge;
7-
import io.izzel.arclight.common.bridge.core.network.play.ServerPlayNetHandlerBridge;
7+
import io.izzel.arclight.common.bridge.core.network.play.ServerGamePacketListenerBridge;
88
import io.izzel.arclight.common.bridge.core.network.play.TimestampedPacket;
99
import io.izzel.arclight.common.bridge.core.server.MinecraftServerBridge;
1010
import io.izzel.arclight.common.bridge.core.server.management.PlayerInteractionManagerBridge;
@@ -139,7 +139,6 @@
139139
import org.bukkit.inventory.CraftingInventory;
140140
import org.bukkit.inventory.InventoryView;
141141
import org.bukkit.inventory.SmithingInventory;
142-
import org.objectweb.asm.Opcodes;
143142
import org.slf4j.Logger;
144143
import org.spigotmc.SpigotConfig;
145144
import org.spongepowered.asm.mixin.Final;
@@ -167,7 +166,7 @@
167166
import java.util.logging.Level;
168167

169168
@Mixin(ServerGamePacketListenerImpl.class)
170-
public abstract class ServerGamePacketListenerImplMixin extends ServerCommonPacketListenerImplMixin implements ServerPlayNetHandlerBridge {
169+
public abstract class ServerGamePacketListenerImplMixin extends ServerCommonPacketListenerImplMixin implements ServerGamePacketListenerBridge {
171170

172171
// @formatter:off
173172
@Shadow public ServerPlayer player;

arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/network/ServerLoginPacketListenerImplMixin.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import com.mojang.authlib.properties.Property;
66
import io.izzel.arclight.common.bridge.core.network.NetworkManagerBridge;
77
import io.izzel.arclight.common.bridge.core.network.common.ServerCommonPacketListenerBridge;
8-
import io.izzel.arclight.common.bridge.core.network.login.ServerLoginNetHandlerBridge;
8+
import io.izzel.arclight.common.bridge.core.network.login.ServerLoginPacketListenerBridge;
99
import io.izzel.arclight.common.bridge.core.server.MinecraftServerBridge;
1010
import io.izzel.arclight.common.bridge.core.server.management.PlayerListBridge;
1111
import io.izzel.arclight.common.mod.util.VelocitySupport;
@@ -67,7 +67,7 @@
6767
import java.util.concurrent.atomic.AtomicInteger;
6868

6969
@Mixin(ServerLoginPacketListenerImpl.class)
70-
public abstract class ServerLoginPacketListenerImplMixin implements ServerLoginNetHandlerBridge, CraftPlayer.TransferCookieConnection {
70+
public abstract class ServerLoginPacketListenerImplMixin implements ServerLoginPacketListenerBridge, CraftPlayer.TransferCookieConnection {
7171

7272
// @formatter:off
7373
@Shadow private ServerLoginPacketListenerImpl.State state;

arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/server/level/ServerPlayerMixin.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import io.izzel.arclight.common.bridge.core.entity.InternalEntityBridge;
66
import io.izzel.arclight.common.bridge.core.entity.player.ServerPlayerEntityBridge;
77
import io.izzel.arclight.common.bridge.core.inventory.container.ContainerBridge;
8-
import io.izzel.arclight.common.bridge.core.network.play.ServerPlayNetHandlerBridge;
8+
import io.izzel.arclight.common.bridge.core.network.play.ServerGamePacketListenerBridge;
99
import io.izzel.arclight.common.bridge.core.util.FoodStatsBridge;
1010
import io.izzel.arclight.common.bridge.core.world.WorldBridge;
1111
import io.izzel.arclight.common.bridge.core.world.damagesource.CombatTrackerBridge;
@@ -457,7 +457,7 @@ public ItemEntity drop(ItemStack itemstack, boolean flag, boolean flag1, boolean
457457

458458
PlayerRespawnEvent respawnEvent = new PlayerRespawnEvent(respawnPlayer, location, isBedSpawn, isAnchorSpawn, arclight$respawnReason);
459459
Bukkit.getPluginManager().callEvent(respawnEvent);
460-
if (((ServerPlayNetHandlerBridge) this.connection).bridge$isDisconnected()) {
460+
if (((ServerGamePacketListenerBridge) this.connection).bridge$isDisconnected()) {
461461
DecorationOps.cancel().invoke((DimensionTransition) null);
462462
return;
463463
}
@@ -493,7 +493,7 @@ public boolean teleportTo(ServerLevel worldserver, double d0, double d1, double
493493
private void arclight$forwardReason(ServerLevel p_265564_, double p_265424_, double p_265680_, double p_265312_, Set<RelativeMovement> p_265192_, float p_265059_, float p_265266_, CallbackInfoReturnable<Boolean> cir) {
494494
var teleportCause = arclight$cause;
495495
arclight$cause = null;
496-
((ServerPlayNetHandlerBridge) this.connection).bridge$pushTeleportCause(teleportCause);
496+
((ServerGamePacketListenerBridge) this.connection).bridge$pushTeleportCause(teleportCause);
497497
}
498498

499499
@Override
@@ -509,7 +509,7 @@ public CraftPortalEvent callPortalEvent(Entity entity, Location exit, PlayerTele
509509

510510
@Inject(method = "changeDimension", cancellable = true, at = @At(value = "INVOKE", ordinal = 0, target = "Lnet/minecraft/server/network/ServerGamePacketListenerImpl;teleport(DDDFF)V"))
511511
private void arclight$cancelledTeleport(DimensionTransition dimensionTransition, CallbackInfoReturnable<Entity> cir) {
512-
if (((ServerPlayNetHandlerBridge) this.connection).bridge$teleportCancelled()) {
512+
if (((ServerGamePacketListenerBridge) this.connection).bridge$teleportCancelled()) {
513513
cir.setReturnValue(null);
514514
}
515515
}
@@ -527,7 +527,7 @@ public CraftPortalEvent callPortalEvent(Entity entity, Location exit, PlayerTele
527527
exit = tpEvent.getTo();
528528
newLevel = ((CraftWorld) exit.getWorld()).getHandle();
529529
dimensionTransition = new DimensionTransition(newLevel, new Vec3(exit.getX(), exit.getY(), exit.getZ()), dimensionTransition.speed(), exit.getYaw(), exit.getPitch(), dimensionTransition.postDimensionTransition());
530-
((ServerPlayNetHandlerBridge) this.connection).bridge$pushNoTeleportEvent();
530+
((ServerGamePacketListenerBridge) this.connection).bridge$pushNoTeleportEvent();
531531
DecorationOps.blackhole().invoke(newLevel, dimensionTransition);
532532
}
533533

@@ -608,7 +608,7 @@ private Either<Player.BedSleepingProblem, Unit> getBedResult(BlockPos blockposit
608608
ci.cancel();
609609
} else {
610610
if (this.connection != null) {
611-
((ServerPlayNetHandlerBridge) this.connection).bridge$pushTeleportCause(PlayerTeleportEvent.TeleportCause.EXIT_BED);
611+
((ServerGamePacketListenerBridge) this.connection).bridge$pushTeleportCause(PlayerTeleportEvent.TeleportCause.EXIT_BED);
612612
}
613613
}
614614
}

arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/server/management/PlayerListMixin.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import io.izzel.arclight.common.bridge.core.entity.player.ServerPlayerEntityBridge;
77
import io.izzel.arclight.common.bridge.core.network.NetworkManagerBridge;
88
import io.izzel.arclight.common.bridge.core.network.datasync.SynchedEntityDataBridge;
9-
import io.izzel.arclight.common.bridge.core.network.play.ServerPlayNetHandlerBridge;
9+
import io.izzel.arclight.common.bridge.core.network.play.ServerGamePacketListenerBridge;
1010
import io.izzel.arclight.common.bridge.core.server.management.PlayerListBridge;
1111
import io.izzel.arclight.common.bridge.core.world.WorldBridge;
1212
import io.izzel.arclight.common.mod.server.ArclightServer;
@@ -314,14 +314,14 @@ public ServerPlayer respawn(ServerPlayer playerIn, boolean flag, Entity.RemovalR
314314
playerIn.connection.send(new ClientboundRespawnPacket(playerIn.createCommonSpawnInfo(serverWorld), (byte) (flag ? 1 : 0)));
315315
playerIn.connection.send(new ClientboundSetChunkCacheRadiusPacket(((WorldBridge) serverWorld).bridge$spigotConfig().viewDistance));
316316
playerIn.connection.send(new ClientboundSetSimulationDistancePacket(((WorldBridge) serverWorld).bridge$spigotConfig().simulationDistance));
317-
((ServerPlayNetHandlerBridge) playerIn.connection).bridge$teleport(new Location(((WorldBridge) serverWorld).bridge$getWorld(), playerIn.getX(), playerIn.getY(), playerIn.getZ(), playerIn.getYRot(), playerIn.getXRot()));
317+
((ServerGamePacketListenerBridge) playerIn.connection).bridge$teleport(new Location(((WorldBridge) serverWorld).bridge$getWorld(), playerIn.getX(), playerIn.getY(), playerIn.getZ(), playerIn.getYRot(), playerIn.getXRot()));
318318
playerIn.connection.send(new ClientboundSetDefaultSpawnPositionPacket(serverWorld.getSharedSpawnPos(), serverWorld.getSharedSpawnAngle()));
319319
playerIn.connection.send(new ClientboundChangeDifficultyPacket(worlddata.getDifficulty(), worlddata.isDifficultyLocked()));
320320
playerIn.connection.send(new ClientboundSetExperiencePacket(playerIn.experienceProgress, playerIn.totalExperience, playerIn.experienceLevel));
321321
this.sendActivePlayerEffects(playerIn);
322322
this.sendLevelInfo(playerIn, serverWorld);
323323
this.sendPlayerPermissionLevel(playerIn);
324-
if (!((ServerPlayNetHandlerBridge) playerIn.connection).bridge$isDisconnected()) {
324+
if (!((ServerGamePacketListenerBridge) playerIn.connection).bridge$isDisconnected()) {
325325
serverWorld.addRespawnedPlayer(playerIn);
326326
this.players.add(playerIn);
327327
this.playersByUUID.put(playerIn.getUUID(), playerIn);
@@ -343,7 +343,7 @@ public ServerPlayer respawn(ServerPlayer playerIn, boolean flag, Entity.RemovalR
343343
PlayerChangedWorldEvent event = new PlayerChangedWorldEvent(((ServerPlayerEntityBridge) playerIn).bridge$getBukkitEntity(), fromWorld);
344344
Bukkit.getPluginManager().callEvent(event);
345345
}
346-
if (((ServerPlayNetHandlerBridge) playerIn.connection).bridge$isDisconnected()) {
346+
if (((ServerGamePacketListenerBridge) playerIn.connection).bridge$isDisconnected()) {
347347
this.save(playerIn);
348348
}
349349
return playerIn;
@@ -397,7 +397,7 @@ public ServerPlayer respawn(ServerPlayer playerIn, boolean flag, Entity.RemovalR
397397
private void arclight$respawnPackets(ServerGamePacketListenerImpl instance, double d, double e, double f, float g, float h, @Local(ordinal = -1) ServerPlayer player) throws Throwable {
398398
player.connection.send(new ClientboundSetChunkCacheRadiusPacket(((WorldBridge) player.serverLevel()).bridge$spigotConfig().viewDistance));
399399
player.connection.send(new ClientboundSetSimulationDistancePacket(((WorldBridge) player.serverLevel()).bridge$spigotConfig().simulationDistance));
400-
((ServerPlayNetHandlerBridge) player.connection).bridge$teleport(new Location(player.serverLevel().bridge$getWorld(), player.getX(), player.getY(), player.getZ(), player.getYRot(), player.getXRot()));
400+
((ServerGamePacketListenerBridge) player.connection).bridge$teleport(new Location(player.serverLevel().bridge$getWorld(), player.getX(), player.getY(), player.getZ(), player.getYRot(), player.getXRot()));
401401
if (Blackhole.actuallyFalse()) {
402402
DecorationOps.callsite().invoke(instance, d, e, f, g, h);
403403
}
@@ -416,7 +416,7 @@ public ServerPlayer respawn(ServerPlayer playerIn, boolean flag, Entity.RemovalR
416416
PlayerChangedWorldEvent event = new PlayerChangedWorldEvent(((ServerPlayerEntityBridge) newPlayer).bridge$getBukkitEntity(), fromWorld.bridge$getWorld());
417417
Bukkit.getPluginManager().callEvent(event);
418418
}
419-
if (((ServerPlayNetHandlerBridge) newPlayer.connection).bridge$isDisconnected()) {
419+
if (((ServerGamePacketListenerBridge) newPlayer.connection).bridge$isDisconnected()) {
420420
this.save(newPlayer);
421421
}
422422
}

arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/world/entity/LivingEntityMixin.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import com.mojang.datafixers.util.Either;
77
import io.izzel.arclight.common.bridge.core.entity.LivingEntityBridge;
88
import io.izzel.arclight.common.bridge.core.entity.player.ServerPlayerEntityBridge;
9-
import io.izzel.arclight.common.bridge.core.network.play.ServerPlayNetHandlerBridge;
9+
import io.izzel.arclight.common.bridge.core.network.play.ServerGamePacketListenerBridge;
1010
import io.izzel.arclight.common.mod.server.ArclightServer;
1111
import io.izzel.arclight.common.mod.util.EntityDamageResult;
1212
import io.izzel.arclight.common.util.IteratorUtil;
@@ -875,7 +875,7 @@ public boolean isPickable() {
875875
private void arclight$entityTeleport(LivingEntity entity, double x, double y, double z) throws Throwable {
876876
if ((Object) this instanceof ServerPlayer) {
877877
(((ServerPlayer) (Object) this).connection).teleport(x, y, z, this.getYRot(), this.getXRot(), java.util.Collections.emptySet());
878-
if (!((ServerPlayNetHandlerBridge) ((ServerPlayer) (Object) this).connection).bridge$teleportCancelled()) {
878+
if (!((ServerGamePacketListenerBridge) ((ServerPlayer) (Object) this).connection).bridge$teleportCancelled()) {
879879
DecorationOps.cancel().invoke(false);
880880
return;
881881
}

arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/world/item/ChorusFruitItemMixin.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package io.izzel.arclight.common.mixin.core.world.item;
22

3-
import io.izzel.arclight.common.bridge.core.network.play.ServerPlayNetHandlerBridge;
3+
import io.izzel.arclight.common.bridge.core.network.play.ServerGamePacketListenerBridge;
44
import net.minecraft.server.level.ServerPlayer;
55
import net.minecraft.world.entity.LivingEntity;
66
import net.minecraft.world.item.ChorusFruitItem;
@@ -18,7 +18,7 @@ public class ChorusFruitItemMixin extends ItemMixin {
1818
@Inject(method = "finishUsingItem", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/LivingEntity;randomTeleport(DDDZ)Z"))
1919
private void arclight$teleportCause(ItemStack itemStack, Level level, LivingEntity livingEntity, CallbackInfoReturnable<ItemStack> cir) {
2020
if (livingEntity instanceof ServerPlayer p) {
21-
((ServerPlayNetHandlerBridge) p.connection).bridge$pushTeleportCause(PlayerTeleportEvent.TeleportCause.CHORUS_FRUIT);
21+
((ServerGamePacketListenerBridge) p.connection).bridge$pushTeleportCause(PlayerTeleportEvent.TeleportCause.CHORUS_FRUIT);
2222
}
2323
}
2424
}

arclight-fabric/src/main/java/io/izzel/arclight/fabric/mixin/core/network/ServerLoginNetHandlerMixin_Fabric.java arclight-fabric/src/main/java/io/izzel/arclight/fabric/mixin/core/network/ServerLoginPacketListenerImplMixin_Fabric.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package io.izzel.arclight.fabric.mixin.core.network;
22

3-
import io.izzel.arclight.common.bridge.core.network.login.ServerLoginNetHandlerBridge;
3+
import io.izzel.arclight.common.bridge.core.network.login.ServerLoginPacketListenerBridge;
44
import io.netty.buffer.Unpooled;
55
import net.fabricmc.fabric.impl.networking.NetworkHandlerExtensions;
66
import net.fabricmc.fabric.impl.networking.payload.PacketByteBufLoginQueryResponse;
@@ -11,7 +11,7 @@
1111
import org.spongepowered.asm.mixin.Mixin;
1212

1313
@Mixin(ServerLoginPacketListenerImpl.class)
14-
public abstract class ServerLoginNetHandlerMixin_Fabric implements ServerLoginNetHandlerBridge, NetworkHandlerExtensions {
14+
public abstract class ServerLoginPacketListenerImplMixin_Fabric implements ServerLoginPacketListenerBridge, NetworkHandlerExtensions {
1515

1616
@Override
1717
public FriendlyByteBuf bridge$getDiscardedQueryAnswerData(ServerboundCustomQueryAnswerPacket packet) {

arclight-fabric/src/main/resources/mixins.arclight.fabric.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"bukkit.CraftServerMixin_Fabric",
2020
"core.network.ServerCommonPacketListenerImplMixin_Fabric",
2121
"core.network.ServerConfigurationPacketListenerImplMixin_Fabric",
22-
"core.network.ServerLoginNetHandlerMixin_Fabric",
22+
"core.network.ServerLoginPacketListenerImplMixin_Fabric",
2323
"core.world.entity.EntityMixin_Fabric",
2424
"core.world.entity.LivingEntityMixin_Fabric",
2525
"core.world.entity.animal.SheepMixin_Fabric",

arclight-forge/src/main/java/io/izzel/arclight/forge/mixin/core/network/ServerPlayNetHandlerMixin_Forge.java arclight-forge/src/main/java/io/izzel/arclight/forge/mixin/core/network/ServerGamePacketListenerImplMixin_Forge.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package io.izzel.arclight.forge.mixin.core.network;
22

3-
import io.izzel.arclight.common.bridge.core.network.play.ServerPlayNetHandlerBridge;
3+
import io.izzel.arclight.common.bridge.core.network.play.ServerGamePacketListenerBridge;
44
import io.izzel.tools.product.Product;
55
import io.izzel.tools.product.Product3;
66
import net.minecraft.network.chat.Component;
@@ -18,7 +18,7 @@
1818
import org.spongepowered.asm.mixin.Shadow;
1919

2020
@Mixin(ServerGamePacketListenerImpl.class)
21-
public abstract class ServerPlayNetHandlerMixin_Forge extends ServerCommonPacketListenerImplMixin_Forge implements ServerPlayNetHandlerBridge {
21+
public abstract class ServerGamePacketListenerImplMixin_Forge extends ServerCommonPacketListenerImplMixin_Forge implements ServerGamePacketListenerBridge {
2222

2323
@Shadow public ServerPlayer player;
2424

arclight-forge/src/main/java/io/izzel/arclight/forge/mixin/core/network/ServerLoginNetHandlerMixin_Forge.java arclight-forge/src/main/java/io/izzel/arclight/forge/mixin/core/network/ServerLoginPacketListenerImplMixin_Forge.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package io.izzel.arclight.forge.mixin.core.network;
22

3-
import io.izzel.arclight.common.bridge.core.network.login.ServerLoginNetHandlerBridge;
3+
import io.izzel.arclight.common.bridge.core.network.login.ServerLoginPacketListenerBridge;
44
import net.minecraft.server.network.ServerLoginPacketListenerImpl;
55
import net.minecraftforge.fml.util.thread.SidedThreadGroups;
66
import org.spongepowered.asm.mixin.Mixin;
77

88
@Mixin(ServerLoginPacketListenerImpl.class)
9-
public abstract class ServerLoginNetHandlerMixin_Forge implements ServerLoginNetHandlerBridge {
9+
public abstract class ServerLoginPacketListenerImplMixin_Forge implements ServerLoginPacketListenerBridge {
1010

1111
@Override
1212
public Thread bridge$newHandleThread(String name, Runnable runnable) {

arclight-forge/src/main/resources/mixins.arclight.forge.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"core.fluid.LavaFluidMixin_Forge",
2424
"core.network.ServerCommonPacketListenerImplMixin_Forge",
2525
"core.network.ServerHandshakePacketListenerImplMixin_Forge",
26-
"core.network.ServerLoginNetHandlerMixin_Forge",
27-
"core.network.ServerPlayNetHandlerMixin_Forge",
26+
"core.network.ServerLoginPacketListenerImplMixin_Forge",
27+
"core.network.ServerGamePacketListenerImplMixin_Forge",
2828
"core.network.ServerStatusNetHandlerMixin_Forge",
2929
"core.network.protocol.login.ServerboundCustomQueryAnswerPacketMixin_Forge",
3030
"core.network.protocol.status.ServerStatusMixin",

arclight-neoforge/src/main/java/io/izzel/arclight/neoforge/mixin/core/network/ServerPlayNetHandlerMixin_NeoForge.java arclight-neoforge/src/main/java/io/izzel/arclight/neoforge/mixin/core/network/ServerGamePacketListenerImplMixin_NeoForge.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package io.izzel.arclight.neoforge.mixin.core.network;
22

3-
import io.izzel.arclight.common.bridge.core.network.play.ServerPlayNetHandlerBridge;
3+
import io.izzel.arclight.common.bridge.core.network.play.ServerGamePacketListenerBridge;
44
import io.izzel.tools.product.Product;
55
import io.izzel.tools.product.Product3;
66
import net.minecraft.network.chat.Component;
@@ -17,7 +17,7 @@
1717
import org.spongepowered.asm.mixin.Shadow;
1818

1919
@Mixin(ServerGamePacketListenerImpl.class)
20-
public abstract class ServerPlayNetHandlerMixin_NeoForge extends ServerCommonPacketListenerImplMixin_NeoForge implements ServerPlayNetHandlerBridge {
20+
public abstract class ServerGamePacketListenerImplMixin_NeoForge extends ServerCommonPacketListenerImplMixin_NeoForge implements ServerGamePacketListenerBridge {
2121

2222
@Shadow public ServerPlayer player;
2323

arclight-neoforge/src/main/java/io/izzel/arclight/neoforge/mixin/core/network/ServerLoginNetHandlerMixin_NeoForge.java arclight-neoforge/src/main/java/io/izzel/arclight/neoforge/mixin/core/network/ServerLoginPacketListenerImplMixin_NeoForge.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package io.izzel.arclight.neoforge.mixin.core.network;
22

3-
import io.izzel.arclight.common.bridge.core.network.login.ServerLoginNetHandlerBridge;
3+
import io.izzel.arclight.common.bridge.core.network.login.ServerLoginPacketListenerBridge;
44
import net.minecraft.server.network.ServerLoginPacketListenerImpl;
55
import net.neoforged.fml.util.thread.SidedThreadGroups;
66
import org.spongepowered.asm.mixin.Mixin;
77

88
@Mixin(ServerLoginPacketListenerImpl.class)
9-
public abstract class ServerLoginNetHandlerMixin_NeoForge implements ServerLoginNetHandlerBridge {
9+
public abstract class ServerLoginPacketListenerImplMixin_NeoForge implements ServerLoginPacketListenerBridge {
1010

1111
@Override
1212
public Thread bridge$newHandleThread(String name, Runnable runnable) {

0 commit comments

Comments
 (0)