use of net.minecraft.server.v1_8_R3.PacketPlayOutPlayerListHeaderFooter in project TheAPI by TheDevTec.
the class v1_11_R1 method packetPlayerListHeaderFooter.
@Override
public Object packetPlayerListHeaderFooter(String header, String footer) {
PacketPlayOutPlayerListHeaderFooter packet = new PacketPlayOutPlayerListHeaderFooter();
try {
a.set(packet, toIChatBaseComponent(ComponentAPI.toComponent(header, true)));
b.set(packet, toIChatBaseComponent(ComponentAPI.toComponent(footer, true)));
} catch (Exception err) {
}
return packet;
}
use of net.minecraft.server.v1_8_R3.PacketPlayOutPlayerListHeaderFooter in project TheAPI by TheDevTec.
the class v1_10_R1 method packetPlayerListHeaderFooter.
@Override
public Object packetPlayerListHeaderFooter(String header, String footer) {
PacketPlayOutPlayerListHeaderFooter packet = new PacketPlayOutPlayerListHeaderFooter();
try {
a.set(packet, toIChatBaseComponent(ComponentAPI.toComponent(header, true)));
b.set(packet, toIChatBaseComponent(ComponentAPI.toComponent(footer, true)));
} catch (Exception err) {
}
return packet;
}
use of net.minecraft.server.v1_8_R3.PacketPlayOutPlayerListHeaderFooter in project TheAPI by TheDevTec.
the class v1_16_R2 method packetPlayerListHeaderFooter.
@Override
public Object packetPlayerListHeaderFooter(String header, String footer) {
PacketPlayOutPlayerListHeaderFooter packet = new PacketPlayOutPlayerListHeaderFooter();
packet.header = (IChatBaseComponent) toIChatBaseComponent(ComponentAPI.toComponent(header, true));
packet.footer = (IChatBaseComponent) toIChatBaseComponent(ComponentAPI.toComponent(footer, true));
return packet;
}
use of net.minecraft.server.v1_8_R3.PacketPlayOutPlayerListHeaderFooter in project TheAPI by TheDevTec.
the class v1_16_R1 method packetPlayerListHeaderFooter.
@Override
public Object packetPlayerListHeaderFooter(String header, String footer) {
PacketPlayOutPlayerListHeaderFooter packet = new PacketPlayOutPlayerListHeaderFooter();
packet.header = (IChatBaseComponent) toIChatBaseComponent(ComponentAPI.toComponent(header, true));
packet.footer = (IChatBaseComponent) toIChatBaseComponent(ComponentAPI.toComponent(footer, true));
return packet;
}
use of net.minecraft.server.v1_8_R3.PacketPlayOutPlayerListHeaderFooter in project TheAPI by TheDevTec.
the class v1_13_R2 method packetPlayerListHeaderFooter.
@Override
public Object packetPlayerListHeaderFooter(String header, String footer) {
PacketPlayOutPlayerListHeaderFooter packet = new PacketPlayOutPlayerListHeaderFooter();
packet.header = (IChatBaseComponent) toIChatBaseComponent(ComponentAPI.toComponent(header, true));
packet.footer = (IChatBaseComponent) toIChatBaseComponent(ComponentAPI.toComponent(footer, true));
return packet;
}
Aggregations