Skip to content

Commit

Permalink
docs(mod.event): event factory "see also" comment
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Jan 26, 2023
1 parent 1b48b56 commit d9855b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ public class AHClientEventFactory {

private static final IEventBus BUS = MinecraftForge.EVENT_BUS;

/**
* @see org.auioc.mcmod.arnicalib.mod.mixin.client.MixinLocalPlayer#setPermissionLevel
*/
public static void onPermissionChanged(LocalPlayer player, int oldLevel, int newLevel) {
BUS.post(new ClientPermissionsChangedEvent(player, oldLevel, newLevel));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ public final class AHServerEventFactory {

// Return true if the event was Cancelable cancelled

/**
* @see org.auioc.mcmod.arnicalib.mod.mixin.server.MixinServerLifecycleHooks#handleServerLogin
*/
public static boolean onServerLogin(final ClientIntentionPacket packet, final Connection manager) {
ServerLoginEvent event = new ServerLoginEvent(packet, manager);
boolean cancelled = BUS.post(event);
Expand Down

0 comments on commit d9855b4

Please sign in to comment.