Skip to content

Commit 100ef28

Browse files
committed
feat: rename to modapi
1 parent 8b48603 commit 100ef28

15 files changed

Lines changed: 25 additions & 25 deletions

src/main/java/com/mcdiamondfire/proto/ModAPIMessage.java renamed to src/main/java/com/mcdiamondfire/modapi/ModAPIMessage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.mcdiamondfire.proto;
1+
package com.mcdiamondfire.modapi;
22

33
import com.google.protobuf.Message;
44
import org.jspecify.annotations.Nullable;

src/main/java/com/mcdiamondfire/proto/ModAPIMessages.java renamed to src/main/java/com/mcdiamondfire/modapi/ModAPIMessages.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
package com.mcdiamondfire.proto;
1+
package com.mcdiamondfire.modapi;
22

33
import com.google.protobuf.Message;
4-
import com.mcdiamondfire.proto.messages.clientbound.player.S2CChestReference;
5-
import com.mcdiamondfire.proto.messages.clientbound.player.S2CPlayerSwitchMode;
6-
import com.mcdiamondfire.proto.messages.clientbound.plot.*;
7-
import com.mcdiamondfire.proto.messages.clientbound.server.S2CHandshakeResponse;
8-
import com.mcdiamondfire.proto.messages.clientbound.server.S2CHello;
9-
import com.mcdiamondfire.proto.messages.clientbound.server.S2CServerBooster;
10-
import com.mcdiamondfire.proto.messages.serverbound.player.C2SPlayerTeleport;
11-
import com.mcdiamondfire.proto.messages.serverbound.plot.C2SCodeOperation;
12-
import com.mcdiamondfire.proto.messages.serverbound.plot.C2SMultiCodeOperations;
13-
import com.mcdiamondfire.proto.messages.serverbound.server.C2SHandshakeRequest;
4+
import com.mcdiamondfire.modapi.messages.clientbound.player.S2CChestReference;
5+
import com.mcdiamondfire.modapi.messages.clientbound.player.S2CPlayerSwitchMode;
6+
import com.mcdiamondfire.modapi.messages.clientbound.plot.*;
7+
import com.mcdiamondfire.modapi.messages.clientbound.server.S2CHandshakeResponse;
8+
import com.mcdiamondfire.modapi.messages.clientbound.server.S2CHello;
9+
import com.mcdiamondfire.modapi.messages.clientbound.server.S2CServerBooster;
10+
import com.mcdiamondfire.modapi.messages.serverbound.player.C2SPlayerTeleport;
11+
import com.mcdiamondfire.modapi.messages.serverbound.plot.C2SCodeOperation;
12+
import com.mcdiamondfire.modapi.messages.serverbound.plot.C2SMultiCodeOperations;
13+
import com.mcdiamondfire.modapi.messages.serverbound.server.C2SHandshakeRequest;
1414

1515
import java.util.Collections;
1616
import java.util.HashMap;

src/main/java/com/mcdiamondfire/proto/ModAPIUtility.java renamed to src/main/java/com/mcdiamondfire/modapi/ModAPIUtility.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.mcdiamondfire.proto;
1+
package com.mcdiamondfire.modapi;
22

33
import com.google.gson.JsonObject;
44
import com.google.gson.JsonParser;

src/main/java/com/mcdiamondfire/proto/package-info.java renamed to src/main/java/com/mcdiamondfire/modapi/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
@NullMarked
2-
package com.mcdiamondfire.proto;
2+
package com.mcdiamondfire.modapi;
33

44
import org.jspecify.annotations.NullMarked;

src/main/proto/clientbound/clientbound_player.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ syntax = "proto3";
22
import "common/data_type.proto";
33
import "common/common_code.proto";
44

5-
option java_package = "com.mcdiamondfire.proto.messages.clientbound.player";
5+
option java_package = "com.mcdiamondfire.modapi.messages.clientbound.player";
66
option java_multiple_files = true;
77

88
// Sent when the player switches modes.

src/main/proto/clientbound/clientbound_plot.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import "common/data_type.proto";
33
import "common/common_player.proto";
44
import "common/common_plot.proto";
55

6-
option java_package = "com.mcdiamondfire.proto.messages.clientbound.plot";
6+
option java_package = "com.mcdiamondfire.modapi.messages.clientbound.plot";
77
option java_multiple_files = true;
88

99
// Sent when the player joins a plot.

src/main/proto/clientbound/clientbound_server.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ syntax = "proto3";
22
import "common/common_player.proto";
33
import "common/common_server.proto";
44

5-
option java_package = "com.mcdiamondfire.proto.messages.clientbound.server";
5+
option java_package = "com.mcdiamondfire.modapi.messages.clientbound.server";
66
option java_multiple_files = true;
77

88
// Sent by the server when the player connects to it, respond with C2SHandshakeRequest.

src/main/proto/common/common_code.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
syntax = "proto3";
22

3-
option java_package = "com.mcdiamondfire.proto.messages.common";
3+
option java_package = "com.mcdiamondfire.modapi.messages.common";
44
option java_multiple_files = true;
55

66
// Represents a reference to an action and its arguments,

src/main/proto/common/common_player.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
syntax = "proto3";
22

3-
option java_package = "com.mcdiamondfire.proto.messages.common";
3+
option java_package = "com.mcdiamondfire.modapi.messages.common";
44
option java_multiple_files = true;
55

66
// Represents general information about the player.

src/main/proto/common/common_plot.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ syntax = "proto3";
22
import "common/data_type.proto";
33
import "common/common_code.proto";
44

5-
option java_package = "com.mcdiamondfire.proto.messages.common";
5+
option java_package = "com.mcdiamondfire.modapi.messages.common";
66
option java_multiple_files = true;
77

88
// Represents a cuboid region in the world.

0 commit comments

Comments
 (0)