-
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cca1951
commit 9b32319
Showing
10 changed files
with
109 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
fabric/src/main/java/net/william278/huskhomes/network/FabricPluginMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* This file is part of HuskHomes, licensed under the Apache License 2.0. | ||
* | ||
* Copyright (c) William278 <will27528@gmail.com> | ||
* Copyright (c) contributors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package net.william278.huskhomes.network; | ||
|
||
import lombok.*; | ||
import net.minecraft.network.packet.CustomPayload; | ||
import net.minecraft.util.Identifier; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
@Getter | ||
@AllArgsConstructor(access = AccessLevel.PRIVATE) | ||
@NoArgsConstructor | ||
public class FabricPluginMessage implements CustomPayload { | ||
|
||
public static final Id<FabricPluginMessage> BUNGEE_CHANNEL_ID = new Id<>( | ||
Identifier.of("bungeecord", "main") | ||
); | ||
|
||
private Id<FabricPluginMessage> id; | ||
private byte[] data; | ||
|
||
@NotNull | ||
public static FabricPluginMessage of(@NotNull String id, byte[] data) { | ||
return new FabricPluginMessage( | ||
id.equals("BungeeCord") ? BUNGEE_CHANNEL_ID : new Id<>(Identifier.tryParse(id)), data | ||
); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
javaVersion=17 | ||
javaVersion=21 | ||
|
||
org.gradle.jvmargs='-Dfile.encoding=UTF-8' | ||
org.gradle.daemon=true | ||
|
||
# Plugin metadata | ||
plugin_version=4.6.2 | ||
plugin_version=4.6.3 | ||
plugin_archive=huskhomes | ||
plugin_description=The powerful & intuitive homes, warps, and teleportation suite | ||
|
||
# General settings | ||
jedis_version=5.1.2 | ||
mysql_driver_version=8.3.0 | ||
mariadb_driver_version=3.3.3 | ||
sqlite_driver_version=3.45.2.0 | ||
jedis_version=5.1.3 | ||
mysql_driver_version=8.4.0 | ||
mariadb_driver_version=3.4.0 | ||
sqlite_driver_version=3.46.0.0 | ||
h2_driver_version=2.2.220 | ||
postgresql_driver_version=42.7.3 | ||
commons_pool_version=2.12.0 | ||
|
||
# Fabric settings | ||
fabric_loom_version=1.5-SNAPSHOT | ||
fabric_minecraft_version=1.20.4 | ||
fabric_loader_version=0.15.9 | ||
fabric_yarn_mappings=1.20.4+build.3 | ||
fabric_api_version=0.96.11+1.20.4 | ||
fabric_permissions_api_version=0.2-SNAPSHOT | ||
adventure_platform_fabric_version=5.12.0 | ||
fabric_impactor_api_version=5.2.0-SNAPSHOT | ||
fabric_placeholder_api_version=2.3.0+1.20.3 | ||
fabric_loom_version=1.6-SNAPSHOT | ||
fabric_minecraft_version=1.20.6 | ||
fabric_loader_version=0.15.11 | ||
fabric_yarn_mappings=1.20.6+build.3 | ||
fabric_api_version=0.99.0+1.20.6 | ||
fabric_permissions_api_version=0.3.1 | ||
adventure_platform_fabric_version=5.13.0 | ||
fabric_impactor_api_version=5.2.4 | ||
fabric_placeholder_api_version=2.4.0-pre.1+1.20.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters