Package org.mcmonkey.sentinel.targeting
Class SentinelTarget
java.lang.Object
org.mcmonkey.sentinel.targeting.SentinelTarget
Helper for target types.
-
Field Summary
Modifier and TypeFieldDescriptionstatic SentinelTarget
Valid target types for 1.19 or higher.static SentinelTarget
Valid target types for 1.21 or higher.static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Valid target types for 1.15 or higher.static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Valid target types for 1.21 or higher.static SentinelTarget
Valid target types for 1.21 or higher.static SentinelTarget
Valid target types for 1.19 or higher.static SentinelTarget
Valid target types for 1.14 or higher.static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Valid target types for 1.13 or higher.static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Valid target types for 1.13 or higher.static SentinelTarget
Valid target types for 1.11 or higher.static SentinelTarget
Valid target types for 1.13 or higher.static SentinelTarget
Valid target types for 1.11 or higher.static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Valid target types for 1.11 or higher.static SentinelTarget
Valid target types for 1.13 or higher.static SentinelTarget
Valid target types for 1.14 or higher.static SentinelTarget
Valid target types for 1.19 or higher.static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Valid target types for 1.16 or higher.static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Valid target types for 1.11 or higher.static SentinelTarget
Valid target types for 1.12 or higher.static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Valid target types for 1.11 or higher.static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Multiple-entity-type targets.static SentinelTarget
Multiple-entity-type targets.static SentinelTarget
Valid target types for 1.11 or higher.static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).String[]
The array of valid names for this target type.static HashSet
<org.bukkit.entity.EntityType> Entity types known to support native melee combat.static SentinelTarget
All NPCs are targets.static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
The NPC's owner is a target.static SentinelTarget
Valid target types for 1.14 or higher.static SentinelTarget
Valid target types for 1.12 or higher.static SentinelTarget
Multiple-entity-type targets.static SentinelTarget
Valid target types for 1.13 or higher.static SentinelTarget
Valid target types for 1.16 or higher.static SentinelTarget
Valid target types for 1.16 or higher.static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Valid target types for 1.14 or higher.static SentinelTarget
Player entity is a target.static SentinelTarget
Valid target types for 1.10 or higher.static SentinelTarget
Valid target types for 1.13 or higher.static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Valid target types for 1.14 or higher.static SentinelTarget
Valid target types for 1.13 or higher.static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Valid target types for 1.9 or higher.static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Valid target types for 1.11 or higher.static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Valid target types for 1.19 or higher.static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Valid target types for 1.11 or higher.static SentinelTarget
Valid target types for 1.16 or higher.static SentinelTarget
Valid target types for 1.19 or higher.static SentinelTarget
Valid target types for 1.14 or higher.static SentinelTarget
Valid target types for 1.13 or higher.static SentinelTarget
Valid target types for 1.13 or higher.HashSet
<org.bukkit.entity.EntityType> static SentinelTarget
Valid target types for 1.11 or higher.static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Valid target types for 1.11 or higher.static SentinelTarget
Valid target types for 1.14 or higher.static SentinelTarget
Valid target types for 1.19 or higher.static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Valid target types for 1.11 or higher.static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Valid target types for 1.16 or higher.static SentinelTarget
Valid target types for 1.11 or higher.static SentinelTarget
Valid target types for 1.15 or LOWER.static SentinelTarget
Valid target types for 1.11 or higher.static SentinelTarget
Basic single-entity target types (that were added in Minecraft 1.8 or earlier).static SentinelTarget
Valid target types for 1.16 or higher. -
Constructor Summary
ConstructorDescriptionSentinelTarget
(org.bukkit.entity.EntityType[] types, String... names) Constructs the target type instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic HashSet
<SentinelTarget> forEntityType
(org.bukkit.entity.EntityType type) Gets the set of targets that include an entity type.static SentinelTarget
Gets the Sentinel target that matches a name.boolean
isTarget
(org.bukkit.entity.LivingEntity entity) Returns whether this SentinelTarget targets the given entity.boolean
isTarget
(org.bukkit.entity.LivingEntity entity, SentinelTrait sentinel) Returns whether this SentinelTarget targets the given entity for the given Sentinel.name()
The name of this target type.
-
Field Details
-
NPCS
All NPCs are targets. -
OWNER
The NPC's owner is a target. -
PLAYERS
Player entity is a target. -
NATIVE_COMBAT_CAPABLE_TYPES
Entity types known to support native melee combat. -
PIGS
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
OCELOTS
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
COWS
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
RABBITS
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
SHEEP
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
CHICKENS
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
HORSES
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
MUSHROOM_COW
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
IRON_GOLEMS
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
SQUIDS
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
VILLAGER
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
WOLVES
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
SNOWMEN
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
WITCHES
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
GUARDIANS
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
CREERERS
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
SKELETONS
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
ZOMBIES
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
MAGMA_CUBES
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
SILVERFISH
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
BATS
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
BLAZES
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
GHASTS
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
GIANTS
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
SLIMES
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
SPIDERS
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
CAVE_SPIDERS
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
ENDERMEN
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
ENDERMITES
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
WITHERS
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
ENDERDRAGONS
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
ARMOR_STAND
Basic single-entity target types (that were added in Minecraft 1.8 or earlier). -
SHULKERS
Valid target types for 1.9 or higher. -
POLAR_BEARS
Valid target types for 1.10 or higher. -
VEXES
Valid target types for 1.11 or higher. -
DONKEYS
Valid target types for 1.11 or higher. -
LLAMAS
Valid target types for 1.11 or higher. -
MULES
Valid target types for 1.11 or higher. -
HUSKS
Valid target types for 1.11 or higher. -
ELDER_GUARDIANS
Valid target types for 1.11 or higher. -
EVOKERS
Valid target types for 1.11 or higher. -
SKELETON_HORSES
Valid target types for 1.11 or higher. -
STRAYS
Valid target types for 1.11 or higher. -
ZOMBIE_VILLAGERS
Valid target types for 1.11 or higher. -
ZOMBIE_HORSES
Valid target types for 1.11 or higher. -
WITHER_SKELETONS
Valid target types for 1.11 or higher. -
VINDICATORS
Valid target types for 1.11 or higher. -
PARROTS
Valid target types for 1.12 or higher. -
ILLUSIONERS
Valid target types for 1.12 or higher. -
DOLPHINS
Valid target types for 1.13 or higher. -
DROWNED
Valid target types for 1.13 or higher. -
COD
Valid target types for 1.13 or higher. -
SALMON
Valid target types for 1.13 or higher. -
PUFFERFISH
Valid target types for 1.13 or higher. -
TROPICAL_FISH
Valid target types for 1.13 or higher. -
PHANTOMS
Valid target types for 1.13 or higher. -
TURTLES
Valid target types for 1.13 or higher. -
FISH
Valid target types for 1.13 or higher. -
RAVAGERS
Valid target types for 1.14 or higher. -
PILLAGERS
Valid target types for 1.14 or higher. -
CATS
Valid target types for 1.14 or higher. -
PANDAS
Valid target types for 1.14 or higher. -
TRADER_LLAMAS
Valid target types for 1.14 or higher. -
WANDERING_TRADERS
Valid target types for 1.14 or higher. -
FOXES
Valid target types for 1.14 or higher. -
BEES
Valid target types for 1.15 or higher. -
ZOMBIE_PIGMEN
Valid target types for 1.15 or LOWER. -
HOGLINS
Valid target types for 1.16 or higher. -
PIGLINS
Valid target types for 1.16 or higher. -
STRIDERS
Valid target types for 1.16 or higher. -
ZOGLINS
Valid target types for 1.16 or higher. -
ZOMBIFIED_PIGLINS
Valid target types for 1.16 or higher. -
PIGLIN_BRUTE
Valid target types for 1.16 or higher. -
TADPOLES
Valid target types for 1.19 or higher. -
FROGS
Valid target types for 1.19 or higher. -
ALLAYS
Valid target types for 1.19 or higher. -
WARDENS
Valid target types for 1.19 or higher. -
CAMELS
Valid target types for 1.19 or higher. -
SNIFFERS
Valid target types for 1.19 or higher. -
ARMADILLOS
Valid target types for 1.21 or higher. -
BOGGEDS
Valid target types for 1.21 or higher. -
BREEZES
Valid target types for 1.21 or higher. -
PASSIVE_MOBS
Multiple-entity-type targets. -
MONSTERS
Multiple-entity-type targets. -
MOBS
Multiple-entity-type targets. -
names
The array of valid names for this target type. -
types
-
-
Constructor Details
-
SentinelTarget
Constructs the target type instance.
-
-
Method Details
-
forEntityType
Gets the set of targets that include an entity type. -
forName
Gets the Sentinel target that matches a name. -
name
The name of this target type. -
isTarget
public boolean isTarget(org.bukkit.entity.LivingEntity entity) Returns whether this SentinelTarget targets the given entity. -
isTarget
Returns whether this SentinelTarget targets the given entity for the given Sentinel.
-