Skip to content

Commit

Permalink
1.21 rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
sakura-ryoko committed Jun 10, 2024
1 parent 712049c commit a3cd334
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 9 deletions.
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ author = masa
mod_file_name = servux-fabric

# Current mod version
mod_version = 0.1.999-snap
mod_version = 0.1.999-sakura

# The Minecraft version that gets set in the built file name
minecraft_version_out = 1.21-pre4
minecraft_version_out = 1.21-rc1

# Minecraft, Fabric and mappings versions
minecraft_version = 1.21-pre4
mappings_version = 1.21-pre4+build.2
minecraft_version = 1.21-rc1
mappings_version = 1.21-rc1+build.1

fabric_loader_version = 0.15.11
fabric_api_version = 0.99.5+1.21
fabric_api_version = 0.100.0+1.21
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package fi.dy.masa.servux.network.handler;

import net.minecraft.nbt.NbtCompound;
import net.minecraft.nbt.NbtElement;
import net.minecraft.nbt.NbtList;

public class ServuxStructuresData
{
private NbtElement nbtElement;
private NbtCompound nbtCompound;
private NbtList nbtList;
private int packetType;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ public record ServuxStructuresPayload(NbtCompound data) implements CustomPayload
public static final Id<ServuxStructuresPayload> TYPE = new Id<>(ServuxStructuresHandler.CHANNEL_ID);
public static final PacketCodec<PacketByteBuf, ServuxStructuresPayload> CODEC = CustomPayload.codecOf(ServuxStructuresPayload::write, ServuxStructuresPayload::new);

public ServuxStructuresPayload(PacketByteBuf buf) { this(buf.readNbt()); }
public ServuxStructuresPayload(PacketByteBuf input)
{
this(input.readNbt());
}

private void write(PacketByteBuf buf) { buf.writeNbt(data); }
private void write(PacketByteBuf output)
{
output.writeNbt(data);
}

@Override
public Id<? extends CustomPayload> getId() { return TYPE; }
public Id<ServuxStructuresPayload> getId() { return TYPE; }
}
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
],

"depends": {
"minecraft": ">=1.21-beta.3",
"minecraft": ">=1.21-rc.1",
"fabric-networking-api-v1": ">=4.0.12"
}
}

0 comments on commit a3cd334

Please sign in to comment.