Package org.mcmonkey.sentinel.utilities
Class SentinelVersionCompat
java.lang.Object
org.mcmonkey.sentinel.utilities.SentinelVersionCompat
-
Field Summary
Modifier and TypeFieldDescriptionA map of armor materials to their protection multipliers.static final HashSet
<org.bukkit.Material> HashSets of Materials within a category (for multi-version support).static final HashSet
<org.bukkit.Material> HashSets of Materials within a category (for multi-version support).static final HashSet
<org.bukkit.Material> HashSets of Materials within a category (for multi-version support).static final HashSet
<org.bukkit.Material> HashSets of Materials within a category (for multi-version support).static final HashSet
<org.bukkit.Material> HashSets of Materials within a category (for multi-version support).static final HashSet
<org.bukkit.Material> HashSets of Materials within a category (for multi-version support).static final org.bukkit.Material
A specific material (for multi-version support).static final org.bukkit.Material
A specific material (for multi-version support).static final org.bukkit.Material
A specific material (for multi-version support).static final HashSet
<org.bukkit.Material> HashSets of Materials within a category (for multi-version support).static final HashSet
<org.bukkit.Material> HashSets of Materials within a category (for multi-version support).static final HashSet
<org.bukkit.Material> HashSets of Materials within a category (for multi-version support).static final HashSet
<org.bukkit.Material> HashSets of Materials within a category (for multi-version support).static final HashSet
<org.bukkit.Material> HashSets of Materials within a category (for multi-version support).static final HashSet
<org.bukkit.Material> HashSets of Materials within a category (for multi-version support).static final boolean
Boolean indicating if the server version is >= the named version.static final boolean
Boolean indicating if the server version is >= the named version.static final boolean
Boolean indicating if the server version is >= the named version.static final boolean
Boolean indicating if the server version is >= the named version.static final boolean
Boolean indicating if the server version is >= the named version.static final boolean
Boolean indicating if the server version is >= the named version.static final boolean
Boolean indicating if the server version is >= the named version.static final boolean
Boolean indicating if the server version is >= the named version.static final boolean
Boolean indicating if the server version is >= the named version.static final boolean
Boolean indicating if the server version is >= the named version.static final boolean
Boolean indicating if the server version is >= the named version.static final boolean
Boolean indicating if the server version is >= the named version.static final boolean
Boolean indicating if the server version is >= the named version.static final boolean
Boolean indicating if the server version is >= the named version.static final boolean
Boolean indicating if the server version is >= the named version.A map of weapon materials to their damage multipliers. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addAllMaterials
(Set<org.bukkit.Material> set, String... matNames) Adds a a list of named Materials to a set.static void
allMaterialsTo
(Map<org.bukkit.Material, Double> map, Set<org.bukkit.Material> set, Double val) Adds a set of materials to a map as keys with a specific value.static org.bukkit.entity.EntityType[]
combine
(org.bukkit.entity.EntityType[] a, org.bukkit.entity.EntityType... b) Combines two arrays of EntityType values.static org.bukkit.Material
getMaterial
(String name) Gets the Material instance for a name (multi-version support).static void
init()
static boolean
isRangedWeapon
(org.bukkit.inventory.ItemStack item) Returns whether an item is a valid ranged weapon type.static boolean
isWeapon
(org.bukkit.Material mat) Returns whether an item material is a valid weapon type.
-
Field Details
-
SWORD_MATERIALS
HashSets of Materials within a category (for multi-version support). -
PICKAXE_MATERIALS
HashSets of Materials within a category (for multi-version support). -
AXE_MATERIALS
HashSets of Materials within a category (for multi-version support). -
HELMET_MATERIALS
HashSets of Materials within a category (for multi-version support). -
CHESTPLATE_MATERIALS
HashSets of Materials within a category (for multi-version support). -
LEGGINGS_MATERIALS
HashSets of Materials within a category (for multi-version support). -
BOOTS_MATERIALS
HashSets of Materials within a category (for multi-version support). -
BOW_MATERIALS
HashSets of Materials within a category (for multi-version support). -
POTION_MATERIALS
HashSets of Materials within a category (for multi-version support). -
SKULL_MATERIALS
HashSets of Materials within a category (for multi-version support). -
OTHER_RANGED_MATERIALS
HashSets of Materials within a category (for multi-version support). -
TRANSPARENT_BLOCKS
HashSets of Materials within a category (for multi-version support). -
WEAPON_DAMAGE_MULTIPLIERS
A map of weapon materials to their damage multipliers. -
ARMOR_PROTECTION_MULTIPLIERS
A map of armor materials to their protection multipliers. -
MATERIAL_SNOW_BALL
public static final org.bukkit.Material MATERIAL_SNOW_BALLA specific material (for multi-version support). -
MATERIAL_NETHER_STAR
public static final org.bukkit.Material MATERIAL_NETHER_STARA specific material (for multi-version support). -
MATERIAL_BLAZE_ROD
public static final org.bukkit.Material MATERIAL_BLAZE_RODA specific material (for multi-version support). -
v1_8
public static final boolean v1_8Boolean indicating if the server version is >= the named version. -
v1_9
public static final boolean v1_9Boolean indicating if the server version is >= the named version. -
v1_10
public static final boolean v1_10Boolean indicating if the server version is >= the named version. -
v1_11
public static final boolean v1_11Boolean indicating if the server version is >= the named version. -
v1_12
public static final boolean v1_12Boolean indicating if the server version is >= the named version. -
v1_13
public static final boolean v1_13Boolean indicating if the server version is >= the named version. -
v1_14
public static final boolean v1_14Boolean indicating if the server version is >= the named version. -
v1_15
public static final boolean v1_15Boolean indicating if the server version is >= the named version. -
v1_16
public static final boolean v1_16Boolean indicating if the server version is >= the named version. -
v1_17
public static final boolean v1_17Boolean indicating if the server version is >= the named version. -
v1_18
public static final boolean v1_18Boolean indicating if the server version is >= the named version. -
v1_19
public static final boolean v1_19Boolean indicating if the server version is >= the named version. -
v1_20
public static final boolean v1_20Boolean indicating if the server version is >= the named version. -
v1_21
public static final boolean v1_21Boolean indicating if the server version is >= the named version. -
vFuture
public static final boolean vFutureBoolean indicating if the server version is >= the named version.
-
-
Constructor Details
-
SentinelVersionCompat
public SentinelVersionCompat()
-
-
Method Details
-
init
public static void init() -
isWeapon
public static boolean isWeapon(org.bukkit.Material mat) Returns whether an item material is a valid weapon type. -
isRangedWeapon
public static boolean isRangedWeapon(org.bukkit.inventory.ItemStack item) Returns whether an item is a valid ranged weapon type. -
combine
public static org.bukkit.entity.EntityType[] combine(org.bukkit.entity.EntityType[] a, org.bukkit.entity.EntityType... b) Combines two arrays of EntityType values. -
getMaterial
Gets the Material instance for a name (multi-version support). -
addAllMaterials
Adds a a list of named Materials to a set. -
allMaterialsTo
public static void allMaterialsTo(Map<org.bukkit.Material, Double> map, Set<org.bukkit.Material> set, Double val) Adds a set of materials to a map as keys with a specific value.
-