Package me.neznamy.tab.platforms.bukkit
Class BukkitPacketBuilder
java.lang.Object
me.neznamy.tab.api.protocol.PacketBuilder
me.neznamy.tab.platforms.bukkit.BukkitPacketBuilder
public class BukkitPacketBuilder
extends me.neznamy.tab.api.protocol.PacketBuilder
-
Field Summary
Fields inherited from class me.neznamy.tab.api.protocol.PacketBuilder
buildMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(me.neznamy.tab.api.protocol.PacketPlayOutBoss packet, me.neznamy.tab.api.ProtocolVersion clientVersion) build(me.neznamy.tab.api.protocol.PacketPlayOutChat packet, me.neznamy.tab.api.ProtocolVersion clientVersion) build(me.neznamy.tab.api.protocol.PacketPlayOutPlayerInfo packet, me.neznamy.tab.api.ProtocolVersion clientVersion) build(me.neznamy.tab.api.protocol.PacketPlayOutPlayerListHeaderFooter packet, me.neznamy.tab.api.ProtocolVersion clientVersion) build(me.neznamy.tab.api.protocol.PacketPlayOutScoreboardDisplayObjective packet, me.neznamy.tab.api.ProtocolVersion clientVersion) build(me.neznamy.tab.api.protocol.PacketPlayOutScoreboardObjective packet, me.neznamy.tab.api.ProtocolVersion clientVersion) build(me.neznamy.tab.api.protocol.PacketPlayOutScoreboardScore packet, me.neznamy.tab.api.ProtocolVersion clientVersion) build(me.neznamy.tab.api.protocol.PacketPlayOutScoreboardTeam packet, me.neznamy.tab.api.ProtocolVersion clientVersion) build(PacketPlayOutEntityDestroy packet) Builds entity destroy packet from custom packet classbuild(PacketPlayOutEntityMetadata packet) Builds entity metadata packet from custom packet classbuild(PacketPlayOutEntityTeleport packet) Builds entity teleport packet from custom packet classbuild(PacketPlayOutSpawnEntityLiving packet) Builds entity spawn packet from custom packet classme.neznamy.tab.api.protocol.PacketPlayOutScoreboardDisplayObjectivereadDisplayObjective(Object nmsPacket) me.neznamy.tab.api.protocol.PacketPlayOutScoreboardObjectivereadObjective(Object nmsPacket) me.neznamy.tab.api.protocol.PacketPlayOutPlayerInforeadPlayerInfo(Object nmsPacket, me.neznamy.tab.api.ProtocolVersion clientVersion) toNMSComponent(me.neznamy.tab.api.chat.IChatBaseComponent component, me.neznamy.tab.api.ProtocolVersion clientVersion) Converts TAB's IChatBaseComponent into minecraft's component.Methods inherited from class me.neznamy.tab.api.protocol.PacketBuilder
build, cutTo, jsonOrCut
-
Constructor Details
-
BukkitPacketBuilder
public BukkitPacketBuilder()Constructs new instance
-
-
Method Details
-
build
public Object build(me.neznamy.tab.api.protocol.PacketPlayOutBoss packet, me.neznamy.tab.api.ProtocolVersion clientVersion) throws ReflectiveOperationException - Overrides:
buildin classme.neznamy.tab.api.protocol.PacketBuilder- Throws:
ReflectiveOperationException
-
build
public Object build(me.neznamy.tab.api.protocol.PacketPlayOutChat packet, me.neznamy.tab.api.ProtocolVersion clientVersion) throws ReflectiveOperationException - Overrides:
buildin classme.neznamy.tab.api.protocol.PacketBuilder- Throws:
ReflectiveOperationException
-
build
public Object build(me.neznamy.tab.api.protocol.PacketPlayOutPlayerInfo packet, me.neznamy.tab.api.ProtocolVersion clientVersion) throws ReflectiveOperationException - Overrides:
buildin classme.neznamy.tab.api.protocol.PacketBuilder- Throws:
ReflectiveOperationException
-
build
public Object build(me.neznamy.tab.api.protocol.PacketPlayOutScoreboardDisplayObjective packet, me.neznamy.tab.api.ProtocolVersion clientVersion) throws ReflectiveOperationException - Overrides:
buildin classme.neznamy.tab.api.protocol.PacketBuilder- Throws:
ReflectiveOperationException
-
build
public Object build(me.neznamy.tab.api.protocol.PacketPlayOutScoreboardObjective packet, me.neznamy.tab.api.ProtocolVersion clientVersion) throws ReflectiveOperationException - Overrides:
buildin classme.neznamy.tab.api.protocol.PacketBuilder- Throws:
ReflectiveOperationException
-
build
public Object build(me.neznamy.tab.api.protocol.PacketPlayOutScoreboardScore packet, me.neznamy.tab.api.ProtocolVersion clientVersion) throws ReflectiveOperationException - Overrides:
buildin classme.neznamy.tab.api.protocol.PacketBuilder- Throws:
ReflectiveOperationException
-
build
public Object build(me.neznamy.tab.api.protocol.PacketPlayOutScoreboardTeam packet, me.neznamy.tab.api.ProtocolVersion clientVersion) throws ReflectiveOperationException - Overrides:
buildin classme.neznamy.tab.api.protocol.PacketBuilder- Throws:
ReflectiveOperationException
-
build
Builds entity destroy packet from custom packet class- Parameters:
packet- Destroy packet- Returns:
- NMS destroy packet
- Throws:
ReflectiveOperationException- if thrown by reflective operation
-
build
Builds entity metadata packet from custom packet class- Parameters:
packet- Metadata packet- Returns:
- NMS metadata packet
- Throws:
ReflectiveOperationException- if thrown by reflective operation
-
build
Builds entity spawn packet from custom packet class- Parameters:
packet- Spawn packet- Returns:
- NMS spawn packet
- Throws:
ReflectiveOperationException- if thrown by reflective operation
-
build
Builds entity teleport packet from custom packet class- Parameters:
packet- Teleport packet- Returns:
- NMS teleport packet
- Throws:
ReflectiveOperationException- if thrown by reflective operation
-
readPlayerInfo
public me.neznamy.tab.api.protocol.PacketPlayOutPlayerInfo readPlayerInfo(Object nmsPacket, me.neznamy.tab.api.ProtocolVersion clientVersion) throws ReflectiveOperationException - Overrides:
readPlayerInfoin classme.neznamy.tab.api.protocol.PacketBuilder- Throws:
ReflectiveOperationException
-
readObjective
public me.neznamy.tab.api.protocol.PacketPlayOutScoreboardObjective readObjective(Object nmsPacket) throws ReflectiveOperationException - Overrides:
readObjectivein classme.neznamy.tab.api.protocol.PacketBuilder- Throws:
ReflectiveOperationException
-
readDisplayObjective
public me.neznamy.tab.api.protocol.PacketPlayOutScoreboardDisplayObjective readDisplayObjective(Object nmsPacket) throws ReflectiveOperationException - Overrides:
readDisplayObjectivein classme.neznamy.tab.api.protocol.PacketBuilder- Throws:
ReflectiveOperationException
-
toNMSComponent
public Object toNMSComponent(me.neznamy.tab.api.chat.IChatBaseComponent component, me.neznamy.tab.api.ProtocolVersion clientVersion) throws ReflectiveOperationException Converts TAB's IChatBaseComponent into minecraft's component.- Parameters:
component- component to convertclientVersion- client version used to decide RGB conversion- Returns:
- converted component
- Throws:
ReflectiveOperationException- if thrown by reflective operation
-