Line 203: |
Line 203: |
| | | |
| | | |
− | An example for a static event listener listening to <code>RenderWorldLastEvent</code> which will only be called on the physical client: | + | An example for a static event listener listening to <code>RenderLevelLastEvent</code> which will only be called on the physical client: |
| | | |
| <syntaxhighlight lang="java"> | | <syntaxhighlight lang="java"> |
Line 209: |
Line 209: |
| public class MyStaticClientOnlyEventHandler { | | public class MyStaticClientOnlyEventHandler { |
| @SubscribeEvent | | @SubscribeEvent |
− | public static void drawLast(RenderWorldLastEvent event) { | + | public static void drawLast(RenderLevelLastEvent event) { |
| System.out.println("Drawing!"); | | System.out.println("Drawing!"); |
| } | | } |
Line 289: |
Line 289: |
| * <code>Event</code> - ''The root event class'' | | * <code>Event</code> - ''The root event class'' |
| ** '''Rendering events''' ('''client-only''') | | ** '''Rendering events''' ('''client-only''') |
− | *** <code>RenderWorldLastEvent</code> - Fired after world rendering to allow mods to add custom renders | + | *** <code>RenderLevelLastEvent</code> - Fired after level rendering to allow mods to add custom renders |
| *** <code>RenderHandEvent</code> - Fired before and after the hand of the player is rendered in the first person POV | | *** <code>RenderHandEvent</code> - Fired before and after the hand of the player is rendered in the first person POV |
| *** <code>RenderLivingEvent</code> - Fired before and after a <code>LivingRenderer</code> is executed | | *** <code>RenderLivingEvent</code> - Fired before and after a <code>LivingRenderer</code> is executed |
Line 298: |
Line 298: |
| *** <code>EntityViewRenderEvent</code> - Superclass for events relating to the player's viewpoint | | *** <code>EntityViewRenderEvent</code> - Superclass for events relating to the player's viewpoint |
| *** <code>RenderGameOverlayEvent</code> - Superclass, fired for each element on the player's HUD or game overlay | | *** <code>RenderGameOverlayEvent</code> - Superclass, fired for each element on the player's HUD or game overlay |
− | *** <code>FOVUpdateEvent</code> - Fired when the FOV of the player is requested (?) | + | *** <code>FOVModifierEvent</code> - Fired when the FOV of the player is requested (?) |
− | ** '''GUI/Screen events''' ('''client-only''') | + | ** '''Screen events''' ('''client-only''') |
− | *** <code>GuiScreenEvent</code> - Superclass for events relating to <code>Screen</code>s | + | *** <code>ScreenEvent</code> - Superclass for events relating to <code>Screen</code>s |
− | *** <code>GuiContainerEvent</code> - Superclsas for events relating to <code>ContainerScreen</code>s | + | *** <code>ScreenContainerEvent</code> - Superclsas for events relating to <code>ContainerScreen</code>s |
− | *** <code>GuiOpenEvent</code> - Fired before a new screen is opened on the game window | + | *** <code>ScreenOpenEvent</code> - Fired before a new screen is opened on the game window |
| ** '''Superclass events''' - ''These events exist to be superclasses of other events'' | | ** '''Superclass events''' - ''These events exist to be superclasses of other events'' |
| *** <code>GenericEvent</code> - ''from EventBus'', superclass of events which have a generic type | | *** <code>GenericEvent</code> - ''from EventBus'', superclass of events which have a generic type |
− | *** <code>BlockEvent</code> - Superclass for events relating to a block within the world | + | *** <code>BlockEvent</code> - Superclass for events relating to a block within the level |
− | *** <code>WorldEvent</code> - Superclass for events relating to the world | + | *** <code>LevelEvent</code> - Superclass for events relating to the level |
| *** <code>InputEvent</code> - ('''client-only''') Superclass for events relating to the player's keyboard and mouse inputs | | *** <code>InputEvent</code> - ('''client-only''') Superclass for events relating to the player's keyboard and mouse inputs |
| *** <code>NetworkEvent</code> - Superclass for events relating to networking | | *** <code>NetworkEvent</code> - Superclass for events relating to networking |
− | *** <code>ExplosionEvent</code> - Fired before an explosion explodes in the world | + | *** <code>ExplosionEvent</code> - Fired before an explosion explodes in the level |
| *** <code>SoundEvent</code> - ('''client-only''') Superclass for events related to sounds | | *** <code>SoundEvent</code> - ('''client-only''') Superclass for events related to sounds |
| *** <code>EntityEvent</code> - Superclass for events relating to entities | | *** <code>EntityEvent</code> - Superclass for events relating to entities |
Line 328: |
Line 328: |
| ** '''Gamemode events''' | | ** '''Gamemode events''' |
| *** <code>DifficultyChangeEvent</code> | | *** <code>DifficultyChangeEvent</code> |
− | *** <code>ClientPlayerChangeGamemodeEvent</code> | + | *** <code>ClientPlayerChangeGameTypeEvent</code> |
| **'''Trade events''' | | **'''Trade events''' |
| *** <code>WandererTradesEvent</code> | | *** <code>WandererTradesEvent</code> |