Uses of Package
net.neoforged.neoforge.event.entity.living
Packages that use net.neoforged.neoforge.event.entity.living
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Classes in net.neoforged.neoforge.event.entity.living used by net.neoforged.neoforge.attachmentClassDescriptionLivingConversionEvent.Post is triggered when an entity is replacing itself with another entity.
-
Classes in net.neoforged.neoforge.event.entity.living used by net.neoforged.neoforge.client.eventClassDescriptionLivingEvent is fired whenever an event involving a
LivingEntity
occurs.
If a method utilizes thisEvent
as its parameter, the method will receive every child event of this class.
All children of this event are fired on theNeoForge.EVENT_BUS
. -
Classes in net.neoforged.neoforge.event.entity.living used by net.neoforged.neoforge.commonClassDescriptionThis event allows you to change the target an entity has.A living target type indicates what kind of system caused a change of targets.LivingFallEvent is fired when an Entity is set to be falling.
This event is fired whenever an Entity is set to fall inLivingEntity.causeFallDamage(double, float, DamageSource)
.
This event is fired via theCommonHooks.onLivingFall(LivingEntity, double, float)
.
LivingFallEvent.distance
contains the distance the Entity is to fall.LivingKnockBackEvent is fired when a living entity is about to be knocked back.LivingShieldBlockEvent is fired when an entity is hurt and vanilla checks if the entity is attempting to block with a shield.
Cancelling this event will have the same impact as if the shield was not eligible to block.
The damage blocked cannot be set lower than zero or greater than the original value.This event is fired when a living entity is about to swap the items in their main and offhand. -
Classes in net.neoforged.neoforge.event.entity.living used by net.neoforged.neoforge.common.damagesourceClassDescriptionLivingShieldBlockEvent is fired when an entity is hurt and vanilla checks if the entity is attempting to block with a shield.
Cancelling this event will have the same impact as if the shield was not eligible to block.
The damage blocked cannot be set lower than zero or greater than the original value. -
Classes in net.neoforged.neoforge.event.entity.living used by net.neoforged.neoforge.eventClassDescriptionThis event is fired before
Mob.finalizeSpawn(net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.DifficultyInstance, net.minecraft.world.entity.EntitySpawnReason, net.minecraft.world.entity.SpawnGroupData)
is called.
This allows mods to control mob initialization.
In vanilla code, this event is injected by a transformer and not via patch, so calls cannot be traced via call hierarchy (it is not source-visible).LivingEvent is fired whenever an event involving aLivingEntity
occurs.
If a method utilizes thisEvent
as its parameter, the method will receive every child event of this class.
All children of this event are fired on theNeoForge.EVENT_BUS
.This event is fired whenever a mob is removed and splits into multiple children. -
Classes in net.neoforged.neoforge.event.entity.living used by net.neoforged.neoforge.event.brewingClassDescriptionLivingEvent is fired whenever an event involving a
LivingEntity
occurs.
If a method utilizes thisEvent
as its parameter, the method will receive every child event of this class.
All children of this event are fired on theNeoForge.EVENT_BUS
. -
Classes in net.neoforged.neoforge.event.entity.living used by net.neoforged.neoforge.event.entity.livingClassDescriptionA living target type indicates what kind of system caused a change of targets.This enum contains two default living target types.LivingDamageEvent captures an entity's loss of health.LivingEvent is fired whenever an event involving a
LivingEntity
occurs.
If a method utilizes thisEvent
as its parameter, the method will receive every child event of this class.
All children of this event are fired on theNeoForge.EVENT_BUS
.This event is fired when an interaction between aLivingEntity
andMobEffectInstance
happens.This class holds all events relating to the entire flow of mob spawns.
Currently, the events have the following flow for any given mob spawn: -
Classes in net.neoforged.neoforge.event.entity.living used by net.neoforged.neoforge.event.entity.playerClassDescriptionLivingEvent is fired whenever an event involving a
LivingEntity
occurs.
If a method utilizes thisEvent
as its parameter, the method will receive every child event of this class.
All children of this event are fired on theNeoForge.EVENT_BUS
. -
Classes in net.neoforged.neoforge.event.entity.living used by net.neoforged.neoforge.event.tickClassDescriptionLivingEvent is fired whenever an event involving a
LivingEntity
occurs.
If a method utilizes thisEvent
as its parameter, the method will receive every child event of this class.
All children of this event are fired on theNeoForge.EVENT_BUS
. -
Classes in net.neoforged.neoforge.event.entity.living used by net.neoforged.neoforge.oldtestClassDescriptionThis event is fired when a new
MobEffectInstance
is added to an entity.This event is fired to check if aMobEffectInstance
can be applied to an entity.This event is fired when aMobEffectInstance
expires on an entity.This Event is fired when aMobEffect
is about to get removed from an Entity.