Skip to content

Commit 12fbf3e

Browse files
committed
Update to 1.21
1 parent c8be5cd commit 12fbf3e

File tree

7 files changed

+26
-26
lines changed

7 files changed

+26
-26
lines changed

changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
- Updated to 1.20.6
1+
- Updated to 1.21

gradle.properties

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ org.gradle.daemon=false
44
java_version=21
55

66
mod_loader=fabric
7-
minecraft_version=1.20.6
8-
minecraft_dependency=1.20.6
9-
fabric_loader_version=0.15.10
10-
fabric_loader_dependency=>=0.15.10
11-
fabric_api_version=0.97.8+1.20.6
12-
fabric_api_dependency_breaks=<0.97.8+1.20.6
7+
minecraft_version=1.21
8+
minecraft_dependency=1.21
9+
fabric_loader_version=0.15.11
10+
fabric_loader_dependency=>=0.15.11
11+
fabric_api_version=0.100.1+1.21
12+
fabric_api_dependency_breaks=<0.100.1+1.21
1313

1414
mod_compatibility_version=1
1515

1616
# Mod information
17-
mod_version=1.20.6-1.0.6
17+
mod_version=1.21-1.0.6
1818
mod_id=status
1919
mod_display_name=Status
2020

src/main/java/de/maxhenkel/status/Status.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class Status implements ModInitializer {
3030
public static ServerConfig SERVER_CONFIG;
3131
public static PlayerStateManager STATE_MANAGER;
3232

33-
public static final ResourceLocation INIT = new ResourceLocation(Status.MODID, "init");
33+
public static final ResourceLocation INIT = ResourceLocation.fromNamespaceAndPath(Status.MODID, "init");
3434
public static int COMPATIBILITY_VERSION = -1;
3535

3636
@Override
@@ -51,7 +51,7 @@ public void onInitialize() {
5151
ServerLifecycleEvents.SERVER_STARTING.register(server -> {
5252
SERVER_CONFIG = ConfigBuilder
5353
.builder(ServerConfig::new)
54-
.path(server.getServerDirectory().toPath().resolve("config").resolve(MODID).resolve("status-server.properties"))
54+
.path(server.getServerDirectory().resolve("config").resolve(MODID).resolve("status-server.properties"))
5555
.build();
5656
});
5757

src/main/java/de/maxhenkel/status/gui/StatusScreen.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111

1212
public class StatusScreen extends StatusScreenBase {
1313

14-
private static final ResourceLocation TEXTURE = new ResourceLocation(Status.MODID, "textures/gui/gui_status.png");
15-
private static final ResourceLocation OUTLINE = new ResourceLocation(Status.MODID, "textures/icons/outline.png");
16-
private static final ResourceLocation NO_AVAILABILITY = new ResourceLocation(Status.MODID, "textures/icons/no_availability.png");
17-
private static final ResourceLocation DND = new ResourceLocation(Status.MODID, "textures/icons/dnd.png");
18-
private static final ResourceLocation OPEN = new ResourceLocation(Status.MODID, "textures/icons/open.png");
19-
private static final ResourceLocation NEUTRAL = new ResourceLocation(Status.MODID, "textures/icons/neutral.png");
20-
private static final ResourceLocation RECORDING = new ResourceLocation(Status.MODID, "textures/icons/recording.png");
21-
private static final ResourceLocation STREAMING = new ResourceLocation(Status.MODID, "textures/icons/streaming.png");
14+
private static final ResourceLocation TEXTURE = ResourceLocation.fromNamespaceAndPath(Status.MODID, "textures/gui/gui_status.png");
15+
private static final ResourceLocation OUTLINE = ResourceLocation.fromNamespaceAndPath(Status.MODID, "textures/icons/outline.png");
16+
private static final ResourceLocation NO_AVAILABILITY = ResourceLocation.fromNamespaceAndPath(Status.MODID, "textures/icons/no_availability.png");
17+
private static final ResourceLocation DND = ResourceLocation.fromNamespaceAndPath(Status.MODID, "textures/icons/dnd.png");
18+
private static final ResourceLocation OPEN = ResourceLocation.fromNamespaceAndPath(Status.MODID, "textures/icons/open.png");
19+
private static final ResourceLocation NEUTRAL = ResourceLocation.fromNamespaceAndPath(Status.MODID, "textures/icons/neutral.png");
20+
private static final ResourceLocation RECORDING = ResourceLocation.fromNamespaceAndPath(Status.MODID, "textures/icons/recording.png");
21+
private static final ResourceLocation STREAMING = ResourceLocation.fromNamespaceAndPath(Status.MODID, "textures/icons/streaming.png");
2222

2323
public StatusScreen() {
2424
super(Component.translatable("gui.status.title"), 145, 184);

src/main/java/de/maxhenkel/status/net/PlayerStatePacket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
public class PlayerStatePacket implements Packet<PlayerStatePacket> {
1111

12-
public static final Type<PlayerStatePacket> PLAYER_STATE = new CustomPacketPayload.Type<>(new ResourceLocation(Status.MODID, "state"));
12+
public static final Type<PlayerStatePacket> PLAYER_STATE = new CustomPacketPayload.Type<>(ResourceLocation.fromNamespaceAndPath(Status.MODID, "state"));
1313

1414
public static final StreamCodec<RegistryFriendlyByteBuf, PlayerStatePacket> CODEC = new StreamCodec<>() {
1515
@Override

src/main/java/de/maxhenkel/status/net/PlayerStatesPacket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
public class PlayerStatesPacket implements Packet<PlayerStatesPacket> {
1515

16-
public static final Type<PlayerStatesPacket> PLAYER_STATES = new CustomPacketPayload.Type<>(new ResourceLocation(Status.MODID, "states"));
16+
public static final Type<PlayerStatesPacket> PLAYER_STATES = new CustomPacketPayload.Type<>(ResourceLocation.fromNamespaceAndPath(Status.MODID, "states"));
1717

1818
public static final StreamCodec<RegistryFriendlyByteBuf, PlayerStatesPacket> CODEC = new StreamCodec<>() {
1919
@Override

src/main/java/de/maxhenkel/status/playerstate/ClientPlayerStateManager.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ public PlayerState getState(UUID player) {
116116
return states.get(player);
117117
}
118118

119-
private static final ResourceLocation DND = new ResourceLocation(Status.MODID, "textures/icons/dnd.png");
120-
private static final ResourceLocation OPEN = new ResourceLocation(Status.MODID, "textures/icons/open.png");
121-
private static final ResourceLocation NO_AVAILABILITY = new ResourceLocation(Status.MODID, "textures/icons/no_availability.png");
122-
private static final ResourceLocation RECORDING = new ResourceLocation(Status.MODID, "textures/icons/recording.png");
123-
private static final ResourceLocation STREAMING = new ResourceLocation(Status.MODID, "textures/icons/streaming.png");
124-
private static final ResourceLocation NEUTRAL = new ResourceLocation(Status.MODID, "textures/icons/neutral.png");
119+
private static final ResourceLocation DND = ResourceLocation.fromNamespaceAndPath(Status.MODID, "textures/icons/dnd.png");
120+
private static final ResourceLocation OPEN = ResourceLocation.fromNamespaceAndPath(Status.MODID, "textures/icons/open.png");
121+
private static final ResourceLocation NO_AVAILABILITY = ResourceLocation.fromNamespaceAndPath(Status.MODID, "textures/icons/no_availability.png");
122+
private static final ResourceLocation RECORDING = ResourceLocation.fromNamespaceAndPath(Status.MODID, "textures/icons/recording.png");
123+
private static final ResourceLocation STREAMING = ResourceLocation.fromNamespaceAndPath(Status.MODID, "textures/icons/streaming.png");
124+
private static final ResourceLocation NEUTRAL = ResourceLocation.fromNamespaceAndPath(Status.MODID, "textures/icons/neutral.png");
125125

126126
@Nullable
127127
public ResourceLocation getIcon(UUID player) {

0 commit comments

Comments
 (0)