枚举 EntityType

java.lang.Object
java.lang.Enum<EntityType>
org.bukkit.entity.EntityType
所有已实现的接口:
Serializable, Comparable<EntityType>, java.lang.constant.Constable

public enum EntityType extends Enum<EntityType>
  • 枚举常量详细资料

    • DROPPED_ITEM

      public static final EntityType DROPPED_ITEM
    • EXPERIENCE_ORB

      public static final EntityType EXPERIENCE_ORB
      An experience orb.
    • AREA_EFFECT_CLOUD

      public static final EntityType AREA_EFFECT_CLOUD
      另请参阅:
    • ELDER_GUARDIAN

      public static final EntityType ELDER_GUARDIAN
      另请参阅:
    • WITHER_SKELETON

      public static final EntityType WITHER_SKELETON
      另请参阅:
    • STRAY

      public static final EntityType STRAY
      另请参阅:
    • EGG

      public static final EntityType EGG
      A flying chicken egg.
    • LEASH_HITCH

      public static final EntityType LEASH_HITCH
      A leash attached to a fencepost.
    • PAINTING

      public static final EntityType PAINTING
      A painting on a wall.
    • ARROW

      public static final EntityType ARROW
      An arrow projectile; may get stuck in the ground.
    • SNOWBALL

      public static final EntityType SNOWBALL
      A flying snowball.
    • FIREBALL

      public static final EntityType FIREBALL
      A flying large fireball, as thrown by a Ghast for example.
    • SMALL_FIREBALL

      public static final EntityType SMALL_FIREBALL
      A flying small fireball, such as thrown by a Blaze or player.
    • ENDER_PEARL

      public static final EntityType ENDER_PEARL
      A flying ender pearl.
    • ENDER_SIGNAL

      public static final EntityType ENDER_SIGNAL
      An ender eye signal.
    • SPLASH_POTION

      public static final EntityType SPLASH_POTION
      A flying splash potion.
    • THROWN_EXP_BOTTLE

      public static final EntityType THROWN_EXP_BOTTLE
      A flying experience bottle.
    • ITEM_FRAME

      public static final EntityType ITEM_FRAME
      An item frame on a wall.
    • WITHER_SKULL

      public static final EntityType WITHER_SKULL
      A flying wither skull projectile.
    • PRIMED_TNT

      public static final EntityType PRIMED_TNT
      Primed TNT that is about to explode.
    • FALLING_BLOCK

      public static final EntityType FALLING_BLOCK
      A block that is going to or is about to fall.
    • FIREWORK

      public static final EntityType FIREWORK
      Internal representation of a Firework once it has been launched.
    • HUSK

      public static final EntityType HUSK
      另请参阅:
    • SPECTRAL_ARROW

      public static final EntityType SPECTRAL_ARROW
      Like TIPPED_ARROW but causes the PotionEffectType.GLOWING effect on all team members.
    • SHULKER_BULLET

      public static final EntityType SHULKER_BULLET
      Bullet fired by SHULKER.
    • DRAGON_FIREBALL

      public static final EntityType DRAGON_FIREBALL
      Like FIREBALL but with added effects.
    • ZOMBIE_VILLAGER

      public static final EntityType ZOMBIE_VILLAGER
      另请参阅:
    • SKELETON_HORSE

      public static final EntityType SKELETON_HORSE
      另请参阅:
    • ZOMBIE_HORSE

      public static final EntityType ZOMBIE_HORSE
      另请参阅:
    • ARMOR_STAND

      public static final EntityType ARMOR_STAND
      Mechanical entity with an inventory for placing weapons / armor into.
    • DONKEY

      public static final EntityType DONKEY
      另请参阅:
    • MULE

      public static final EntityType MULE
      另请参阅:
    • EVOKER_FANGS

      public static final EntityType EVOKER_FANGS
      另请参阅:
    • EVOKER

      public static final EntityType EVOKER
      另请参阅:
    • VEX

      public static final EntityType VEX
      另请参阅:
    • VINDICATOR

      public static final EntityType VINDICATOR
      另请参阅:
    • ILLUSIONER

      public static final EntityType ILLUSIONER
      另请参阅:
    • MINECART_COMMAND

      public static final EntityType MINECART_COMMAND
      另请参阅:
    • BOAT

      public static final EntityType BOAT
      A placed boat.
    • MINECART

      public static final EntityType MINECART
      另请参阅:
    • MINECART_CHEST

      public static final EntityType MINECART_CHEST
      另请参阅:
    • MINECART_FURNACE

      public static final EntityType MINECART_FURNACE
      另请参阅:
    • MINECART_TNT

      public static final EntityType MINECART_TNT
      另请参阅:
    • MINECART_HOPPER

      public static final EntityType MINECART_HOPPER
      另请参阅:
    • MINECART_MOB_SPAWNER

      public static final EntityType MINECART_MOB_SPAWNER
      另请参阅:
    • CREEPER

      public static final EntityType CREEPER
    • SKELETON

      public static final EntityType SKELETON
    • SPIDER

      public static final EntityType SPIDER
    • GIANT

      public static final EntityType GIANT
    • ZOMBIE

      public static final EntityType ZOMBIE
    • SLIME

      public static final EntityType SLIME
    • GHAST

      public static final EntityType GHAST
    • PIG_ZOMBIE

      public static final EntityType PIG_ZOMBIE
    • ENDERMAN

      public static final EntityType ENDERMAN
    • CAVE_SPIDER

      public static final EntityType CAVE_SPIDER
    • SILVERFISH

      public static final EntityType SILVERFISH
    • BLAZE

      public static final EntityType BLAZE
    • MAGMA_CUBE

      public static final EntityType MAGMA_CUBE
    • ENDER_DRAGON

      public static final EntityType ENDER_DRAGON
    • WITHER

      public static final EntityType WITHER
    • BAT

      public static final EntityType BAT
    • WITCH

      public static final EntityType WITCH
    • ENDERMITE

      public static final EntityType ENDERMITE
    • GUARDIAN

      public static final EntityType GUARDIAN
    • SHULKER

      public static final EntityType SHULKER
    • PIG

      public static final EntityType PIG
    • SHEEP

      public static final EntityType SHEEP
    • COW

      public static final EntityType COW
    • CHICKEN

      public static final EntityType CHICKEN
    • SQUID

      public static final EntityType SQUID
    • WOLF

      public static final EntityType WOLF
    • MUSHROOM_COW

      public static final EntityType MUSHROOM_COW
    • SNOWMAN

      public static final EntityType SNOWMAN
    • OCELOT

      public static final EntityType OCELOT
    • IRON_GOLEM

      public static final EntityType IRON_GOLEM
    • HORSE

      public static final EntityType HORSE
    • RABBIT

      public static final EntityType RABBIT
    • POLAR_BEAR

      public static final EntityType POLAR_BEAR
    • LLAMA

      public static final EntityType LLAMA
    • LLAMA_SPIT

      public static final EntityType LLAMA_SPIT
    • PARROT

      public static final EntityType PARROT
    • VILLAGER

      public static final EntityType VILLAGER
    • ENDER_CRYSTAL

      public static final EntityType ENDER_CRYSTAL
    • LINGERING_POTION

      public static final EntityType LINGERING_POTION
      A flying lingering potion
    • FISHING_HOOK

      public static final EntityType FISHING_HOOK
      A fishing line and bobber.
    • LIGHTNING

      public static final EntityType LIGHTNING
      A bolt of lightning.

      Spawn with World.strikeLightning(Location).

    • WEATHER

      public static final EntityType WEATHER
    • PLAYER

      public static final EntityType PLAYER
    • COMPLEX_PART

      public static final EntityType COMPLEX_PART
    • TIPPED_ARROW

      public static final EntityType TIPPED_ARROW
      Like ARROW but tipped with a specific potion which is applied on contact.
    • UNKNOWN

      public static final EntityType UNKNOWN
      An unknown entity without an Entity Class
  • 方法详细资料

    • values

      public static EntityType[] values()
      按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
      返回:
      按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
    • valueOf

      public static EntityType valueOf(String name)
      返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
      NullPointerException - 如果参数为空值
    • getName

      @Deprecated public String getName()
      已过时。
      Magic value
      返回:
      the entity type's name
    • getEntityClass

      public Class<? extends Entity> getEntityClass()
    • getTypeId

      @Deprecated public short getTypeId()
      已过时。
      Magic value
      返回:
      the raw type id
    • fromName

      @Deprecated public static EntityType fromName(String name)
      已过时。
      Magic value
      参数:
      name - the entity type's name
      返回:
      the matching entity type or null
    • fromId

      @Deprecated public static EntityType fromId(int id)
      已过时。
      Magic value
      参数:
      id - the raw type id
      返回:
      the matching entity type or null
    • isSpawnable

      public boolean isSpawnable()
      Some entities cannot be spawned using World.spawnEntity(Location, EntityType) or World.spawn(Location, Class), usually because they require additional information in order to spawn.
      返回:
      False if the entity type cannot be spawned
    • isAlive

      public boolean isAlive()