Class LivingEvent.LivingVisibilityEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.LivingEvent
net.minecraftforge.event.entity.living.LivingEvent.LivingVisibilityEvent
- Enclosing class:
- LivingEvent
-
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
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLivingVisibilityEvent
(LivingEntity livingEntity, Entity lookingEntity, double originalMultiplier) -
Method Summary
Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntityLiving
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
visibilityModifier
private double visibilityModifier -
lookingEntity
-
-
Constructor Details
-
LivingVisibilityEvent
public LivingVisibilityEvent(LivingEntity livingEntity, @Nullable Entity lookingEntity, double originalMultiplier)
-
-
Method Details
-
modifyVisibility
public void modifyVisibility(double mod) - Parameters:
mod
- Is multiplied with the current modifier
-
getVisibilityModifier
public double getVisibilityModifier()- Returns:
- The current modifier
-
getLookingEntity
- Returns:
- The entity trying to see this LivingEntity, if available
-