Skip to content

Commit

Permalink
refactor(command): add @ApiStatus.Internal annotation for internal me…
Browse files Browse the repository at this point in the history
…thods
  • Loading branch information
smartcmd committed May 10, 2024
1 parent a660688 commit 25024e1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.allaymc.api.entity.interfaces.EntityPlayer;
import org.allaymc.api.registry.MappedRegistry;
import org.cloudburstmc.protocol.bedrock.packet.AvailableCommandsPacket;
import org.jetbrains.annotations.ApiStatus;

import java.util.Map;

Expand All @@ -12,8 +13,11 @@
* @author daoge_cmd
*/
public interface CommandRegistry extends MappedRegistry<String, Command, Map<String, Command>> {

@ApiStatus.Internal
AvailableCommandsPacket encodeAvailableCommandsPacketFor(EntityPlayer player);

@ApiStatus.Internal
void registerDefaultCommands();

void register(Command command);
Expand Down

0 comments on commit 25024e1

Please sign in to comment.