Package net.minecraftforge.client.event
Class ScreenEvent.PotionShiftEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ScreenEvent
net.minecraftforge.client.event.ScreenEvent.PotionShiftEvent
- Enclosing class:
- ScreenEvent
@Deprecated(forRemoval=true,
since="1.18.1")
public static class ScreenEvent.PotionShiftEvent
extends ScreenEvent
Deprecated, for removal: This API element is subject to removal in a future version.
This event fires in
EffectRenderingInventoryScreen
in the
checkEffectRendering
method when potion effects are active and the gui wants to move over.
Cancel this event to prevent the Gui from being moved.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.client.event.ScreenEvent
ScreenEvent.BackgroundDrawnEvent, ScreenEvent.DrawScreenEvent, ScreenEvent.InitScreenEvent, ScreenEvent.KeyboardCharTypedEvent, ScreenEvent.KeyboardKeyEvent, ScreenEvent.KeyboardKeyPressedEvent, ScreenEvent.KeyboardKeyReleasedEvent, ScreenEvent.MouseClickedEvent, ScreenEvent.MouseDragEvent, ScreenEvent.MouseInputEvent, ScreenEvent.MouseReleasedEvent, ScreenEvent.MouseScrollEvent, ScreenEvent.PotionShiftEvent, ScreenEvent.PotionSizeEvent
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Constructor Summary
ConstructorDescriptionPotionShiftEvent
(Screen screen) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Methods inherited from class net.minecraftforge.client.event.ScreenEvent
getScreen
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Constructor Details
-
PotionShiftEvent
Deprecated, for removal: This API element is subject to removal in a future version.
-
ScreenEvent.PotionSizeEvent
as a possible alternative instead.