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 was made redundant by the removal of the screen shifting due to potion indicators in the inventory screen (along with being moved to the right hand side). This has been changed to have no effect, and will be removed in 1.19. See ScreenEvent.PotionSizeEvent as a possible alternative instead.
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.
  • Constructor Details

    • PotionShiftEvent

      public PotionShiftEvent(Screen screen)
      Deprecated, for removal: This API element is subject to removal in a future version.