public class Methods
extends java.lang.Object
| Constructor and Description |
|---|
Methods() |
| Modifier and Type | Method and Description |
|---|---|
static org.bukkit.inventory.ItemStack |
createItem(org.bukkit.Material item,
java.lang.String name,
org.bukkit.ChatColor color,
java.util.List<java.lang.String> description)
Creates an inventory item with a custom lore message.
|
static org.bukkit.inventory.ItemStack |
createItem(org.bukkit.entity.Player p,
org.bukkit.Material item,
java.lang.String name,
org.bukkit.ChatColor color,
Indicator.Indicators type)
Creates an inventory item checking for an indicators permission.
|
static org.bukkit.inventory.ItemStack |
createItem(org.bukkit.entity.Player p,
org.bukkit.Material item,
java.lang.String name,
org.bukkit.ChatColor color,
Trail.Trails type)
Creates an inventory item checking for a trails permission.
|
static boolean |
hasPermission(org.bukkit.entity.Player player,
java.lang.String type,
java.lang.String suffix)
Checks to see if the player has any of the ElementalEffects permissions or isOP()
|
static java.lang.String |
normalizeString(java.lang.String input)
Used to turn any odd strings into normal strings where the first character is upper case
and the following characters are lower case.
|
static void |
playColoredParticle(org.bukkit.Location location,
int amount,
double x,
double y,
double z,
int r,
int g,
int b)
Plays a redstone particle with a custom color based on RGB values.
|
static org.bukkit.util.Vector |
rotateAroundAxisX(org.bukkit.util.Vector v,
double angle)
Used to rotate a vector around the x-axis by a certain angle
|
static org.bukkit.util.Vector |
rotateAroundAxisY(org.bukkit.util.Vector v,
double angle)
Used to rotate a vector around the y-axis by a certain angle
|
public static org.bukkit.inventory.ItemStack createItem(org.bukkit.Material item,
java.lang.String name,
org.bukkit.ChatColor color,
java.util.List<java.lang.String> description)
item - The icon that will appear in the inventoryname - The name of the item in the inventorycolor - The chat color of the namedescription - The lore messagepublic static org.bukkit.inventory.ItemStack createItem(org.bukkit.entity.Player p,
org.bukkit.Material item,
java.lang.String name,
org.bukkit.ChatColor color,
Trail.Trails type)
p - The player being checked for permissionsitem - The icon that will appear in the inventoryname - The name of the item in the inventorycolor - The chat color of the nametype - The type of trail permission being checkedpublic static org.bukkit.inventory.ItemStack createItem(org.bukkit.entity.Player p,
org.bukkit.Material item,
java.lang.String name,
org.bukkit.ChatColor color,
Indicator.Indicators type)
p - The player being checked for permissionsitem - The icon that will appear in the GUIname - The name of the item in the GUIcolor - The chat color of the nametype - The type of indicator permission being checkedpublic static boolean hasPermission(org.bukkit.entity.Player player,
java.lang.String type,
java.lang.String suffix)
player - The player being checkedtype - The type of permission being checkedsuffix - The defining variable of what the command is forpublic static java.lang.String normalizeString(java.lang.String input)
input - The string being manipulated.public static void playColoredParticle(org.bukkit.Location location,
int amount,
double x,
double y,
double z,
int r,
int g,
int b)
location - The location at which the particle will spawnamount - The amount of particles to spawn per call of this methodx - The offset of the x-axisy - The offset of the y-axisz - The offset of the z-axisr - The red valueg - The green valueb - The blue valuepublic static org.bukkit.util.Vector rotateAroundAxisX(org.bukkit.util.Vector v,
double angle)
v - The vector being manipulatedangle - The angle at which to rotatepublic static org.bukkit.util.Vector rotateAroundAxisY(org.bukkit.util.Vector v,
double angle)
v - The vector being manipulatedangle - The angle at which to rotate