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 SummaryNested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEventLivingEvent.LivingJumpEvent, LivingEvent.LivingTickEvent, LivingEvent.LivingVisibilityEventNested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEventEntityEvent.EnteringSection, EntityEvent.EntityConstructingNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionLivingVisibilityEvent(LivingEntity livingEntity, @Nullable Entity lookingEntity, double originalMultiplier) 
- 
Method SummaryMethods inherited from class net.minecraftforge.event.entity.living.LivingEventgetEntityMethods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Field Details- 
visibilityModifierprivate double visibilityModifier
- 
lookingEntity
 
- 
- 
Constructor Details- 
LivingVisibilityEventpublic LivingVisibilityEvent(LivingEntity livingEntity, @Nullable @Nullable Entity lookingEntity, double originalMultiplier) 
 
- 
- 
Method Details- 
modifyVisibilitypublic void modifyVisibility(double mod) - Parameters:
- mod- Is multiplied with the current modifier
 
- 
getVisibilityModifierpublic double getVisibilityModifier()- Returns:
- The current modifier
 
- 
getLookingEntity- Returns:
- The entity trying to see this LivingEntity, if available
 
 
-