Uses of Record Class
net.minecraft.entity.damage.DamageType
Packages that use DamageType
Package
Description
The basic AI system for Minecraft living entities.
-
Uses of DamageType in net.minecraft.component.type
Fields in net.minecraft.component.type with type parameters of type DamageTypeModifier and TypeFieldDescriptionprivate final TagKey<DamageType> DamageResistantComponent.typesThe field for thetypesrecord component.Methods in net.minecraft.component.type that return types with arguments of type DamageTypeModifier and TypeMethodDescriptionDamageResistantComponent.types()Returns the value of thetypesrecord component.Constructor parameters in net.minecraft.component.type with type arguments of type DamageType -
Uses of DamageType in net.minecraft.enchantment.effect.entity
Fields in net.minecraft.enchantment.effect.entity with type parameters of type DamageTypeModifier and TypeFieldDescriptionprivate final RegistryEntry<DamageType> DamageEntityEnchantmentEffect.damageTypeThe field for thedamageTyperecord component.private final Optional<RegistryEntry<DamageType>> ExplodeEnchantmentEffect.damageTypeThe field for thedamageTyperecord component.Methods in net.minecraft.enchantment.effect.entity that return types with arguments of type DamageTypeModifier and TypeMethodDescriptionDamageEntityEnchantmentEffect.damageType()Returns the value of thedamageTyperecord component.ExplodeEnchantmentEffect.damageType()Returns the value of thedamageTyperecord component.Constructor parameters in net.minecraft.enchantment.effect.entity with type arguments of type DamageTypeModifierConstructorDescriptionDamageEntityEnchantmentEffect(EnchantmentLevelBasedValue enchantmentLevelBasedValue, EnchantmentLevelBasedValue enchantmentLevelBasedValue2, RegistryEntry<DamageType> registryEntry) ExplodeEnchantmentEffect(boolean bool, Optional<RegistryEntry<DamageType>> optional, Optional<EnchantmentLevelBasedValue> optional2, Optional<RegistryEntryList<Block>> optional3, Vec3d vec3d, EnchantmentLevelBasedValue enchantmentLevelBasedValue, boolean bool2, World.ExplosionSourceType explosionSourceType, ParticleEffect particleEffect, ParticleEffect particleEffect2, RegistryEntry<SoundEvent> registryEntry) -
Uses of DamageType in net.minecraft.entity.ai.brain.task
Fields in net.minecraft.entity.ai.brain.task with type parameters of type DamageTypeModifier and TypeFieldDescriptionprivate final Function<PathAwareEntity, TagKey<DamageType>> FleeTask.entityToDangerousDamageTypesConstructor parameters in net.minecraft.entity.ai.brain.task with type arguments of type DamageTypeModifierConstructorDescriptionFleeTask(float speed, Function<PathAwareEntity, TagKey<DamageType>> entityToDangerousDamageTypes) -
Uses of DamageType in net.minecraft.entity.ai.goal
Fields in net.minecraft.entity.ai.goal with type parameters of type DamageTypeModifier and TypeFieldDescriptionprivate final Function<PathAwareEntity, TagKey<DamageType>> EscapeDangerGoal.entityToDangerousDamageTypesConstructor parameters in net.minecraft.entity.ai.goal with type arguments of type DamageTypeModifierConstructorDescriptionEscapeDangerGoal(PathAwareEntity mob, double speed, Function<PathAwareEntity, TagKey<DamageType>> entityToDangerousDamageTypes) EscapeDangerGoal(PathAwareEntity mob, double speed, TagKey<DamageType> dangerousDamageTypes) -
Uses of DamageType in net.minecraft.entity.damage
Fields in net.minecraft.entity.damage with type parameters of type DamageTypeModifier and TypeFieldDescriptionstatic final RegistryKey<DamageType> DamageTypes.ARROWstatic final RegistryKey<DamageType> DamageTypes.BAD_RESPAWN_POINTstatic final RegistryKey<DamageType> DamageTypes.CACTUSstatic final RegistryKey<DamageType> DamageTypes.CAMPFIREstatic final com.mojang.serialization.Codec<DamageType> DamageType.CODECstatic final RegistryKey<DamageType> DamageTypes.CRAMMINGstatic final RegistryKey<DamageType> DamageTypes.DRAGON_BREATHstatic final RegistryKey<DamageType> DamageTypes.DROWNstatic final RegistryKey<DamageType> DamageTypes.DRY_OUTstatic final RegistryKey<DamageType> DamageTypes.ENDER_PEARLstatic final com.mojang.serialization.Codec<RegistryEntry<DamageType>> DamageType.ENTRY_CODECstatic final PacketCodec<RegistryByteBuf, RegistryEntry<DamageType>> DamageType.ENTRY_PACKET_CODECstatic final RegistryKey<DamageType> DamageTypes.EXPLOSIONstatic final RegistryKey<DamageType> DamageTypes.FALLstatic final RegistryKey<DamageType> DamageTypes.FALLING_ANVILstatic final RegistryKey<DamageType> DamageTypes.FALLING_BLOCKstatic final RegistryKey<DamageType> DamageTypes.FALLING_STALACTITEstatic final RegistryKey<DamageType> DamageTypes.FIREBALLstatic final RegistryKey<DamageType> DamageTypes.FIREWORKSstatic final RegistryKey<DamageType> DamageTypes.FLY_INTO_WALLstatic final RegistryKey<DamageType> DamageTypes.FREEZEstatic final RegistryKey<DamageType> DamageTypes.GENERICstatic final RegistryKey<DamageType> DamageTypes.GENERIC_KILLstatic final RegistryKey<DamageType> DamageTypes.HOT_FLOORstatic final RegistryKey<DamageType> DamageTypes.IN_FIREstatic final RegistryKey<DamageType> DamageTypes.IN_WALLstatic final RegistryKey<DamageType> DamageTypes.INDIRECT_MAGICstatic final RegistryKey<DamageType> DamageTypes.LAVAstatic final RegistryKey<DamageType> DamageTypes.LIGHTNING_BOLTstatic final RegistryKey<DamageType> DamageTypes.MACE_SMASHstatic final RegistryKey<DamageType> DamageTypes.MAGICstatic final RegistryKey<DamageType> DamageTypes.MOB_ATTACKstatic final RegistryKey<DamageType> DamageTypes.MOB_ATTACK_NO_AGGROstatic final RegistryKey<DamageType> DamageTypes.MOB_PROJECTILEstatic final RegistryKey<DamageType> DamageTypes.ON_FIREstatic final RegistryKey<DamageType> DamageTypes.OUT_OF_WORLDstatic final RegistryKey<DamageType> DamageTypes.OUTSIDE_BORDERstatic final RegistryKey<DamageType> DamageTypes.PLAYER_ATTACKstatic final RegistryKey<DamageType> DamageTypes.PLAYER_EXPLOSIONprivate final Registry<DamageType> DamageSources.registrystatic final RegistryKey<DamageType> DamageTypes.SONIC_BOOMstatic final RegistryKey<DamageType> DamageTypes.SPITstatic final RegistryKey<DamageType> DamageTypes.STALAGMITEstatic final RegistryKey<DamageType> DamageTypes.STARVEstatic final RegistryKey<DamageType> DamageTypes.STINGstatic final RegistryKey<DamageType> DamageTypes.SWEET_BERRY_BUSHstatic final RegistryKey<DamageType> DamageTypes.THORNSstatic final RegistryKey<DamageType> DamageTypes.THROWNstatic final RegistryKey<DamageType> DamageTypes.TRIDENTprivate final RegistryEntry<DamageType> DamageSource.typestatic final RegistryKey<DamageType> DamageTypes.UNATTRIBUTED_FIREBALLstatic final RegistryKey<DamageType> DamageTypes.WIND_CHARGEstatic final RegistryKey<DamageType> DamageTypes.WITHERstatic final RegistryKey<DamageType> DamageTypes.WITHER_SKULLMethods in net.minecraft.entity.damage that return DamageTypeMethods in net.minecraft.entity.damage that return types with arguments of type DamageTypeMethod parameters in net.minecraft.entity.damage with type arguments of type DamageTypeModifier and TypeMethodDescriptionstatic voidDamageTypes.bootstrap(Registerable<DamageType> damageTypeRegisterable) private DamageSourceDamageSources.create(RegistryKey<DamageType> key) private DamageSourceDamageSources.create(RegistryKey<DamageType> key, @Nullable Entity attacker) private DamageSourceDamageSources.create(RegistryKey<DamageType> key, @Nullable Entity source, @Nullable Entity attacker) booleanDamageSource.isIn(TagKey<DamageType> tag) booleanDamageSource.isOf(RegistryKey<DamageType> typeKey) Constructor parameters in net.minecraft.entity.damage with type arguments of type DamageTypeModifierConstructorDescriptionDamageSource(RegistryEntry<DamageType> type) DamageSource(RegistryEntry<DamageType> type, @Nullable Entity attacker) DamageSource(RegistryEntry<DamageType> type, @Nullable Entity source, @Nullable Entity attacker) privateDamageSource(RegistryEntry<DamageType> type, @Nullable Entity source, @Nullable Entity attacker, @Nullable Vec3d position) DamageSource(RegistryEntry<DamageType> type, Vec3d position) -
Uses of DamageType in net.minecraft.entity.passive
Constructor parameters in net.minecraft.entity.passive with type arguments of type DamageTypeModifierConstructorDescriptionTameableEscapeDangerGoal(double speed, TagKey<DamageType> dangerousDamageTypes) -
Uses of DamageType in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play with type parameters of type DamageTypeModifier and TypeFieldDescriptionprivate final RegistryEntry<DamageType> EntityDamageS2CPacket.sourceTypeThe field for thesourceTyperecord component.Methods in net.minecraft.network.packet.s2c.play that return types with arguments of type DamageTypeModifier and TypeMethodDescriptionEntityDamageS2CPacket.sourceType()Returns the value of thesourceTyperecord component.Constructor parameters in net.minecraft.network.packet.s2c.play with type arguments of type DamageTypeModifierConstructorDescriptionEntityDamageS2CPacket(int int2, RegistryEntry<DamageType> registryEntry, int int3, int int4, Optional<Vec3d> optional) -
Uses of DamageType in net.minecraft.predicate.entity
Fields in net.minecraft.predicate.entity with type parameters of type DamageTypeModifier and TypeFieldDescriptionprivate final ImmutableList.Builder<TagPredicate<DamageType>> DamageSourcePredicate.Builder.tagPredicatesprivate final List<TagPredicate<DamageType>> DamageSourcePredicate.tagsThe field for thetagsrecord component.Methods in net.minecraft.predicate.entity that return types with arguments of type DamageTypeModifier and TypeMethodDescriptionDamageSourcePredicate.tags()Returns the value of thetagsrecord component.Method parameters in net.minecraft.predicate.entity with type arguments of type DamageTypeModifier and TypeMethodDescriptionDamageSourcePredicate.Builder.tag(TagPredicate<DamageType> tagPredicate) Constructor parameters in net.minecraft.predicate.entity with type arguments of type DamageTypeModifierConstructorDescriptionDamageSourcePredicate(List<TagPredicate<DamageType>> tagPredicates, Optional<EntityPredicate> optional, Optional<EntityPredicate> optional2, Optional<Boolean> optional3) -
Uses of DamageType in net.minecraft.registry
Fields in net.minecraft.registry with type parameters of type DamageTypeModifier and TypeFieldDescriptionstatic final RegistryKey<Registry<DamageType>> RegistryKeys.DAMAGE_TYPE -
Uses of DamageType in net.minecraft.registry.tag
Fields in net.minecraft.registry.tag with type parameters of type DamageTypeModifier and TypeFieldDescriptionstatic final TagKey<DamageType> DamageTypeTags.ALWAYS_HURTS_ENDER_DRAGONSstatic final TagKey<DamageType> DamageTypeTags.ALWAYS_KILLS_ARMOR_STANDSstatic final TagKey<DamageType> DamageTypeTags.ALWAYS_MOST_SIGNIFICANT_FALLstatic final TagKey<DamageType> DamageTypeTags.ALWAYS_TRIGGERS_SILVERFISHstatic final TagKey<DamageType> DamageTypeTags.AVOIDS_GUARDIAN_THORNSstatic final TagKey<DamageType> DamageTypeTags.BURN_FROM_STEPPINGstatic final TagKey<DamageType> DamageTypeTags.BURNS_ARMOR_STANDSstatic final TagKey<DamageType> DamageTypeTags.BYPASSES_ARMORstatic final TagKey<DamageType> DamageTypeTags.BYPASSES_COOLDOWNstatic final TagKey<DamageType> DamageTypeTags.BYPASSES_EFFECTSstatic final TagKey<DamageType> DamageTypeTags.BYPASSES_ENCHANTMENTSstatic final TagKey<DamageType> DamageTypeTags.BYPASSES_INVULNERABILITYstatic final TagKey<DamageType> DamageTypeTags.BYPASSES_RESISTANCEstatic final TagKey<DamageType> DamageTypeTags.BYPASSES_SHIELDstatic final TagKey<DamageType> DamageTypeTags.BYPASSES_WOLF_ARMORstatic final TagKey<DamageType> DamageTypeTags.CAN_BREAK_ARMOR_STANDstatic final TagKey<DamageType> DamageTypeTags.DAMAGES_HELMETstatic final TagKey<DamageType> DamageTypeTags.IGNITES_ARMOR_STANDSstatic final TagKey<DamageType> DamageTypeTags.IS_DROWNINGstatic final TagKey<DamageType> DamageTypeTags.IS_EXPLOSIONstatic final TagKey<DamageType> DamageTypeTags.IS_FALLstatic final TagKey<DamageType> DamageTypeTags.IS_FIREstatic final TagKey<DamageType> DamageTypeTags.IS_FREEZINGstatic final TagKey<DamageType> DamageTypeTags.IS_LIGHTNINGstatic final TagKey<DamageType> DamageTypeTags.IS_PLAYER_ATTACKstatic final TagKey<DamageType> DamageTypeTags.IS_PROJECTILEstatic final TagKey<DamageType> DamageTypeTags.MACE_SMASHstatic final TagKey<DamageType> DamageTypeTags.NO_ANGERstatic final TagKey<DamageType> DamageTypeTags.NO_IMPACTstatic final TagKey<DamageType> DamageTypeTags.NO_KNOCKBACKstatic final TagKey<DamageType> DamageTypeTags.PANIC_CAUSESstatic final TagKey<DamageType> DamageTypeTags.PANIC_ENVIRONMENTAL_CAUSESstatic final TagKey<DamageType> DamageTypeTags.WITCH_RESISTANT_TOstatic final TagKey<DamageType> DamageTypeTags.WITHER_IMMUNE_TOMethods in net.minecraft.registry.tag that return types with arguments of type DamageType