Search in sources :

Example 21 with PacketPlayOutPlayerListHeaderFooter

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

Example 22 with PacketPlayOutPlayerListHeaderFooter

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

Example 23 with PacketPlayOutPlayerListHeaderFooter

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

Example 24 with PacketPlayOutPlayerListHeaderFooter

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

Example 25 with PacketPlayOutPlayerListHeaderFooter

use of net.minecraft.server.v1_14_R1.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;
}
Also used : PacketPlayOutPlayerListHeaderFooter(net.minecraft.server.v1_13_R2.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