@Deprecated public interface ViaVersionAPI extends ViaAPI<org.bukkit.entity.Player>
Modifier and Type | Method and Description |
---|---|
BossBar |
createBossBar(String title,
BossColor color,
BossStyle style)
Deprecated.
Create a new bossbar instance
|
BossBar |
createBossBar(String title,
float health,
BossColor color,
BossStyle style)
Deprecated.
Create a new bossbar instance
|
ViaVersionCommand |
getCommandHandler()
Deprecated.
Get ViaVersions commands handler
|
int |
getPlayerVersion(org.bukkit.entity.Player player)
Deprecated.
Get protocol number from a player
Will also retrieve version from ProtocolSupport if it's being used.
|
int |
getPlayerVersion(UUID uuid)
Deprecated.
Get protocol number from a player
|
SortedSet<Integer> |
getSupportedVersions()
Deprecated.
Get the supported protocol versions
This method removes any blocked protocol versions.
|
String |
getVersion()
Deprecated.
Get the version of the plugin
|
boolean |
isCompatSpigotBuild()
Deprecated.
Get if this version is a compatibility build for spigot.
|
boolean |
isDebug()
Deprecated.
Get if global debug is enabled
|
boolean |
isPorted(org.bukkit.entity.Player player)
Deprecated.
As of 0.9.9, because all players are ported use
getPlayerVersion(Player) |
boolean |
isPorted(UUID playerUUID)
Deprecated.
As of 0.9.9, because all players are ported use
getPlayerVersion(UUID) |
boolean |
isProtocolSupport()
Deprecated.
Gets if protocol support is also being used.
|
boolean |
isSpigot()
Deprecated.
Gets if the server uses spigot
|
void |
sendRawPacket(org.bukkit.entity.Player player,
io.netty.buffer.ByteBuf packet)
Deprecated.
Send a raw packet to the player (Use new IDs)
|
void |
sendRawPacket(UUID uuid,
io.netty.buffer.ByteBuf packet)
Deprecated.
Send a raw packet to the player (Use new IDs)
|
boolean isPorted(org.bukkit.entity.Player player)
getPlayerVersion(Player)
player
- Bukkit player objectint getPlayerVersion(org.bukkit.entity.Player player)
getPlayerVersion
in interface ViaAPI<org.bukkit.entity.Player>
player
- Bukkit player objectint getPlayerVersion(UUID uuid)
getPlayerVersion
in interface ViaAPI<org.bukkit.entity.Player>
uuid
- UUID of a player@Deprecated boolean isPorted(UUID playerUUID)
getPlayerVersion(UUID)
String getVersion()
getVersion
in interface ViaAPI<org.bukkit.entity.Player>
void sendRawPacket(org.bukkit.entity.Player player, io.netty.buffer.ByteBuf packet) throws IllegalArgumentException
sendRawPacket
in interface ViaAPI<org.bukkit.entity.Player>
player
- The player to send packetpacket
- The packet, you need a VarInt ID then the packet contents.IllegalArgumentException
- If not on 1.9 throws IllegalArgvoid sendRawPacket(UUID uuid, io.netty.buffer.ByteBuf packet) throws IllegalArgumentException
sendRawPacket
in interface ViaAPI<org.bukkit.entity.Player>
uuid
- The uuid from the player to send packetpacket
- The packet, you need a VarInt ID then the packet contents.IllegalArgumentException
- If not on 1.9 throws IllegalArgBossBar createBossBar(String title, BossColor color, BossStyle style)
createBossBar
in interface ViaAPI<org.bukkit.entity.Player>
title
- The titlecolor
- The colorstyle
- The styleBossBar createBossBar(String title, float health, BossColor color, BossStyle style)
createBossBar
in interface ViaAPI<org.bukkit.entity.Player>
title
- The titlehealth
- Number between 0 and 1color
- The colorstyle
- The styleboolean isDebug()
ViaVersionCommand getCommandHandler()
boolean isCompatSpigotBuild()
SortedSet<Integer> getSupportedVersions()
getSupportedVersions
in interface ViaAPI<org.bukkit.entity.Player>
for full list.
boolean isSpigot()
Note: Will only work after ViaVersion load
boolean isProtocolSupport()
Copyright © 2016–2020. All rights reserved.