程序包 org.bukkit

枚举 Effect

所有已实现的接口:
Serializable, Comparable<Effect>, Constable

public enum Effect extends Enum<Effect>
效果列表
  • 枚举常量详细资料

    • CLICK2

      public static final Effect CLICK2
      另一种点击声
    • CLICK1

      public static final Effect CLICK1
      点击声
    • BOW_FIRE

      public static final Effect BOW_FIRE
      弓的射击声
    • DOOR_TOGGLE

      @Deprecated public static final Effect DOOR_TOGGLE
      已过时。
      不复存在
      开门声(木门)
      另请参阅:
    • IRON_DOOR_TOGGLE

      @Deprecated public static final Effect IRON_DOOR_TOGGLE
      已过时。
      不复存在
      开门声(铁门)
      另请参阅:
    • TRAPDOOR_TOGGLE

      @Deprecated public static final Effect TRAPDOOR_TOGGLE
      已过时。
      不复存在
      开门声(木活板门)
      另请参阅:
    • IRON_TRAPDOOR_TOGGLE

      @Deprecated public static final Effect IRON_TRAPDOOR_TOGGLE
      已过时。
      不复存在
      开门声(铁活板门)
      另请参阅:
    • FENCE_GATE_TOGGLE

      @Deprecated public static final Effect FENCE_GATE_TOGGLE
      已过时。
      不复存在
      开门声(栅栏门)
      另请参阅:
    • DOOR_CLOSE

      @Deprecated public static final Effect DOOR_CLOSE
      已过时。
      不复存在
      关门声(木门)
      另请参阅:
    • IRON_DOOR_CLOSE

      @Deprecated public static final Effect IRON_DOOR_CLOSE
      已过时。
      不复存在
      关门声(铁门)
      另请参阅:
    • TRAPDOOR_CLOSE

      @Deprecated public static final Effect TRAPDOOR_CLOSE
      已过时。
      不复存在
      关门声(木活板门)
      另请参阅:
    • IRON_TRAPDOOR_CLOSE

      @Deprecated public static final Effect IRON_TRAPDOOR_CLOSE
      已过时。
      不复存在
      关门声(铁活板门)
      另请参阅:
    • FENCE_GATE_CLOSE

      @Deprecated public static final Effect FENCE_GATE_CLOSE
      已过时。
      不复存在
      关门声(栅栏门)
      另请参阅:
    • EXTINGUISH

      public static final Effect EXTINGUISH
      火焰熄灭的声音
    • RECORD_PLAY

      public static final Effect RECORD_PLAY
      播放唱片歌曲的声音
    • GHAST_SHRIEK

      public static final Effect GHAST_SHRIEK
      恶魂的尖叫声
    • GHAST_SHOOT

      public static final Effect GHAST_SHOOT
      恶魂投射火球的声音
    • BLAZE_SHOOT

      public static final Effect BLAZE_SHOOT
      烈焰人投射火球的声音
    • ZOMBIE_CHEW_WOODEN_DOOR

      public static final Effect ZOMBIE_CHEW_WOODEN_DOOR
      僵尸敲木门的声音
    • ZOMBIE_CHEW_IRON_DOOR

      public static final Effect ZOMBIE_CHEW_IRON_DOOR
      僵尸敲铁门的声音
    • ZOMBIE_DESTROY_DOOR

      public static final Effect ZOMBIE_DESTROY_DOOR
      僵尸摧毁门的声音
    • SMOKE

      public static final Effect SMOKE
      烟雾效果
    • STEP_SOUND

      public static final Effect STEP_SOUND
      方块被破坏的声音
    • POTION_BREAK

      public static final Effect POTION_BREAK
      药水的视觉效果
    • INSTANT_POTION_BREAK

      public static final Effect INSTANT_POTION_BREAK
      Visual effect of an instant splash potion breaking. Needs color data value as additional info.
    • ENDER_SIGNAL

      public static final Effect ENDER_SIGNAL
      末影颗粒视觉效果
    • MOBSPAWNER_FLAMES

      public static final Effect MOBSPAWNER_FLAMES
      火焰颗粒视觉效果
    • BREWING_STAND_BREW

      public static final Effect BREWING_STAND_BREW
      酿造台酿造的声音
    • CHORUS_FLOWER_GROW

      public static final Effect CHORUS_FLOWER_GROW
      紫颂果生长的声音
    • CHORUS_FLOWER_DEATH

      public static final Effect CHORUS_FLOWER_DEATH
      紫颂果凋谢的声音
    • PORTAL_TRAVEL

      public static final Effect PORTAL_TRAVEL
      通过传送门的声音
    • ENDEREYE_LAUNCH

      public static final Effect ENDEREYE_LAUNCH
      安置末影之眼的声音
    • FIREWORK_SHOOT

      public static final Effect FIREWORK_SHOOT
      发射烟花的声音
    • VILLAGER_PLANT_GROW

      public static final Effect VILLAGER_PLANT_GROW
      村民种植植物的声音 数据是颗粒的数量
    • DRAGON_BREATH

      public static final Effect DRAGON_BREATH
      末影龙攻击和呼吸的声音
    • ANVIL_BREAK

      public static final Effect ANVIL_BREAK
      铁砧破坏的声音
    • ANVIL_USE

      public static final Effect ANVIL_USE
      使用铁砧的声音
    • ANVIL_LAND

      public static final Effect ANVIL_LAND
      铁砧落地声音(坠落)
    • ENDERDRAGON_SHOOT

      public static final Effect ENDERDRAGON_SHOOT
      末影龙喷火的声音
    • WITHER_BREAK_BLOCK

      public static final Effect WITHER_BREAK_BLOCK
      凋零破坏方块的声音
    • WITHER_SHOOT

      public static final Effect WITHER_SHOOT
      凋零射击的声音
    • ZOMBIE_INFECT

      public static final Effect ZOMBIE_INFECT
      僵尸感染目标(村民)的声音
    • ZOMBIE_CONVERTED_VILLAGER

      public static final Effect ZOMBIE_CONVERTED_VILLAGER
      僵尸被转化成村民的声音
    • BAT_TAKEOFF

      public static final Effect BAT_TAKEOFF
      蝙蝠起飞的声音
    • END_GATEWAY_SPAWN

      public static final Effect END_GATEWAY_SPAWN
      末地传送门生成的声音和粒子效果
    • ENDERDRAGON_GROWL

      public static final Effect ENDERDRAGON_GROWL
      末影龙咆哮的声音
    • PHANTOM_BITE

      public static final Effect PHANTOM_BITE
      The sound played when phantom bites.
    • ZOMBIE_CONVERTED_TO_DROWNED

      public static final Effect ZOMBIE_CONVERTED_TO_DROWNED
      The sound played when a zombie converts to a drowned.
    • HUSK_CONVERTED_TO_ZOMBIE

      public static final Effect HUSK_CONVERTED_TO_ZOMBIE
      The sound played when a husk converts to a zombie.
    • GRINDSTONE_USE

      public static final Effect GRINDSTONE_USE
      The sound played when a grindstone is being used.
    • BOOK_PAGE_TURN

      public static final Effect BOOK_PAGE_TURN
      The sound played when a book page is being turned.
    • SMITHING_TABLE_USE

      public static final Effect SMITHING_TABLE_USE
      The sound played when a smithing table is being used.
    • POINTED_DRIPSTONE_LAND

      public static final Effect POINTED_DRIPSTONE_LAND
      The sound played when a pointed dripstone hits the surface.
    • POINTED_DRIPSTONE_DRIP_LAVA_INTO_CAULDRON

      public static final Effect POINTED_DRIPSTONE_DRIP_LAVA_INTO_CAULDRON
      The sound played when a pointed dripstone drips lava into a cauldron.
    • POINTED_DRIPSTONE_DRIP_WATER_INTO_CAULDRON

      public static final Effect POINTED_DRIPSTONE_DRIP_WATER_INTO_CAULDRON
      The sound played when a pointed dripstone drips water into a cauldron.
    • SKELETON_CONVERTED_TO_STRAY

      public static final Effect SKELETON_CONVERTED_TO_STRAY
      The sound played when a skeleton converts to a stray.
    • COMPOSTER_FILL_ATTEMPT

      public static final Effect COMPOSTER_FILL_ATTEMPT
      The sound played / particles shown when a composter is being attempted to fill. True for a successful attempt false for an unsuccessful attempt.
    • LAVA_INTERACT

      public static final Effect LAVA_INTERACT
      The sound played / particles shown when lava interacts with the world. For example by forming stone, obsidian, basalt or destroying blocks such as torches.
    • REDSTONE_TORCH_BURNOUT

      public static final Effect REDSTONE_TORCH_BURNOUT
      The sound played / particles shown when a redstone torch burns out.
    • END_PORTAL_FRAME_FILL

      public static final Effect END_PORTAL_FRAME_FILL
      The sound played / particles shown when an eye of ender is placed into an ender portal frame.
    • DRIPPING_DRIPSTONE

      public static final Effect DRIPPING_DRIPSTONE
      The particles shown when a dripstone drips lava or water. This effect requires a dripstone at the location as well as lava or water at the root of the dripstone.
    • BONE_MEAL_USE

      public static final Effect BONE_MEAL_USE
      The sound played / particles shown when bone meal is used to grow a plant. Data is the number of particles.
    • ENDER_DRAGON_DESTROY_BLOCK

      public static final Effect ENDER_DRAGON_DESTROY_BLOCK
      The particles shown when an ender dragon destroys blocks.
    • SPONGE_DRY

      public static final Effect SPONGE_DRY
      The particles shown when a sponge dries in an ultra warm world (nether).
    • ELECTRIC_SPARK

      public static final Effect ELECTRIC_SPARK
      The particles shown when a lightning hits a lightning rod or oxidized copper. Data is the axis at which the particle should be shown. If no data is provided it will show the particles at the block faces.
    • COPPER_WAX_ON

      public static final Effect COPPER_WAX_ON
      The sound played / particles shown when wax is applied to a copper block.
    • COPPER_WAX_OFF

      public static final Effect COPPER_WAX_OFF
      The particles shown when wax is removed from a copper block.
    • OXIDISED_COPPER_SCRAPE

      public static final Effect OXIDISED_COPPER_SCRAPE
      The particles shown when oxidation is scraped of an oxidized copper block.
  • 方法详细资料

    • values

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

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

      @Deprecated public int getId()
      已过时。
      不安全的参数
      获取这个效果的id.

      原文:Gets the ID for this effect.

      返回:
      效果id
    • getType

      @NotNull public @NotNull Effect.Type getType()
      返回:
      效果的类型
    • getData

      @Nullable public @Nullable Class<?> getData()
      返回:
      代表这个效果的类,不存在为null
    • getById

      @Deprecated @Nullable public static @Nullable Effect getById(int id)
      已过时。
      不安全的参数
      获取给定id相关联的效果.

      原文:Gets the Effect associated with the given ID.

      参数:
      id - 效果id
      返回:
      给定id相关联效果