Class ScreenEvent.PotionSizeEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ScreenEvent
net.minecraftforge.client.event.ScreenEvent.PotionSizeEvent
Enclosing class:
ScreenEvent

public static class ScreenEvent.PotionSizeEvent extends ScreenEvent
Fired to determine whether to render the potion indicators in the inventory screen in compact or classic mode.

This event is not cancelable and has a result.

  • Event.Result.ALLOW - forcibly renders the potion indicators in compact mode.
  • Event.Result.DEFAULT - defaults to vanilla behavior to using compact mode if the the screen width is too small for classic rendering of potion indicators.
  • Event.Result.DENY - forcibly renders the potion indicators in classic mode.

This event is fired on the main Forge event bus, only on the logical client.