Package net.minecraftforge.client.event
Class ScreenEvent.RenderInventoryMobEffects
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ScreenEvent
net.minecraftforge.client.event.ScreenEvent.RenderInventoryMobEffects
- Enclosing class:
- ScreenEvent
Fired ahead of rendering any active mob effects in the 
inventory screen.
 Can be used to select the size of the effects display (full or compact) or even hide or replace vanilla's rendering entirely.
 This event can also be used to modify the horizontal position of the stack of effects being rendered.
 This event is cancellable and does not have a result. Cancelling this event will prevent vanilla rendering.
This event is fired on the main Forge event bus, only on the logical client.
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraftforge.client.event.ScreenEventScreenEvent.BackgroundRendered, ScreenEvent.CharacterTyped, ScreenEvent.Closing, ScreenEvent.Init, ScreenEvent.KeyPressed, ScreenEvent.KeyReleased, ScreenEvent.MouseButtonPressed, ScreenEvent.MouseButtonReleased, ScreenEvent.MouseDragged, ScreenEvent.MouseScrolled, ScreenEvent.Opening, ScreenEvent.Render, ScreenEvent.RenderInventoryMobEffectsNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intprivate booleanprivate int
- 
Constructor SummaryConstructorsConstructorDescriptionRenderInventoryMobEffects(Screen screen, int availableSpace, boolean compact, int horizontalOffset) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddHorizontalOffset(int offset) Adds to the horizontal offset of the effect stack.intThe available space to the right of the inventory.intThe distance from the left side of the screen that the effect stack is rendered.booleanWhether the effects should be rendered in compact mode (only icons, no text), or the default full size.voidsetCompact(boolean compact) Sets whether the effects should be rendered in compact mode (only icons, no text), or the default full size.voidsetHorizontalOffset(int offset) Replaces the horizontal offset of the effect stackMethods inherited from class net.minecraftforge.client.event.ScreenEventgetScreenMethods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Field Details- 
availableSpaceprivate final int availableSpace
- 
compactprivate boolean compact
- 
horizontalOffsetprivate int horizontalOffset
 
- 
- 
Constructor Details- 
RenderInventoryMobEffects@Internal public RenderInventoryMobEffects(Screen screen, int availableSpace, boolean compact, int horizontalOffset) 
 
- 
- 
Method Details- 
getAvailableSpacepublic int getAvailableSpace()The available space to the right of the inventory.
- 
isCompactpublic boolean isCompact()Whether the effects should be rendered in compact mode (only icons, no text), or the default full size.
- 
getHorizontalOffsetpublic int getHorizontalOffset()The distance from the left side of the screen that the effect stack is rendered. Positive values shift this more to the right.
- 
setHorizontalOffsetpublic void setHorizontalOffset(int offset) Replaces the horizontal offset of the effect stack
- 
addHorizontalOffsetpublic void addHorizontalOffset(int offset) Adds to the horizontal offset of the effect stack. Negative values are acceptable.
- 
setCompactpublic void setCompact(boolean compact) Sets whether the effects should be rendered in compact mode (only icons, no text), or the default full size.
 
-