Class GuiScreenEvent.PotionShiftEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.GuiScreenEvent
net.minecraftforge.client.event.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 Details

    • PotionShiftEvent

      public PotionShiftEvent(Screen gui)