public class BukkitUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static com.sk89q.worldguard.blacklist.target.Target |
createTarget(org.bukkit.block.Block block)
Get a blacklist target for the given block.
|
static com.sk89q.worldguard.blacklist.target.Target |
createTarget(org.bukkit.block.Block block,
org.bukkit.Material effectiveMaterial)
Get a blacklist target for the given block.
|
static com.sk89q.worldguard.blacklist.target.Target |
createTarget(org.bukkit.inventory.ItemStack item)
Get a blacklist target for the given item.
|
static com.sk89q.worldguard.blacklist.target.Target |
createTarget(org.bukkit.Material material)
Get a blacklist target for the given material.
|
static int |
getPotionEffectBits(org.bukkit.inventory.ItemStack item)
Get just the potion effect bits.
|
static boolean |
isWaterPotion(org.bukkit.inventory.ItemStack item)
Checks if the given potion is a vial of water.
|
public static boolean isWaterPotion(org.bukkit.inventory.ItemStack item)
item - the item to checkpublic static int getPotionEffectBits(org.bukkit.inventory.ItemStack item)
item - itempublic static com.sk89q.worldguard.blacklist.target.Target createTarget(org.bukkit.block.Block block,
org.bukkit.Material effectiveMaterial)
block - the blockeffectiveMaterial - The effective material, if differentpublic static com.sk89q.worldguard.blacklist.target.Target createTarget(org.bukkit.block.Block block)
block - the blockpublic static com.sk89q.worldguard.blacklist.target.Target createTarget(org.bukkit.inventory.ItemStack item)
item - the itempublic static com.sk89q.worldguard.blacklist.target.Target createTarget(org.bukkit.Material material)
material - the material