Search in sources :

Example 31 with PacketPlayOutPlayerListHeaderFooter

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;
}
Also used : PacketPlayOutPlayerListHeaderFooter(net.minecraft.server.v1_12_R1.PacketPlayOutPlayerListHeaderFooter)

Example 32 with PacketPlayOutPlayerListHeaderFooter

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;
}
Also used : PacketPlayOutPlayerListHeaderFooter(net.minecraft.server.v1_13_R1.PacketPlayOutPlayerListHeaderFooter)

Example 33 with PacketPlayOutPlayerListHeaderFooter

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;
}
Also used : PacketPlayOutPlayerListHeaderFooter(net.minecraft.server.v1_15_R1.PacketPlayOutPlayerListHeaderFooter)

Example 34 with PacketPlayOutPlayerListHeaderFooter

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;
}
Also used : PacketPlayOutPlayerListHeaderFooter(net.minecraft.server.v1_9_R1.PacketPlayOutPlayerListHeaderFooter)

Example 35 with PacketPlayOutPlayerListHeaderFooter

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;
}
Also used : PacketPlayOutPlayerListHeaderFooter(net.minecraft.server.v1_8_R2.PacketPlayOutPlayerListHeaderFooter)

Aggregations

GameProfile (com.mojang.authlib.GameProfile)18 SkinTexture (net.dzikoysk.funnyguilds.nms.api.playerlist.SkinTexture)9 PacketPlayOutPlayerListHeaderFooter (net.minecraft.server.v1_12_R1.PacketPlayOutPlayerListHeaderFooter)5 PacketPlayOutPlayerListHeaderFooter (net.minecraft.server.v1_10_R1.PacketPlayOutPlayerListHeaderFooter)4 PacketPlayOutPlayerListHeaderFooter (net.minecraft.server.v1_11_R1.PacketPlayOutPlayerListHeaderFooter)4 IChatBaseComponent (net.minecraft.server.v1_12_R1.IChatBaseComponent)4 PacketPlayOutPlayerListHeaderFooter (net.minecraft.server.v1_13_R2.PacketPlayOutPlayerListHeaderFooter)4 PacketPlayOutPlayerListHeaderFooter (net.minecraft.server.v1_14_R1.PacketPlayOutPlayerListHeaderFooter)4 PacketPlayOutPlayerListHeaderFooter (net.minecraft.server.v1_15_R1.PacketPlayOutPlayerListHeaderFooter)4 PacketPlayOutPlayerListHeaderFooter (net.minecraft.server.v1_16_R3.PacketPlayOutPlayerListHeaderFooter)4 Field (java.lang.reflect.Field)3 IChatBaseComponent (net.minecraft.server.v1_10_R1.IChatBaseComponent)3 IChatBaseComponent (net.minecraft.server.v1_11_R1.IChatBaseComponent)3 PacketPlayOutPlayerListHeaderFooter (net.minecraft.server.v1_8_R3.PacketPlayOutPlayerListHeaderFooter)3 CraftPlayer (org.bukkit.craftbukkit.v1_10_R1.entity.CraftPlayer)3 CraftPlayer (org.bukkit.craftbukkit.v1_12_R1.entity.CraftPlayer)3 CraftPlayer (org.bukkit.craftbukkit.v1_15_R1.entity.CraftPlayer)3 CraftPlayer (org.bukkit.craftbukkit.v1_16_R3.entity.CraftPlayer)3 Packet (net.minecraft.server.v1_10_R1.Packet)2 PacketPlayOutPlayerInfo (net.minecraft.server.v1_10_R1.PacketPlayOutPlayerInfo)2