This commit is contained in:
Moulberry committed 2024-06-28 18:28:24 +08:00
commit 9c4a30d224
114 files changed
+12299

No files matched your search

@@ -0,0 +1,25 @@
package com.moulberry.flashback.action;
import com.moulberry.flashback.FlashbackClient;
import com.moulberry.flashback.playback.ReplayServer;
import net.minecraft.network.RegistryFriendlyByteBuf;
import net.minecraft.resources.ResourceLocation;
public class ActionGamePacket implements Action {
private static final ResourceLocation NAME = FlashbackClient.createResourceLocation("action/game_packet");
public static final ActionGamePacket INSTANCE = new ActionGamePacket();
private ActionGamePacket() {
}
@Override
public ResourceLocation name() {
return NAME;
}
@Override
public void handle(ReplayServer replayServer, RegistryFriendlyByteBuf friendlyByteBuf) {
replayServer.handleGamePacket(friendlyByteBuf);
}
}