Class SentinelTarget

java.lang.Object
org.mcmonkey.sentinel.targeting.SentinelTarget

public class SentinelTarget extends Object
Helper for target types.
  • Field Details

    • NPCS

      public static SentinelTarget NPCS
      All NPCs are targets.
    • OWNER

      public static SentinelTarget OWNER
      The NPC's owner is a target.
    • PLAYERS

      public static SentinelTarget PLAYERS
      Player entity is a target.
    • NATIVE_COMBAT_CAPABLE_TYPES

      public static HashSet<org.bukkit.entity.EntityType> NATIVE_COMBAT_CAPABLE_TYPES
      Entity types known to support native melee combat.
    • PIGS

      public static SentinelTarget PIGS
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • OCELOTS

      public static SentinelTarget OCELOTS
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • COWS

      public static SentinelTarget COWS
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • RABBITS

      public static SentinelTarget RABBITS
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • SHEEP

      public static SentinelTarget SHEEP
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • CHICKENS

      public static SentinelTarget CHICKENS
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • HORSES

      public static SentinelTarget HORSES
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • MUSHROOM_COW

      public static SentinelTarget MUSHROOM_COW
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • IRON_GOLEMS

      public static SentinelTarget IRON_GOLEMS
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • SQUIDS

      public static SentinelTarget SQUIDS
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • VILLAGER

      public static SentinelTarget VILLAGER
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • WOLVES

      public static SentinelTarget WOLVES
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • SNOWMEN

      public static SentinelTarget SNOWMEN
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • WITCHES

      public static SentinelTarget WITCHES
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • GUARDIANS

      public static SentinelTarget GUARDIANS
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • CREERERS

      public static SentinelTarget CREERERS
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • SKELETONS

      public static SentinelTarget SKELETONS
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • ZOMBIES

      public static SentinelTarget ZOMBIES
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • MAGMA_CUBES

      public static SentinelTarget MAGMA_CUBES
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • SILVERFISH

      public static SentinelTarget SILVERFISH
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • BATS

      public static SentinelTarget BATS
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • BLAZES

      public static SentinelTarget BLAZES
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • GHASTS

      public static SentinelTarget GHASTS
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • GIANTS

      public static SentinelTarget GIANTS
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • SLIMES

      public static SentinelTarget SLIMES
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • SPIDERS

      public static SentinelTarget SPIDERS
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • CAVE_SPIDERS

      public static SentinelTarget CAVE_SPIDERS
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • ENDERMEN

      public static SentinelTarget ENDERMEN
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • ENDERMITES

      public static SentinelTarget ENDERMITES
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • WITHERS

      public static SentinelTarget WITHERS
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • ENDERDRAGONS

      public static SentinelTarget ENDERDRAGONS
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • ARMOR_STAND

      public static SentinelTarget ARMOR_STAND
      Basic single-entity target types (that were added in Minecraft 1.8 or earlier).
    • SHULKERS

      public static SentinelTarget SHULKERS
      Valid target types for 1.9 or higher.
    • POLAR_BEARS

      public static SentinelTarget POLAR_BEARS
      Valid target types for 1.10 or higher.
    • VEXES

      public static SentinelTarget VEXES
      Valid target types for 1.11 or higher.
    • DONKEYS

      public static SentinelTarget DONKEYS
      Valid target types for 1.11 or higher.
    • LLAMAS

      public static SentinelTarget LLAMAS
      Valid target types for 1.11 or higher.
    • MULES

      public static SentinelTarget MULES
      Valid target types for 1.11 or higher.
    • HUSKS

      public static SentinelTarget HUSKS
      Valid target types for 1.11 or higher.
    • ELDER_GUARDIANS

      public static SentinelTarget ELDER_GUARDIANS
      Valid target types for 1.11 or higher.
    • EVOKERS

      public static SentinelTarget EVOKERS
      Valid target types for 1.11 or higher.
    • SKELETON_HORSES

      public static SentinelTarget SKELETON_HORSES
      Valid target types for 1.11 or higher.
    • STRAYS

      public static SentinelTarget STRAYS
      Valid target types for 1.11 or higher.
    • ZOMBIE_VILLAGERS

      public static SentinelTarget ZOMBIE_VILLAGERS
      Valid target types for 1.11 or higher.
    • ZOMBIE_HORSES

      public static SentinelTarget ZOMBIE_HORSES
      Valid target types for 1.11 or higher.
    • WITHER_SKELETONS

      public static SentinelTarget WITHER_SKELETONS
      Valid target types for 1.11 or higher.
    • VINDICATORS

      public static SentinelTarget VINDICATORS
      Valid target types for 1.11 or higher.
    • PARROTS

      public static SentinelTarget PARROTS
      Valid target types for 1.12 or higher.
    • ILLUSIONERS

      public static SentinelTarget ILLUSIONERS
      Valid target types for 1.12 or higher.
    • DOLPHINS

      public static SentinelTarget DOLPHINS
      Valid target types for 1.13 or higher.
    • DROWNED

      public static SentinelTarget DROWNED
      Valid target types for 1.13 or higher.
    • COD

      public static SentinelTarget COD
      Valid target types for 1.13 or higher.
    • SALMON

      public static SentinelTarget SALMON
      Valid target types for 1.13 or higher.
    • PUFFERFISH

      public static SentinelTarget PUFFERFISH
      Valid target types for 1.13 or higher.
    • TROPICAL_FISH

      public static SentinelTarget TROPICAL_FISH
      Valid target types for 1.13 or higher.
    • PHANTOMS

      public static SentinelTarget PHANTOMS
      Valid target types for 1.13 or higher.
    • TURTLES

      public static SentinelTarget TURTLES
      Valid target types for 1.13 or higher.
    • FISH

      public static SentinelTarget FISH
      Valid target types for 1.13 or higher.
    • RAVAGERS

      public static SentinelTarget RAVAGERS
      Valid target types for 1.14 or higher.
    • PILLAGERS

      public static SentinelTarget PILLAGERS
      Valid target types for 1.14 or higher.
    • CATS

      public static SentinelTarget CATS
      Valid target types for 1.14 or higher.
    • PANDAS

      public static SentinelTarget PANDAS
      Valid target types for 1.14 or higher.
    • TRADER_LLAMAS

      public static SentinelTarget TRADER_LLAMAS
      Valid target types for 1.14 or higher.
    • WANDERING_TRADERS

      public static SentinelTarget WANDERING_TRADERS
      Valid target types for 1.14 or higher.
    • FOXES

      public static SentinelTarget FOXES
      Valid target types for 1.14 or higher.
    • BEES

      public static SentinelTarget BEES
      Valid target types for 1.15 or higher.
    • ZOMBIE_PIGMEN

      public static SentinelTarget ZOMBIE_PIGMEN
      Valid target types for 1.15 or LOWER.
    • HOGLINS

      public static SentinelTarget HOGLINS
      Valid target types for 1.16 or higher.
    • PIGLINS

      public static SentinelTarget PIGLINS
      Valid target types for 1.16 or higher.
    • STRIDERS

      public static SentinelTarget STRIDERS
      Valid target types for 1.16 or higher.
    • ZOGLINS

      public static SentinelTarget ZOGLINS
      Valid target types for 1.16 or higher.
    • ZOMBIFIED_PIGLINS

      public static SentinelTarget ZOMBIFIED_PIGLINS
      Valid target types for 1.16 or higher.
    • PIGLIN_BRUTE

      public static SentinelTarget PIGLIN_BRUTE
      Valid target types for 1.16 or higher.
    • TADPOLES

      public static SentinelTarget TADPOLES
      Valid target types for 1.19 or higher.
    • FROGS

      public static SentinelTarget FROGS
      Valid target types for 1.19 or higher.
    • ALLAYS

      public static SentinelTarget ALLAYS
      Valid target types for 1.19 or higher.
    • WARDENS

      public static SentinelTarget WARDENS
      Valid target types for 1.19 or higher.
    • CAMELS

      public static SentinelTarget CAMELS
      Valid target types for 1.19 or higher.
    • SNIFFERS

      public static SentinelTarget SNIFFERS
      Valid target types for 1.19 or higher.
    • ARMADILLOS

      public static SentinelTarget ARMADILLOS
      Valid target types for 1.21 or higher.
    • BOGGEDS

      public static SentinelTarget BOGGEDS
      Valid target types for 1.21 or higher.
    • BREEZES

      public static SentinelTarget BREEZES
      Valid target types for 1.21 or higher.
    • PASSIVE_MOBS

      public static SentinelTarget PASSIVE_MOBS
      Multiple-entity-type targets.
    • MONSTERS

      public static SentinelTarget MONSTERS
      Multiple-entity-type targets.
    • MOBS

      public static SentinelTarget MOBS
      Multiple-entity-type targets.
    • names

      public String[] names
      The array of valid names for this target type.
    • types

      public HashSet<org.bukkit.entity.EntityType> types
  • Constructor Details

    • SentinelTarget

      public SentinelTarget(org.bukkit.entity.EntityType[] types, String... names)
      Constructs the target type instance.
  • Method Details

    • forEntityType

      public static HashSet<SentinelTarget> forEntityType(org.bukkit.entity.EntityType type)
      Gets the set of targets that include an entity type.
    • forName

      public static SentinelTarget forName(String name)
      Gets the Sentinel target that matches a name.
    • name

      public String 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

      public boolean isTarget(org.bukkit.entity.LivingEntity entity, SentinelTrait sentinel)
      Returns whether this SentinelTarget targets the given entity for the given Sentinel.