Class LivingHealEvent
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.event.entity.EntityEvent
-
- net.minecraftforge.event.entity.living.LivingEvent
-
- net.minecraftforge.event.entity.living.LivingHealEvent
-
public class LivingHealEvent extends LivingEvent
LivingHealEvent is fired when an Entity is set to be healed.
This event is fired whenever an Entity is healed inEntityLivingBase#heal(float)
This event is fired via theForgeEventFactory#onLivingHeal(EntityLivingBase, float)
.
amount
contains the amount of healing done to the Entity that was healed.
This event isCancelable
.
If this event is canceled, the Entity is not healed.
This event does not have a result.Event.HasResult
This event is fired on theMinecraftForge.EVENT_BUS
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent, LivingEvent.LivingVisibilityEvent
-
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.Size
-
-
Field Summary
Fields Modifier and Type Field Description private float
amount
-
Constructor Summary
Constructors Constructor Description LivingHealEvent(LivingEntity entity, float amount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getAmount()
void
setAmount(float amount)
-
Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntityLiving
-
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
-
-
-
-
Constructor Detail
-
LivingHealEvent
public LivingHealEvent(LivingEntity entity, float amount)
-
-