Class GuiScreenEvent.PotionShiftEvent

  • Enclosing class:
    GuiScreenEvent

    public static class GuiScreenEvent.PotionShiftEvent
    extends GuiScreenEvent
    This event fires in InventoryEffectRenderer#updateActivePotionEffects() when potion effects are active and the gui wants to move over. Cancel this event to prevent the Gui from being moved.
    • Constructor Detail

      • PotionShiftEvent

        public PotionShiftEvent​(Screen gui)