Search in sources :

Example 31 with PacketPlayOutPlayerListHeaderFooter

use of net.minecraft.server.v1_14_R1.PacketPlayOutPlayerListHeaderFooter in project TheAPI by TheDevTec.

the class v1_8_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_8_R1.PacketPlayOutPlayerListHeaderFooter)

Aggregations

GameProfile (com.mojang.authlib.GameProfile)9 PacketPlayOutPlayerListHeaderFooter (net.minecraft.server.v1_12_R1.PacketPlayOutPlayerListHeaderFooter)4 Field (java.lang.reflect.Field)3 PacketPlayOutPlayerListHeaderFooter (net.minecraft.server.v1_10_R1.PacketPlayOutPlayerListHeaderFooter)3 PacketPlayOutPlayerListHeaderFooter (net.minecraft.server.v1_11_R1.PacketPlayOutPlayerListHeaderFooter)3 IChatBaseComponent (net.minecraft.server.v1_12_R1.IChatBaseComponent)3 PacketPlayOutPlayerListHeaderFooter (net.minecraft.server.v1_13_R2.PacketPlayOutPlayerListHeaderFooter)3 PacketPlayOutPlayerListHeaderFooter (net.minecraft.server.v1_14_R1.PacketPlayOutPlayerListHeaderFooter)3 PacketPlayOutPlayerListHeaderFooter (net.minecraft.server.v1_15_R1.PacketPlayOutPlayerListHeaderFooter)3 PacketPlayOutPlayerListHeaderFooter (net.minecraft.server.v1_16_R3.PacketPlayOutPlayerListHeaderFooter)3 CraftPlayer (org.bukkit.craftbukkit.v1_12_R1.entity.CraftPlayer)3 IChatBaseComponent (net.minecraft.server.v1_10_R1.IChatBaseComponent)2 IChatBaseComponent (net.minecraft.server.v1_11_R1.IChatBaseComponent)2 PacketPlayOutPlayerListHeaderFooter (net.minecraft.server.v1_8_R3.PacketPlayOutPlayerListHeaderFooter)2 CraftPlayer (org.bukkit.craftbukkit.v1_10_R1.entity.CraftPlayer)2 CraftPlayer (org.bukkit.craftbukkit.v1_11_R1.entity.CraftPlayer)2 CraftPlayer (org.bukkit.craftbukkit.v1_13_R2.entity.CraftPlayer)2 CraftPlayer (org.bukkit.craftbukkit.v1_14_R1.entity.CraftPlayer)2 CraftPlayer (org.bukkit.craftbukkit.v1_15_R1.entity.CraftPlayer)2 CraftPlayer (org.bukkit.craftbukkit.v1_16_R3.entity.CraftPlayer)2