Update to 1.19
This commit is contained in:
parent
7c1c96d2d2
commit
650f9b36ea
11 changed files with 34 additions and 35 deletions
|
@ -3,22 +3,22 @@
|
||||||
org.gradle.jvmargs=-Xmx3G
|
org.gradle.jvmargs=-Xmx3G
|
||||||
org.gradle.daemon=false
|
org.gradle.daemon=false
|
||||||
|
|
||||||
libzontreck=1.10.011624.1712
|
libzontreck=1.10.013124.1729
|
||||||
|
|
||||||
## Environment Properties
|
## Environment Properties
|
||||||
|
|
||||||
# The Minecraft version must agree with the Forge version to get a valid artifact
|
# The Minecraft version must agree with the Forge version to get a valid artifact
|
||||||
minecraft_version=1.18.2
|
minecraft_version=1.19.2
|
||||||
# The Minecraft version range can use any release version of Minecraft as bounds.
|
# The Minecraft version range can use any release version of Minecraft as bounds.
|
||||||
# Snapshots, pre-releases, and release candidates are not guaranteed to sort properly
|
# Snapshots, pre-releases, and release candidates are not guaranteed to sort properly
|
||||||
# as they do not follow standard versioning conventions.
|
# as they do not follow standard versioning conventions.
|
||||||
minecraft_version_range=[1.18.2,1.19)
|
minecraft_version_range=[1.19,1.20)
|
||||||
# The Forge version must agree with the Minecraft version to get a valid artifact
|
# The Forge version must agree with the Minecraft version to get a valid artifact
|
||||||
forge_version=40.2.17
|
forge_version=43.3.0
|
||||||
# The Forge version range can use any version of Forge as bounds or match the loader version range
|
# The Forge version range can use any version of Forge as bounds or match the loader version range
|
||||||
forge_version_range=[40,)
|
forge_version_range=[43,)
|
||||||
# The loader version range can only use the major version of Forge/FML as bounds
|
# The loader version range can only use the major version of Forge/FML as bounds
|
||||||
loader_version_range=[40,)
|
loader_version_range=[43,)
|
||||||
# The mapping channel to use for mappings.
|
# The mapping channel to use for mappings.
|
||||||
# The default set of supported mapping channels are ["official", "snapshot", "snapshot_nodoc", "stable", "stable_nodoc"].
|
# The default set of supported mapping channels are ["official", "snapshot", "snapshot_nodoc", "stable", "stable_nodoc"].
|
||||||
# Additional mapping channels can be registered through the "channelProviders" extension in a Gradle plugin.
|
# Additional mapping channels can be registered through the "channelProviders" extension in a Gradle plugin.
|
||||||
|
@ -36,7 +36,7 @@ loader_version_range=[40,)
|
||||||
mapping_channel=parchment
|
mapping_channel=parchment
|
||||||
# The mapping version to query from the mapping channel.
|
# The mapping version to query from the mapping channel.
|
||||||
# This must match the format required by the mapping channel.
|
# This must match the format required by the mapping channel.
|
||||||
mapping_version=2022.11.06-1.18.2
|
mapping_version=2022.11.27-1.19.2
|
||||||
|
|
||||||
|
|
||||||
## Mod Properties
|
## Mod Properties
|
||||||
|
@ -49,7 +49,7 @@ mod_name=WatchMyDurability
|
||||||
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
||||||
mod_license=GPLv3
|
mod_license=GPLv3
|
||||||
# The mod version. See https://semver.org/
|
# The mod version. See https://semver.org/
|
||||||
mod_version=1.2.011624.1736
|
mod_version=1.2.013124.1802
|
||||||
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
|
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
|
||||||
# This should match the base package used for the mod sources.
|
# This should match the base package used for the mod sources.
|
||||||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
|
|
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
1
gradle/wrapper/gradle-wrapper.properties
vendored
1
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,6 +1,5 @@
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
|
||||||
networkTimeout=10000
|
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|
12
gradlew
vendored
12
gradlew
vendored
|
@ -55,7 +55,7 @@
|
||||||
# Darwin, MinGW, and NonStop.
|
# Darwin, MinGW, and NonStop.
|
||||||
#
|
#
|
||||||
# (3) This script is generated from the Groovy template
|
# (3) This script is generated from the Groovy template
|
||||||
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||||
# within the Gradle project.
|
# within the Gradle project.
|
||||||
#
|
#
|
||||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||||
|
@ -80,11 +80,11 @@ do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
# This is normally unused
|
|
||||||
# shellcheck disable=SC2034
|
|
||||||
APP_BASE_NAME=${0##*/}
|
|
||||||
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
||||||
|
|
||||||
|
APP_NAME="Gradle"
|
||||||
|
APP_BASE_NAME=${0##*/}
|
||||||
|
|
||||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||||
|
|
||||||
|
@ -143,16 +143,12 @@ fi
|
||||||
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
||||||
case $MAX_FD in #(
|
case $MAX_FD in #(
|
||||||
max*)
|
max*)
|
||||||
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
|
||||||
# shellcheck disable=SC3045
|
|
||||||
MAX_FD=$( ulimit -H -n ) ||
|
MAX_FD=$( ulimit -H -n ) ||
|
||||||
warn "Could not query maximum file descriptor limit"
|
warn "Could not query maximum file descriptor limit"
|
||||||
esac
|
esac
|
||||||
case $MAX_FD in #(
|
case $MAX_FD in #(
|
||||||
'' | soft) :;; #(
|
'' | soft) :;; #(
|
||||||
*)
|
*)
|
||||||
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
|
||||||
# shellcheck disable=SC3045
|
|
||||||
ulimit -n "$MAX_FD" ||
|
ulimit -n "$MAX_FD" ||
|
||||||
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
||||||
esac
|
esac
|
||||||
|
|
1
gradlew.bat
vendored
1
gradlew.bat
vendored
|
@ -26,7 +26,6 @@ if "%OS%"=="Windows_NT" setlocal
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%"=="" set DIRNAME=.
|
if "%DIRNAME%"=="" set DIRNAME=.
|
||||||
@rem This is normally unused
|
|
||||||
set APP_BASE_NAME=%~n0
|
set APP_BASE_NAME=%~n0
|
||||||
set APP_HOME=%DIRNAME%
|
set APP_HOME=%DIRNAME%
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@ public class WatchMyDurability
|
||||||
{
|
{
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public static void onJoin(ClientPlayerNetworkEvent.LoggedInEvent event){
|
public static void onJoin(ClientPlayerNetworkEvent.LoggingIn event){
|
||||||
// Joined
|
// Joined
|
||||||
//LOGGER.info("PLAYER LOGGED IN");
|
//LOGGER.info("PLAYER LOGGED IN");
|
||||||
LOGGER.info(": : : PLAYER LOGGED IN : : :");
|
LOGGER.info(": : : PLAYER LOGGED IN : : :");
|
||||||
|
@ -126,7 +126,7 @@ public class WatchMyDurability
|
||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public static void onLeave(ClientPlayerNetworkEvent.LoggedOutEvent event){
|
public static void onLeave(ClientPlayerNetworkEvent.LoggingOut event){
|
||||||
//LOGGER.info("PLAYER LOGGED OUT");
|
//LOGGER.info("PLAYER LOGGED OUT");
|
||||||
LOGGER.info(": : : PLAYER LOGGED OUT : : :");
|
LOGGER.info(": : : PLAYER LOGGED OUT : : :");
|
||||||
WatchMyDurability.isInGame=false;
|
WatchMyDurability.isInGame=false;
|
||||||
|
@ -135,7 +135,7 @@ public class WatchMyDurability
|
||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public static void onClone(ClientPlayerNetworkEvent.RespawnEvent event)
|
public static void onClone(ClientPlayerNetworkEvent.Clone event)
|
||||||
{
|
{
|
||||||
LOGGER.info(": : : : PLAYER RESPAWNED OR MOVED TO A NEW WORLD : : : :");
|
LOGGER.info(": : : : PLAYER RESPAWNED OR MOVED TO A NEW WORLD : : : :");
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ public class CheckHealth extends Task
|
||||||
Component chat = ChatHelpers.macro(Msg);
|
Component chat = ChatHelpers.macro(Msg);
|
||||||
Minecraft.getInstance().player.displayClientMessage(chat, false);
|
Minecraft.getInstance().player.displayClientMessage(chat, false);
|
||||||
|
|
||||||
SoundEvent sv = SoundEvents.ENDER_DRAGON_GROWL;
|
SoundEvent sv = SoundEvents.WARDEN_ROAR;
|
||||||
Helpers.Soundify(sv);
|
Helpers.Soundify(sv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class CheckHunger extends Task
|
||||||
Component chat = ChatHelpers.macro(Msg);
|
Component chat = ChatHelpers.macro(Msg);
|
||||||
Minecraft.getInstance().player.displayClientMessage(chat, false);
|
Minecraft.getInstance().player.displayClientMessage(chat, false);
|
||||||
|
|
||||||
SoundEvent sv = SoundEvents.ENDER_DRAGON_GROWL; // It sounds like a growling stomach
|
SoundEvent sv = SoundEvents.WARDEN_ROAR; // It sounds like a growling stomach
|
||||||
Helpers.Soundify(sv);
|
Helpers.Soundify(sv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,31 +31,31 @@ public class ModMessages
|
||||||
net.messageBuilder(WMDServerAvailable.class, id(), NetworkDirection.PLAY_TO_CLIENT)
|
net.messageBuilder(WMDServerAvailable.class, id(), NetworkDirection.PLAY_TO_CLIENT)
|
||||||
.encoder(WMDServerAvailable::toBytes)
|
.encoder(WMDServerAvailable::toBytes)
|
||||||
.decoder(WMDServerAvailable::new)
|
.decoder(WMDServerAvailable::new)
|
||||||
.consumer(WMDServerAvailable::handle)
|
.consumerMainThread(WMDServerAvailable::handle)
|
||||||
.add();
|
.add();
|
||||||
|
|
||||||
net.messageBuilder(S2CResetConfig.class, id(), NetworkDirection.PLAY_TO_CLIENT)
|
net.messageBuilder(S2CResetConfig.class, id(), NetworkDirection.PLAY_TO_CLIENT)
|
||||||
.encoder(S2CResetConfig::toBytes)
|
.encoder(S2CResetConfig::toBytes)
|
||||||
.decoder(S2CResetConfig::new)
|
.decoder(S2CResetConfig::new)
|
||||||
.consumer(S2CResetConfig::handle)
|
.consumerMainThread(S2CResetConfig::handle)
|
||||||
.add();
|
.add();
|
||||||
|
|
||||||
net.messageBuilder(RequestClientConfig.class, id(), NetworkDirection.PLAY_TO_CLIENT)
|
net.messageBuilder(RequestClientConfig.class, id(), NetworkDirection.PLAY_TO_CLIENT)
|
||||||
.encoder(RequestClientConfig::toBytes)
|
.encoder(RequestClientConfig::toBytes)
|
||||||
.decoder(RequestClientConfig::new)
|
.decoder(RequestClientConfig::new)
|
||||||
.consumer(RequestClientConfig::handle)
|
.consumerMainThread(RequestClientConfig::handle)
|
||||||
.add();
|
.add();
|
||||||
|
|
||||||
net.messageBuilder(ClientConfigResponse.class, id(), NetworkDirection.PLAY_TO_SERVER)
|
net.messageBuilder(ClientConfigResponse.class, id(), NetworkDirection.PLAY_TO_SERVER)
|
||||||
.encoder(ClientConfigResponse::toBytes)
|
.encoder(ClientConfigResponse::toBytes)
|
||||||
.decoder(ClientConfigResponse::new)
|
.decoder(ClientConfigResponse::new)
|
||||||
.consumer(ClientConfigResponse::handle)
|
.consumerMainThread(ClientConfigResponse::handle)
|
||||||
.add();
|
.add();
|
||||||
|
|
||||||
net.messageBuilder(PushClientConfigUpdate.class, id(), NetworkDirection.PLAY_TO_CLIENT)
|
net.messageBuilder(PushClientConfigUpdate.class, id(), NetworkDirection.PLAY_TO_CLIENT)
|
||||||
.encoder(PushClientConfigUpdate::toBytes)
|
.encoder(PushClientConfigUpdate::toBytes)
|
||||||
.decoder(PushClientConfigUpdate::new)
|
.decoder(PushClientConfigUpdate::new)
|
||||||
.consumer(PushClientConfigUpdate::handle)
|
.consumerMainThread(PushClientConfigUpdate::handle)
|
||||||
.add();
|
.add();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@ import dev.zontreck.wmd.networking.packets.s2c.S2CResetConfig;
|
||||||
import net.minecraft.nbt.CompoundTag;
|
import net.minecraft.nbt.CompoundTag;
|
||||||
import net.minecraft.network.FriendlyByteBuf;
|
import net.minecraft.network.FriendlyByteBuf;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
import net.minecraft.network.chat.TextComponent;
|
|
||||||
import net.minecraft.server.level.ServerPlayer;
|
import net.minecraft.server.level.ServerPlayer;
|
||||||
import net.minecraft.world.item.ItemStack;
|
import net.minecraft.world.item.ItemStack;
|
||||||
import net.minecraft.world.item.Items;
|
import net.minecraft.world.item.Items;
|
||||||
|
@ -61,7 +60,7 @@ public class ClientConfigResponse {
|
||||||
try {
|
try {
|
||||||
ChestGUI prompt = ChestGUI.builder().withGUIId(new ChestGUIIdentifier("wmdsettings")).withPlayer(player.getUUID()).withTitle("WMD Settings");
|
ChestGUI prompt = ChestGUI.builder().withGUIId(new ChestGUIIdentifier("wmdsettings")).withPlayer(player.getUUID()).withTitle("WMD Settings");
|
||||||
ItemStack wtd = new ItemStack(Items.DIAMOND_PICKAXE, 1);
|
ItemStack wtd = new ItemStack(Items.DIAMOND_PICKAXE, 1);
|
||||||
wtd.setHoverName(new TextComponent("Watch Tool Durability"));
|
wtd.setHoverName(Component.literal("Watch Tool Durability"));
|
||||||
|
|
||||||
prompt.withButton(new ChestGUIButton(wtd, (stack, container, lore) -> {
|
prompt.withButton(new ChestGUIButton(wtd, (stack, container, lore) -> {
|
||||||
var wd = !tag.getBoolean("watchDurability");
|
var wd = !tag.getBoolean("watchDurability");
|
||||||
|
@ -80,7 +79,7 @@ public class ClientConfigResponse {
|
||||||
);
|
);
|
||||||
|
|
||||||
ItemStack wmhunger = new ItemStack(Items.APPLE, 1);
|
ItemStack wmhunger = new ItemStack(Items.APPLE, 1);
|
||||||
wmhunger.setHoverName(new TextComponent("Watch My Hunger"));
|
wmhunger.setHoverName(Component.literal("Watch My Hunger"));
|
||||||
|
|
||||||
prompt.withButton(new ChestGUIButton(wmhunger, (stack, container, lore) -> {
|
prompt.withButton(new ChestGUIButton(wmhunger, (stack, container, lore) -> {
|
||||||
var eh = !tag.getBoolean("watchMyHunger");
|
var eh = !tag.getBoolean("watchMyHunger");
|
||||||
|
@ -95,7 +94,7 @@ public class ClientConfigResponse {
|
||||||
.withInfo(new LoreEntry.Builder().text(ChatColor.doColors("!Dark_Green!Status: " + (enableHunger ? "!Dark_Green!Enabled" : "!Dark_Red!Disabled"))).build())
|
.withInfo(new LoreEntry.Builder().text(ChatColor.doColors("!Dark_Green!Status: " + (enableHunger ? "!Dark_Green!Enabled" : "!Dark_Red!Disabled"))).build())
|
||||||
);
|
);
|
||||||
ItemStack wmhealth = new ItemStack(Items.PUFFERFISH, 1);
|
ItemStack wmhealth = new ItemStack(Items.PUFFERFISH, 1);
|
||||||
wmhealth.setHoverName(new TextComponent("Watch My Health"));
|
wmhealth.setHoverName(Component.literal("Watch My Health"));
|
||||||
|
|
||||||
prompt.withButton(new ChestGUIButton(wmhealth, (stack, container, lore) -> {
|
prompt.withButton(new ChestGUIButton(wmhealth, (stack, container, lore) -> {
|
||||||
var eh = !tag.getBoolean("watchMyHealth");
|
var eh = !tag.getBoolean("watchMyHealth");
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
# The name of the mod loader type to load - for regular FML @Mod mods it should be javafml
|
# The name of the mod loader type to load - for regular FML @Mod mods it should be javafml
|
||||||
modLoader="javafml" #mandatory
|
modLoader="javafml" #mandatory
|
||||||
# A version range to match for said mod loader - for regular FML @Mod it will be the forge version
|
# A version range to match for said mod loader - for regular FML @Mod it will be the forge version
|
||||||
loaderVersion="[40,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
|
loaderVersion="[43,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
|
||||||
# The license for you mod. This is mandatory metadata and allows for easier comprehension of your redistributive properties.
|
# The license for you mod. This is mandatory metadata and allows for easier comprehension of your redistributive properties.
|
||||||
# Review your options at https://choosealicense.com/. All rights reserved is the default copyright stance, and is thus the default here.
|
# Review your options at https://choosealicense.com/. All rights reserved is the default copyright stance, and is thus the default here.
|
||||||
license="GPLv2"
|
license="GPLv2"
|
||||||
|
@ -51,7 +51,7 @@ modId="forge" #mandatory
|
||||||
# Does this dependency have to exist - if not, ordering below must be specified
|
# Does this dependency have to exist - if not, ordering below must be specified
|
||||||
mandatory=true #mandatory
|
mandatory=true #mandatory
|
||||||
# The version range of the dependency
|
# The version range of the dependency
|
||||||
versionRange="[40,)" #mandatory
|
versionRange="[43,)" #mandatory
|
||||||
# An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
|
# An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
|
||||||
ordering="NONE"
|
ordering="NONE"
|
||||||
# Side this dependency is applied on - BOTH, CLIENT or SERVER
|
# Side this dependency is applied on - BOTH, CLIENT or SERVER
|
||||||
|
@ -61,6 +61,12 @@ side="BOTH"
|
||||||
modId="minecraft"
|
modId="minecraft"
|
||||||
mandatory=true
|
mandatory=true
|
||||||
# This version range declares a minimum of the current minecraft version up to but not including the next major version
|
# This version range declares a minimum of the current minecraft version up to but not including the next major version
|
||||||
versionRange="[1.18.2,1.19)"
|
versionRange="[1.19,1.20)"
|
||||||
|
ordering="NONE"
|
||||||
|
side="BOTH"
|
||||||
|
[[dependencies.watchmydurability]]
|
||||||
|
modId="libzontreck"
|
||||||
|
mandatory=true
|
||||||
|
versionRange="[1.10,1.11)"
|
||||||
ordering="NONE"
|
ordering="NONE"
|
||||||
side="BOTH"
|
side="BOTH"
|
Reference in a new issue