public class WauzNmsClient
extends java.lang.Object
Constructor and Description |
---|
WauzNmsClient() |
Modifier and Type | Method and Description |
---|---|
static net.md_5.bungee.api.chat.ItemTag |
getTagFromItem(org.bukkit.inventory.ItemStack itemStack)
Conberts an item stack into an item tag.
|
static void |
nmsBorder(org.bukkit.entity.Player player,
org.bukkit.Location location,
int radius)
Sends a packet to create a world border for the given player.
|
static void |
nmsEntityPersistence(org.bukkit.entity.Entity entity,
boolean persistent)
Changes the persistance of an entity.
|
static org.bukkit.inventory.ItemStack |
nmsItemFromString(java.lang.String dataString)
Converts a string into an item stack.
|
static void |
nmsRepsawn(org.bukkit.entity.Player player)
Sends a packet to instantly respawn the given player.
|
static org.bukkit.inventory.ItemStack |
nmsSerialize(org.bukkit.inventory.ItemStack itemStack)
Serializes the nbt data of an item stack, so it equals the default save format.
|
static java.lang.String |
nmsStringFromItem(org.bukkit.inventory.ItemStack itemStack)
Conberts an item stack into a string.
|
public static void nmsRepsawn(org.bukkit.entity.Player player)
player
- The player that should respawn.public static void nmsBorder(org.bukkit.entity.Player player, org.bukkit.Location location, int radius)
player
- The player to create the border for.location
- The location of the border.radius
- The radius of the border.public static void nmsEntityPersistence(org.bukkit.entity.Entity entity, boolean persistent)
entity
- The Bukkit entity.persistent
- If it should persist.public static org.bukkit.inventory.ItemStack nmsSerialize(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item stack to serialize.public static org.bukkit.inventory.ItemStack nmsItemFromString(java.lang.String dataString) throws java.lang.Exception
dataString
- The string to convert.java.lang.Exception
- Error while converting.public static java.lang.String nmsStringFromItem(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item to convert.public static net.md_5.bungee.api.chat.ItemTag getTagFromItem(org.bukkit.inventory.ItemStack itemStack)
itemStack
- The item to convert.