接口的使用
org.bukkit.damage.DamageType
使用DamageType的程序包
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
Classes concerning damage types and sources applicable to living entities.
用于操作可以存储在
物品堆
的额外数据的接口.Isolated components which may form part of item meta.
Tag
-related API.-
org.bukkit中DamageType的使用
类型参数类型为DamageType的org.bukkit中的字段参数类型为DamageType的org.bukkit中的方法修饰符和类型方法说明UnsafeValues.createDamageSourceBuilder
(@NotNull DamageType damageType) 已过时。Create a newDamageSource.Builder
. -
org.bukkit.damage中DamageType的使用
声明为DamageType的org.bukkit.damage中的字段修饰符和类型字段说明static final DamageType
DamageType.ARROW
static final DamageType
DamageType.BAD_RESPAWN_POINT
static final DamageType
DamageType.CACTUS
static final DamageType
DamageType.CAMPFIRE
static final DamageType
DamageType.CRAMMING
static final DamageType
DamageType.DRAGON_BREATH
static final DamageType
DamageType.DROWN
static final DamageType
DamageType.DRY_OUT
static final DamageType
DamageType.ENDER_PEARL
static final DamageType
DamageType.EXPLOSION
static final DamageType
DamageType.FALL
static final DamageType
DamageType.FALLING_ANVIL
static final DamageType
DamageType.FALLING_BLOCK
static final DamageType
DamageType.FALLING_STALACTITE
static final DamageType
DamageType.FIREBALL
static final DamageType
DamageType.FIREWORKS
static final DamageType
DamageType.FLY_INTO_WALL
static final DamageType
DamageType.FREEZE
static final DamageType
DamageType.GENERIC
static final DamageType
DamageType.GENERIC_KILL
static final DamageType
DamageType.HOT_FLOOR
static final DamageType
DamageType.IN_FIRE
static final DamageType
DamageType.IN_WALL
static final DamageType
DamageType.INDIRECT_MAGIC
static final DamageType
DamageType.LAVA
static final DamageType
DamageType.LIGHTNING_BOLT
static final DamageType
DamageType.MACE_SMASH
static final DamageType
DamageType.MAGIC
static final DamageType
DamageType.MOB_ATTACK
static final DamageType
DamageType.MOB_ATTACK_NO_AGGRO
static final DamageType
DamageType.MOB_PROJECTILE
static final DamageType
DamageType.ON_FIRE
static final DamageType
DamageType.OUT_OF_WORLD
static final DamageType
DamageType.OUTSIDE_BORDER
static final DamageType
DamageType.PLAYER_ATTACK
static final DamageType
DamageType.PLAYER_EXPLOSION
static final DamageType
DamageType.SONIC_BOOM
static final DamageType
DamageType.SPIT
static final DamageType
DamageType.STALAGMITE
static final DamageType
DamageType.STARVE
static final DamageType
DamageType.STING
static final DamageType
DamageType.SWEET_BERRY_BUSH
static final DamageType
DamageType.THORNS
static final DamageType
DamageType.THROWN
static final DamageType
DamageType.TRIDENT
static final DamageType
DamageType.UNATTRIBUTED_FIREBALL
static final DamageType
DamageType.WIND_CHARGE
static final DamageType
DamageType.WITHER
static final DamageType
DamageType.WITHER_SKULL
返回DamageType的org.bukkit.damage中的方法参数类型为DamageType的org.bukkit.damage中的方法修饰符和类型方法说明static @NotNull DamageSource.Builder
DamageSource.builder
(@NotNull DamageType damageType) Create a newDamageSource.Builder
. -
org.bukkit.inventory.meta中DamageType的使用
返回变量类型为DamageType的类型的org.bukkit.inventory.meta中的方法修饰符和类型方法说明ItemMeta.getDamageResistant()
Gets the type of damage this item will be resistant to when in entity form.类型变量类型为DamageType的org.bukkit.inventory.meta中的方法参数修饰符和类型方法说明void
ItemMeta.setDamageResistant
(@Nullable Tag<DamageType> tag) Sets the type of damage this item will be resistant to when in entity form. -
org.bukkit.inventory.meta.components中DamageType的使用
返回变量类型为DamageType的类型的org.bukkit.inventory.meta.components中的方法修饰符和类型方法说明BlocksAttacksComponent.getBypassedBy()
Gets the type of damage that will bypass blocking by this item.BlocksAttacksComponent.DamageReduction.getTypes()
Gets the types to which this reduction applies.修饰符和类型方法说明BlocksAttacksComponent.addDamageReduction
(@NotNull DamageType type, float base, float factor, float horizontalBlockingAngle) Add a new damage reduction to this component, which blocks specific types of attacks.void
BlocksAttacksComponent.DamageReduction.setTypes
(@Nullable DamageType type) Sets the types to which this reduction applies.类型变量类型为DamageType的org.bukkit.inventory.meta.components中的方法参数修饰符和类型方法说明BlocksAttacksComponent.addDamageReduction
(@NotNull Collection<DamageType> types, float base, float factor, float horizontalBlockingAngle) Add a new damage reduction to this component, which blocks specific types of attacks.BlocksAttacksComponent.addDamageReduction
(@NotNull Tag<DamageType> tag, float base, float factor, float horizontalBlockingAngle) Add a new damage reduction to this component, which blocks specific types of attacks.void
BlocksAttacksComponent.setBypassedBy
(@Nullable Tag<DamageType> tag) Sets the type of damage that will bypass blocking by this item.void
BlocksAttacksComponent.DamageReduction.setTypes
(@Nullable Collection<DamageType> types) Sets the types to which this reduction applies.void
BlocksAttacksComponent.DamageReduction.setTypes
(@Nullable Tag<DamageType> tag) Sets the types to which this reduction applies. -
org.bukkit.tag中DamageType的使用
类型参数类型为DamageType的org.bukkit.tag中的字段修饰符和类型字段说明static final Tag<DamageType>
DamageTypeTags.ALWAYS_HURTS_ENDER_DRAGONS
Vanilla tag representing damage types which always hurt enderdragons.static final Tag<DamageType>
DamageTypeTags.ALWAYS_KILLS_ARMOR_STANDS
Vanilla tag representing damage types which always kill armor stands.static final Tag<DamageType>
DamageTypeTags.ALWAYS_MOST_SIGNIFICANT_FALL
Vanilla tag representing damage types which cause maximum fall damage.static final Tag<DamageType>
DamageTypeTags.ALWAYS_TRIGGERS_SILVERFISH
Vanilla tag representing damage types which always trigger silverfish.static final Tag<DamageType>
DamageTypeTags.AVOIDS_GUARDIAN_THORNS
Vanilla tag representing damage types which avoid guardian thorn damage.static final Tag<DamageType>
DamageTypeTags.BURN_FROM_STEPPING
Vanilla tag representing damage types which originate from hot blocks.static final Tag<DamageType>
DamageTypeTags.BURNS_ARMOR_STANDS
Vanilla tag representing damage types which burn armor stands.static final Tag<DamageType>
DamageTypeTags.BYPASSES_ARMOR
Vanilla tag representing damage types which bypass armor.static final @Nullable Tag<DamageType>
DamageTypeTags.BYPASSES_COOLDOWN
Vanilla tag representing damage types which bypass cooldowns.static final Tag<DamageType>
DamageTypeTags.BYPASSES_EFFECTS
Vanilla tag representing damage types which bypass effects.static final Tag<DamageType>
DamageTypeTags.BYPASSES_ENCHANTMENTS
Vanilla tag representing damage types which bypass enchantments.static final Tag<DamageType>
DamageTypeTags.BYPASSES_INVULNERABILITY
Vanilla tag representing damage types which bypass invulnerability.static final Tag<DamageType>
DamageTypeTags.BYPASSES_RESISTANCE
Vanilla tag representing damage types which bypass resistance.static final Tag<DamageType>
DamageTypeTags.BYPASSES_SHIELD
Vanilla tag representing damage types which bypass shields.static final Tag<DamageType>
DamageTypeTags.BYPASSES_WOLF_ARMOR
Vanilla tag representing damage types which bypass wolf armor.static final Tag<DamageType>
DamageTypeTags.CAN_BREAK_ARMOR_STAND
Vanilla tag representing damage types which can break armor stands.static final Tag<DamageType>
DamageTypeTags.DAMAGES_HELMET
Vanilla tag representing damage types which damage helmets.static final Tag<DamageType>
DamageTypeTags.IGNITES_ARMOR_STANDS
Vanilla tag representing damage types which ignite armor stands.static final Tag<DamageType>
DamageTypeTags.IS_DROWNING
Vanilla tag representing all drowning damage types.static final Tag<DamageType>
DamageTypeTags.IS_EXPLOSION
Vanilla tag representing all explosion damage types.static final Tag<DamageType>
DamageTypeTags.IS_FALL
Vanilla tag representing all fall damage types.static final Tag<DamageType>
DamageTypeTags.IS_FIRE
Vanilla tag representing all fire damage types.static final Tag<DamageType>
DamageTypeTags.IS_FREEZING
Vanilla tag representing all freezing damage types.static final Tag<DamageType>
DamageTypeTags.IS_LIGHTNING
Vanilla tag representing all lightning damage types.static final Tag<DamageType>
DamageTypeTags.IS_MACE_SMASH
Vanilla tag representing damage types which originate from mace smashes.static final Tag<DamageType>
DamageTypeTags.IS_PLAYER_ATTACK
Vanilla tag representing damage types which are from player attacks.static final Tag<DamageType>
DamageTypeTags.IS_PROJECTILE
Vanilla tag representing damage types which originate from projectiles.static final Tag<DamageType>
DamageTypeTags.NO_ANGER
Vanilla tag representing damage types which do not cause entities to anger.static final Tag<DamageType>
DamageTypeTags.NO_IMPACT
Vanilla tag representing damage types which do not cause an impact.static final Tag<DamageType>
DamageTypeTags.NO_KNOCKBACK
Vanilla tag representing damage types which do not cause knockback.static final Tag<DamageType>
DamageTypeTags.PANIC_CAUSES
Vanilla tag representing damage types which cause entities to panic.static final Tag<DamageType>
DamageTypeTags.PANIC_ENVIRONMENTAL_CAUSES
Vanilla tag representing environmental damage types which cause entities to panic.static final Tag<DamageType>
DamageTypeTags.WITCH_RESISTANT_TO
Vanilla tag representing damage types which witches are resistant to.static final Tag<DamageType>
DamageTypeTags.WITHER_IMMUNE_TO
Vanilla tag representing damage types which withers are immune to.