Java Code Examples for net.minecraftforge.fml.common.gameevent.PlayerEvent#PlayerChangedDimensionEvent
The following examples show how to use
net.minecraftforge.fml.common.gameevent.PlayerEvent#PlayerChangedDimensionEvent .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ModCapabilities.java From Wizardry with GNU Lesser General Public License v3.0 | 5 votes |
@SubscribeEvent public static void onDimChange(PlayerEvent.PlayerChangedDimensionEvent event) { if (event.player.world.isRemote) return; IManaCapability manaCap = ManaCapabilityProvider.getCap(event.player); if (manaCap != null) manaCap.dataChanged(event.player); IMiscCapability miscCap = MiscCapabilityProvider.getCap(event.player); if (miscCap != null) miscCap.dataChanged(event.player); }
Example 2
Source File: SyncEventHandler.java From GokiStats with MIT License | 4 votes |
@SubscribeEvent public static void playerChangedWorld(PlayerEvent.PlayerChangedDimensionEvent event) { syncPlayerData(event.player); }
Example 3
Source File: RocketEventHandler.java From AdvancedRocketry with MIT License | 4 votes |
@SubscribeEvent public void playerTeleportEvent(PlayerEvent.PlayerChangedDimensionEvent event) { //Fix O2, space elevator popup displaying after teleporting lastDisplayTime = -1000; }