Citizens2/v1_17_R1/src/main/java/net/citizensnpcs/nms/v1_17_R1/network/EmptyNetworkManager.java

25 lines
695 B
Java

package net.citizensnpcs.nms.v1_17_R1.network;
import java.io.IOException;
import io.netty.util.concurrent.GenericFutureListener;
import net.citizensnpcs.nms.v1_17_R1.util.NMSImpl;
import net.minecraft.network.Connection;
import net.minecraft.network.protocol.Packet;
import net.minecraft.network.protocol.PacketFlow;
public class EmptyNetworkManager extends Connection {
public EmptyNetworkManager(PacketFlow flag) throws IOException {
super(flag);
NMSImpl.initNetworkManager(this);
}
@Override
public boolean isConnected() {
return true;
}
@Override
public void send(Packet packet, GenericFutureListener genericfuturelistener) {
}
}