|
| 1 | +package dev.xpple.simplewaypoints.api; |
| 2 | + |
| 3 | +import com.mojang.brigadier.exceptions.CommandSyntaxException; |
| 4 | +import dev.xpple.simplewaypoints.impl.SimpleWaypointsImpl; |
| 5 | +import java.util.Map; |
| 6 | +import java.util.Set; |
| 7 | +import net.minecraft.client.Minecraft; |
| 8 | +import net.minecraft.core.BlockPos; |
| 9 | +import net.minecraft.resources.ResourceKey; |
| 10 | +import net.minecraft.world.level.Level; |
| 11 | + |
| 12 | +public interface SimpleWaypointsAPI { |
| 13 | + static SimpleWaypointsAPI getInstance() { |
| 14 | + return SimpleWaypointsImpl.INSTANCE; |
| 15 | + } |
| 16 | + |
| 17 | + void registerCommandAlias(String alias); |
| 18 | + |
| 19 | + Set<String> getCommandAliases(); |
| 20 | + |
| 21 | + String getWorldIdentifier(Minecraft minecraft); |
| 22 | + |
| 23 | + Map<String, Map<String, Waypoint>> getAllWaypoints(); |
| 24 | + |
| 25 | + Map<String, Waypoint> getWorldWaypoints(String worldIdentifier); |
| 26 | + |
| 27 | + int addWaypoint(String worldIdentifier, ResourceKey<Level> dimension, String name, BlockPos pos) throws CommandSyntaxException; |
| 28 | + |
| 29 | + int addWaypoint(String worldIdentifier, ResourceKey<Level> dimension, String name, BlockPos pos, int color) throws CommandSyntaxException; |
| 30 | + |
| 31 | + int removeWaypoint(String worldIdentifier, String name) throws CommandSyntaxException; |
| 32 | + |
| 33 | + int renameWaypoint(String worldIdentifier, String name, String newName) throws CommandSyntaxException; |
| 34 | + |
| 35 | + int editWaypoint(String worldIdentifier, String name, BlockPos pos) throws CommandSyntaxException; |
| 36 | + |
| 37 | + int editWaypoint(String worldIdentifier, String name, ResourceKey<Level> dimension, BlockPos pos) throws CommandSyntaxException; |
| 38 | + |
| 39 | + int setWaypointVisibility(String worldIdentifier, String name, boolean visible) throws CommandSyntaxException; |
| 40 | + |
| 41 | + int setWaypointColor(String worldIdentifier, String name, int color) throws CommandSyntaxException; |
| 42 | +} |
0 commit comments