接口的使用
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 DamageTypeDamageType.ARROWstatic final DamageTypeDamageType.BAD_RESPAWN_POINTstatic final DamageTypeDamageType.CACTUSstatic final DamageTypeDamageType.CAMPFIREstatic final DamageTypeDamageType.CRAMMINGstatic final DamageTypeDamageType.DRAGON_BREATHstatic final DamageTypeDamageType.DROWNstatic final DamageTypeDamageType.DRY_OUTstatic final DamageTypeDamageType.ENDER_PEARLstatic final DamageTypeDamageType.EXPLOSIONstatic final DamageTypeDamageType.FALLstatic final DamageTypeDamageType.FALLING_ANVILstatic final DamageTypeDamageType.FALLING_BLOCKstatic final DamageTypeDamageType.FALLING_STALACTITEstatic final DamageTypeDamageType.FIREBALLstatic final DamageTypeDamageType.FIREWORKSstatic final DamageTypeDamageType.FLY_INTO_WALLstatic final DamageTypeDamageType.FREEZEstatic final DamageTypeDamageType.GENERICstatic final DamageTypeDamageType.GENERIC_KILLstatic final DamageTypeDamageType.HOT_FLOORstatic final DamageTypeDamageType.IN_FIREstatic final DamageTypeDamageType.IN_WALLstatic final DamageTypeDamageType.INDIRECT_MAGICstatic final DamageTypeDamageType.LAVAstatic final DamageTypeDamageType.LIGHTNING_BOLTstatic final DamageTypeDamageType.MACE_SMASHstatic final DamageTypeDamageType.MAGICstatic final DamageTypeDamageType.MOB_ATTACKstatic final DamageTypeDamageType.MOB_ATTACK_NO_AGGROstatic final DamageTypeDamageType.MOB_PROJECTILEstatic final DamageTypeDamageType.ON_FIREstatic final DamageTypeDamageType.OUT_OF_WORLDstatic final DamageTypeDamageType.OUTSIDE_BORDERstatic final DamageTypeDamageType.PLAYER_ATTACKstatic final DamageTypeDamageType.PLAYER_EXPLOSIONstatic final DamageTypeDamageType.SONIC_BOOMstatic final DamageTypeDamageType.SPITstatic final DamageTypeDamageType.STALAGMITEstatic final DamageTypeDamageType.STARVEstatic final DamageTypeDamageType.STINGstatic final DamageTypeDamageType.SWEET_BERRY_BUSHstatic final DamageTypeDamageType.THORNSstatic final DamageTypeDamageType.THROWNstatic final DamageTypeDamageType.TRIDENTstatic final DamageTypeDamageType.UNATTRIBUTED_FIREBALLstatic final DamageTypeDamageType.WIND_CHARGEstatic final DamageTypeDamageType.WITHERstatic final DamageTypeDamageType.WITHER_SKULL返回DamageType的org.bukkit.damage中的方法参数类型为DamageType的org.bukkit.damage中的方法修饰符和类型方法说明static @NotNull DamageSource.BuilderDamageSource.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中的方法参数修饰符和类型方法说明voidItemMeta.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.voidBlocksAttacksComponent.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.voidBlocksAttacksComponent.setBypassedBy(@Nullable Tag<DamageType> tag) Sets the type of damage that will bypass blocking by this item.voidBlocksAttacksComponent.DamageReduction.setTypes(@Nullable Collection<DamageType> types) Sets the types to which this reduction applies.voidBlocksAttacksComponent.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_DRAGONSVanilla tag representing damage types which always hurt enderdragons.static final Tag<DamageType>DamageTypeTags.ALWAYS_KILLS_ARMOR_STANDSVanilla tag representing damage types which always kill armor stands.static final Tag<DamageType>DamageTypeTags.ALWAYS_MOST_SIGNIFICANT_FALLVanilla tag representing damage types which cause maximum fall damage.static final Tag<DamageType>DamageTypeTags.ALWAYS_TRIGGERS_SILVERFISHVanilla tag representing damage types which always trigger silverfish.static final Tag<DamageType>DamageTypeTags.AVOIDS_GUARDIAN_THORNSVanilla tag representing damage types which avoid guardian thorn damage.static final Tag<DamageType>DamageTypeTags.BURN_FROM_STEPPINGVanilla tag representing damage types which originate from hot blocks.static final Tag<DamageType>DamageTypeTags.BURNS_ARMOR_STANDSVanilla tag representing damage types which burn armor stands.static final Tag<DamageType>DamageTypeTags.BYPASSES_ARMORVanilla tag representing damage types which bypass armor.static final @Nullable Tag<DamageType>DamageTypeTags.BYPASSES_COOLDOWNVanilla tag representing damage types which bypass cooldowns.static final Tag<DamageType>DamageTypeTags.BYPASSES_EFFECTSVanilla tag representing damage types which bypass effects.static final Tag<DamageType>DamageTypeTags.BYPASSES_ENCHANTMENTSVanilla tag representing damage types which bypass enchantments.static final Tag<DamageType>DamageTypeTags.BYPASSES_INVULNERABILITYVanilla tag representing damage types which bypass invulnerability.static final Tag<DamageType>DamageTypeTags.BYPASSES_RESISTANCEVanilla tag representing damage types which bypass resistance.static final Tag<DamageType>DamageTypeTags.BYPASSES_SHIELDVanilla tag representing damage types which bypass shields.static final Tag<DamageType>DamageTypeTags.BYPASSES_WOLF_ARMORVanilla tag representing damage types which bypass wolf armor.static final Tag<DamageType>DamageTypeTags.CAN_BREAK_ARMOR_STANDVanilla tag representing damage types which can break armor stands.static final Tag<DamageType>DamageTypeTags.DAMAGES_HELMETVanilla tag representing damage types which damage helmets.static final Tag<DamageType>DamageTypeTags.IGNITES_ARMOR_STANDSVanilla tag representing damage types which ignite armor stands.static final Tag<DamageType>DamageTypeTags.IS_DROWNINGVanilla tag representing all drowning damage types.static final Tag<DamageType>DamageTypeTags.IS_EXPLOSIONVanilla tag representing all explosion damage types.static final Tag<DamageType>DamageTypeTags.IS_FALLVanilla tag representing all fall damage types.static final Tag<DamageType>DamageTypeTags.IS_FIREVanilla tag representing all fire damage types.static final Tag<DamageType>DamageTypeTags.IS_FREEZINGVanilla tag representing all freezing damage types.static final Tag<DamageType>DamageTypeTags.IS_LIGHTNINGVanilla tag representing all lightning damage types.static final Tag<DamageType>DamageTypeTags.IS_MACE_SMASHVanilla tag representing damage types which originate from mace smashes.static final Tag<DamageType>DamageTypeTags.IS_PLAYER_ATTACKVanilla tag representing damage types which are from player attacks.static final Tag<DamageType>DamageTypeTags.IS_PROJECTILEVanilla tag representing damage types which originate from projectiles.static final Tag<DamageType>DamageTypeTags.NO_ANGERVanilla tag representing damage types which do not cause entities to anger.static final Tag<DamageType>DamageTypeTags.NO_IMPACTVanilla tag representing damage types which do not cause an impact.static final Tag<DamageType>DamageTypeTags.NO_KNOCKBACKVanilla tag representing damage types which do not cause knockback.static final Tag<DamageType>DamageTypeTags.PANIC_CAUSESVanilla tag representing damage types which cause entities to panic.static final Tag<DamageType>DamageTypeTags.PANIC_ENVIRONMENTAL_CAUSESVanilla tag representing environmental damage types which cause entities to panic.static final Tag<DamageType>DamageTypeTags.WITCH_RESISTANT_TOVanilla tag representing damage types which witches are resistant to.static final Tag<DamageType>DamageTypeTags.WITHER_IMMUNE_TOVanilla tag representing damage types which withers are immune to.