Skip to content

Commit

Permalink
Mark team selection lobby events as experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
haykam821 authored and Patbox committed Dec 5, 2024
1 parent a6b474d commit 9a9b11e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/xyz/nucleoid/plasmid/api/event/GameEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import net.fabricmc.fabric.api.event.EventFactory;
import net.minecraft.registry.entry.RegistryEntry;
import net.minecraft.server.network.ServerPlayerEntity;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Nullable;
import xyz.nucleoid.plasmid.api.game.GameActivity;
import xyz.nucleoid.plasmid.api.game.GameCloseReason;
Expand Down Expand Up @@ -74,6 +75,7 @@ private GameEvents() {
}
});

@ApiStatus.Experimental
public static final Event<TeamSelectionLobbyFinalize> TEAM_SELECTION_LOBBY_FINALIZE = EventFactory.createArrayBacked(TeamSelectionLobbyFinalize.class, listeners -> (gameSpace, allocator, players) -> {
for (var listener : listeners) {
listener.onFinalizeTeamSelection(gameSpace, allocator, players);
Expand Down Expand Up @@ -153,6 +155,7 @@ public interface PlayerLeft {
void onPlayerLeft(GameSpace gameSpace, ServerPlayerEntity player);
}

@ApiStatus.Experimental
public interface TeamSelectionLobbyFinalize {
/**
* @param gameSpace The {@link GameSpace} the game is running in.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package xyz.nucleoid.plasmid.api.game.event;

import net.minecraft.server.network.ServerPlayerEntity;
import org.jetbrains.annotations.ApiStatus;
import xyz.nucleoid.plasmid.api.game.GameActivity;
import xyz.nucleoid.plasmid.api.game.GameSpace;
import xyz.nucleoid.plasmid.api.game.common.team.GameTeamKey;
Expand All @@ -12,6 +13,7 @@
/**
* Events relating to a {@link TeamSelectionLobby} applied to a {@link GameActivity} within a {@link GameSpace}.
*/
@ApiStatus.Experimental
public final class TeamSelectionLobbyEvents {
/**
* Called when a {@link TeamAllocator} has been populated to allocate selected teams for a game.
Expand Down

0 comments on commit 9a9b11e

Please sign in to comment.