use of net.minecraft.server.v1_8_R3.PacketPlayOutPlayerListHeaderFooter in project TheAPI by TheDevTec.
the class v1_12_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_13_R1 method packetPlayerListHeaderFooter.
@Override
public Object packetPlayerListHeaderFooter(String header, String footer) {
PacketPlayOutPlayerListHeaderFooter packet = new PacketPlayOutPlayerListHeaderFooter();
packet.a = (IChatBaseComponent) toIChatBaseComponent(ComponentAPI.toComponent(header, true));
packet.b = (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_15_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_9_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_8_R2 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;
}
Aggregations