split client and server 2

This commit is contained in:
Sen 2025-05-05 18:27:06 +02:00
parent 2fa521c3d1
commit b17efb5b07
158 changed files with 1080 additions and 515 deletions

View file

@ -0,0 +1,33 @@
package game;
import java.util.List;
import java.util.Map;
import game.entity.Entity;
import game.entity.npc.EntityNPC;
import game.network.IPlayer;
import game.network.Packet;
import game.world.BlockPos;
import game.world.PortalType;
import game.world.Position;
import game.world.WorldServer;
public interface IServer {
List<IPlayer> getIPlayers();
void sendPacket(Packet packet);
void sendPacket(Packet packet, int dimension);
void sendNear(double x, double y, double z, double radius, int dimension, Packet packet);
void sendNearExcept(EntityNPC except, double x, double y, double z, double radius, int dimension, Packet packet);
Map<String, Position> getWarps();
List<WorldServer> getWorlds();
WorldServer getWorld(int dimension);
void placeInDimension(Entity entity, WorldServer oldWorld, WorldServer world, BlockPos pos, PortalType portal);
}