Remove unused method

This commit is contained in:
Sollace 2022-12-29 22:23:05 +01:00
parent e69076d19a
commit f4ce69a0c1
2 changed files with 0 additions and 15 deletions

View file

@ -10,7 +10,6 @@ import com.minelittlepony.unicopia.block.data.Ether;
import com.minelittlepony.unicopia.entity.player.dummy.DummyPlayerEntity;
import com.minelittlepony.unicopia.network.handler.ClientNetworkHandler;
import com.mojang.authlib.GameProfile;
import com.mojang.authlib.minecraft.MinecraftSessionService;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.PlayerEntity;
@ -42,14 +41,6 @@ public class InteractionManager {
return Optional.empty();
}
public MinecraftSessionService getSessionService(World world) {
if (world instanceof ServerWorld) {
return ((ServerWorld)world).getServer().getSessionService();
}
throw new NullPointerException("Cannot get session service");
}
/**
* Returns the client network handler, or throws if called on the server.
*/

View file

@ -19,7 +19,6 @@ import com.minelittlepony.unicopia.entity.player.dummy.DummyClientPlayerEntity;
import com.minelittlepony.unicopia.network.handler.ClientNetworkHandler;
import com.minelittlepony.unicopia.network.handler.ClientNetworkHandlerImpl;
import com.mojang.authlib.GameProfile;
import com.mojang.authlib.minecraft.MinecraftSessionService;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.sound.AggressiveBeeSoundInstance;
@ -54,11 +53,6 @@ public class ClientInteractionManager extends InteractionManager {
return clientWorld;
}
@Override
public MinecraftSessionService getSessionService(World world) {
return MinecraftClient.getInstance().getSessionService();
}
@Override
@Nullable
public ClientNetworkHandler getClientNetworkHandler() {