mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-30 08:18:00 +01:00
Remove unused method
This commit is contained in:
parent
e69076d19a
commit
f4ce69a0c1
2 changed files with 0 additions and 15 deletions
|
@ -10,7 +10,6 @@ import com.minelittlepony.unicopia.block.data.Ether;
|
||||||
import com.minelittlepony.unicopia.entity.player.dummy.DummyPlayerEntity;
|
import com.minelittlepony.unicopia.entity.player.dummy.DummyPlayerEntity;
|
||||||
import com.minelittlepony.unicopia.network.handler.ClientNetworkHandler;
|
import com.minelittlepony.unicopia.network.handler.ClientNetworkHandler;
|
||||||
import com.mojang.authlib.GameProfile;
|
import com.mojang.authlib.GameProfile;
|
||||||
import com.mojang.authlib.minecraft.MinecraftSessionService;
|
|
||||||
|
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.player.PlayerEntity;
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
|
@ -42,14 +41,6 @@ public class InteractionManager {
|
||||||
return Optional.empty();
|
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.
|
* Returns the client network handler, or throws if called on the server.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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.ClientNetworkHandler;
|
||||||
import com.minelittlepony.unicopia.network.handler.ClientNetworkHandlerImpl;
|
import com.minelittlepony.unicopia.network.handler.ClientNetworkHandlerImpl;
|
||||||
import com.mojang.authlib.GameProfile;
|
import com.mojang.authlib.GameProfile;
|
||||||
import com.mojang.authlib.minecraft.MinecraftSessionService;
|
|
||||||
|
|
||||||
import net.minecraft.client.MinecraftClient;
|
import net.minecraft.client.MinecraftClient;
|
||||||
import net.minecraft.client.sound.AggressiveBeeSoundInstance;
|
import net.minecraft.client.sound.AggressiveBeeSoundInstance;
|
||||||
|
@ -54,11 +53,6 @@ public class ClientInteractionManager extends InteractionManager {
|
||||||
return clientWorld;
|
return clientWorld;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public MinecraftSessionService getSessionService(World world) {
|
|
||||||
return MinecraftClient.getInstance().getSessionService();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Nullable
|
@Nullable
|
||||||
public ClientNetworkHandler getClientNetworkHandler() {
|
public ClientNetworkHandler getClientNetworkHandler() {
|
||||||
|
|
Loading…
Reference in a new issue