Java 类net.minecraftforge.client.event.GuiScreenEvent.PotionShiftEvent 实例源码

项目:VisibleArmorSlots    文件:EventDelegatorGuiOverlay.java   
@SubscribeEvent
@SideOnly(Side.CLIENT)
public void onPotionShiftEvent(PotionShiftEvent event)
{
    if (!this.shouldDisplayGuiOverlay(event.getGui())) { return; }
    this.getGuiOverlay().setPotionShiftState(true);
}
项目:NotEnoughItems    文件:NEIClientEventHandler.java   
@SubscribeEvent
public void potionShiftEvent(PotionShiftEvent event) {
    event.setCanceled(true);
}