From f1815b97d9413fcbac2be6690ccca5a4ca6a13cd Mon Sep 17 00:00:00 2001 From: 3944Realms Date: Tue, 13 Jan 2026 11:02:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9modid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LICENSE.AC | 661 ++++++++++++++++++ README.md | 2 +- build.gradle | 8 - gradle.properties | 14 +- out/production/resources/pack.mcmeta | 2 +- out/production/resources/sccore.mixins.json | 4 +- settings.gradle | 2 +- .../2a65ee2815744be1ef1ffdae1c9a37f2a9cbe2ac | 4 +- .../61acbbbaada2083c247adc1ae9d8e917cd10f737 | 3 - .../7f03ba6e657d7cfe0009cfdf678b3b794c6aaf37 | 2 + .../8d4a9f2e2cfb72704a9beb2c8fd13d8c15f78bd2 | 3 + .../c622617f6fabf890a00b9275cd5f643584a8a2c8 | 4 +- .../e2498d4cca70fa6756057cb576783dab07d8a759 | 2 - .../resources/assets/animcore/lang/en_us.json | 32 + .../resources/assets/animcore/lang/zh_cn.json | 32 + .../resources/assets/sccore/lang/en_us.json | 32 - .../resources/assets/sccore/lang/zh_cn.json | 32 - .../ac_animations/animation.layer.json | 6 + .../ac_animations}/waltz_gentleman.anim.json | 4 +- .../ac_animations}/waltz_lady.anim.json | 4 +- .../scc_animations/animation.layer.json | 6 - .../event/server/ResourceReloadListener.java | 17 - .../provider/ModAnimationLayerProvider.java | 20 - .../animationcore/AnimationCore.java} | 28 +- .../animation/AnimationApi.java | 10 +- .../capability/AnimationDataCapability.java | 22 +- .../RawAnimationDataCapability.java | 18 +- .../inter/IAnimationCapability.java | 4 +- .../animation/command/ApplyCommand.java | 20 +- .../animation/command/InviteCommand.java | 24 +- .../animation/command/JsonCommand.java | 14 +- .../animation/command/ListServerCommand.java | 6 +- .../animation/command/PlayCommand.java | 36 +- .../animation/command/RequestCommand.java | 24 +- .../command/argument/AnimationArgument.java | 8 +- .../argument/AnimationLayerArgument.java | 4 +- .../command/client/ListClientCommand.java | 8 +- .../command/client/RefreshCommand.java | 12 +- .../command/exception/ApiBackException.java | 6 +- .../exception/CommandComponentException.java | 4 +- .../animation/data/AnimationData.java | 2 +- .../animation/data/GenericAnimationData.java | 2 +- .../animation/data/RawAnimationData.java | 2 +- .../animationcore}/animation/data/Ride.java | 2 +- .../data/util/ACAnimationLayerProvider.java} | 12 +- .../data/util/ACAnimationProvider.java} | 12 +- .../animation/data/util/AnimJson.java | 12 +- .../animation/data/util/AnimLayerJson.java | 4 +- .../animation/data/util/RawAnimJson.java | 8 +- .../animation/entity/AnimationRideEntity.java | 14 +- .../renderer/AnimationRideRenderer.java | 4 +- .../animation/event/PlayerTickEvent.java | 6 +- .../animation/event/client/CameraModify.java | 12 +- .../event/client/ClientPlayerEvent.java | 4 +- .../client/EntityRendererRegisterEvent.java | 6 +- .../event/create/AnimationEvent.java | 4 +- .../event/create/AnimationRegisterEvent.java | 8 +- .../animation/helper/AnimationDataHelper.java | 12 +- .../animation/helper/AnimationHelper.java | 12 +- .../animation/helper/AnimationJsonHelper.java | 10 +- .../helper/AnimationServiceGetterHelper.java | 6 +- .../helper/IAnimationServiceGetter.java | 8 +- .../mixin/IMixinKeyframeAnimationPlayer.java | 2 +- .../IMixinPlayerAnimationFactoryHolder.java | 2 +- .../network/ServiceGetterPacket.java | 10 +- .../toclient/AnimationCapabilityPacket.java | 14 +- .../toclient/AnimationClearPacket.java | 6 +- .../toclient/AnimationClientStatusPacket.java | 4 +- .../network/toclient/AnimationJsonPacket.java | 10 +- .../RawAnimationCapabilityPacket.java | 12 +- .../network/toclient/SyncAnimationPacket.java | 6 +- .../toserver/ApplyAnimationPacket.java | 6 +- .../toserver/InviteAnimationPacket.java | 8 +- .../network/toserver/PlayAnimationPacket.java | 8 +- .../toserver/PlayAnimationRidePacket.java | 8 +- .../toserver/RequestAnimationPacket.java | 8 +- .../network/toserver/StopAnimationPacket.java | 4 +- .../register/AnimationCapabilities.java | 20 +- .../animation/register/AnimationChannels.java | 14 +- .../animation/register/AnimationCommands.java | 14 +- .../animation/register/AnimationEntities.java | 8 +- .../animation/register/AnimationRegistry.java | 94 ++- .../register/RawAnimationRegistry.java | 18 +- .../animation/service/AnimationService.java | 16 +- .../animation/service/IAnimationService.java | 40 +- .../service/RawAnimationService.java | 16 +- .../animation/utils/AnimationUtils.java | 30 +- .../animation/utils/ApiBack.java | 2 +- .../animation/utils/FileUtils.java | 2 +- .../capability/CapabilityUtils.java | 18 +- .../capability/data/ICapabilitySync.java | 6 +- .../data/entity/EntityCapabilityHandler.java | 10 +- .../data/entity/EntityCapabilityProvider.java | 4 +- .../data/entity/EntityCapabilityRegistry.java | 4 +- .../entity/EntityCapabilityRemainder.java | 8 +- .../entity/SimpleEntityCapabilitySync.java | 6 +- .../data/player/PlayerCapabilityHandler.java | 8 +- .../data/player/PlayerCapabilityProvider.java | 4 +- .../data/player/PlayerCapabilityRegistry.java | 4 +- .../player/PlayerCapabilityRemainder.java | 6 +- .../player/SimplePlayerCapabilitySync.java | 8 +- .../capability/network/CapabilityChannel.java | 6 +- .../capability/network/ICapabilityPacket.java | 4 +- .../network/SimpleCapabilityPacket.java | 14 +- .../animationcore}/core/IModLazyRun.java | 2 +- .../animationcore}/core/ModChannel.java | 8 +- .../animationcore}/core/ModCommands.java | 11 +- .../animationcore}/core/ModCompatRun.java | 2 +- .../core/configs/ModConfigs.java | 2 +- .../core/datagen/DataGenEvent.java | 12 +- .../animationcore}/core/datagen/ModLang.java | 8 +- .../provider/ModAnimationLayerProvider.java | 20 + .../provider/ModAnimationProvider.java | 18 +- .../datagen/provider/ModLangProvider.java | 8 +- .../example/animation/ModAnimation.java | 28 +- .../event/ExamplePlayerAttackEvent.java | 8 +- .../example/capability/ModCapability.java | 16 +- .../example/capability/data/ISheepData.java | 4 +- .../capability/data/SheepDataCapability.java | 18 +- .../capability/event/PlayerAttackEvent.java | 4 +- .../mixin/AnimCoreMixinPlugin.java} | 10 +- .../mixin/animation/MixinEntity.java | 10 +- .../mixin/animation/client/MixinEntity.java | 6 +- .../animation/client/MixinHumanoidModel.java | 6 +- .../client/MixinKeyframeAnimationPlayer.java | 4 +- .../MixinPlayerAnimationFactoryHolder.java | 4 +- ...ccore.mixins.json => animcore.mixins.json} | 7 +- src/main/resources/logo.png | Bin 5712 -> 6093 bytes src/main/resources/pack.mcmeta | 2 +- 129 files changed, 1325 insertions(+), 691 deletions(-) create mode 100644 LICENSE.AC delete mode 100644 src/generated/resources/.cache/61acbbbaada2083c247adc1ae9d8e917cd10f737 create mode 100644 src/generated/resources/.cache/7f03ba6e657d7cfe0009cfdf678b3b794c6aaf37 create mode 100644 src/generated/resources/.cache/8d4a9f2e2cfb72704a9beb2c8fd13d8c15f78bd2 delete mode 100644 src/generated/resources/.cache/e2498d4cca70fa6756057cb576783dab07d8a759 create mode 100644 src/generated/resources/assets/animcore/lang/en_us.json create mode 100644 src/generated/resources/assets/animcore/lang/zh_cn.json delete mode 100644 src/generated/resources/assets/sccore/lang/en_us.json delete mode 100644 src/generated/resources/assets/sccore/lang/zh_cn.json create mode 100644 src/generated/resources/data/animcore/ac_animations/animation.layer.json rename src/generated/resources/data/{sccore/scc_animations => animcore/ac_animations}/waltz_gentleman.anim.json (83%) rename src/generated/resources/data/{sccore/scc_animations => animcore/ac_animations}/waltz_lady.anim.json (80%) delete mode 100644 src/generated/resources/data/sccore/scc_animations/animation.layer.json delete mode 100644 src/main/java/com/linearpast/sccore/animation/event/server/ResourceReloadListener.java delete mode 100644 src/main/java/com/linearpast/sccore/core/datagen/provider/ModAnimationLayerProvider.java rename src/main/java/{com/linearpast/sccore/SnowyCrescentCore.java => top/leisuretimedock/animationcore/AnimationCore.java} (58%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/AnimationApi.java (69%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/capability/AnimationDataCapability.java (88%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/capability/RawAnimationDataCapability.java (82%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/capability/inter/IAnimationCapability.java (85%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/command/ApplyCommand.java (89%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/command/InviteCommand.java (86%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/command/JsonCommand.java (92%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/command/ListServerCommand.java (93%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/command/PlayCommand.java (90%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/command/RequestCommand.java (86%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/command/argument/AnimationArgument.java (92%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/command/argument/AnimationLayerArgument.java (94%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/command/client/ListClientCommand.java (82%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/command/client/RefreshCommand.java (85%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/command/exception/ApiBackException.java (89%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/command/exception/CommandComponentException.java (88%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/data/AnimationData.java (99%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/data/GenericAnimationData.java (96%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/data/RawAnimationData.java (88%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/data/Ride.java (96%) rename src/main/java/{com/linearpast/sccore/animation/data/util/SCCAnimationLayerProvider.java => top/leisuretimedock/animationcore/animation/data/util/ACAnimationLayerProvider.java} (92%) rename src/main/java/{com/linearpast/sccore/animation/data/util/SCCAnimationProvider.java => top/leisuretimedock/animationcore/animation/data/util/ACAnimationProvider.java} (93%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/data/util/AnimJson.java (96%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/data/util/AnimLayerJson.java (97%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/data/util/RawAnimJson.java (94%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/entity/AnimationRideEntity.java (93%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/entity/renderer/AnimationRideRenderer.java (90%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/event/PlayerTickEvent.java (79%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/event/client/CameraModify.java (92%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/event/client/ClientPlayerEvent.java (91%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/event/client/EntityRendererRegisterEvent.java (61%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/event/create/AnimationEvent.java (95%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/event/create/AnimationRegisterEvent.java (84%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/helper/AnimationDataHelper.java (83%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/helper/AnimationHelper.java (96%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/helper/AnimationJsonHelper.java (88%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/helper/AnimationServiceGetterHelper.java (89%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/helper/IAnimationServiceGetter.java (69%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/mixin/IMixinKeyframeAnimationPlayer.java (78%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/mixin/IMixinPlayerAnimationFactoryHolder.java (86%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/network/ServiceGetterPacket.java (76%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/network/toclient/AnimationCapabilityPacket.java (85%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/network/toclient/AnimationClearPacket.java (87%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/network/toclient/AnimationClientStatusPacket.java (90%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/network/toclient/AnimationJsonPacket.java (77%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/network/toclient/RawAnimationCapabilityPacket.java (84%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/network/toclient/SyncAnimationPacket.java (87%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/network/toserver/ApplyAnimationPacket.java (86%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/network/toserver/InviteAnimationPacket.java (88%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/network/toserver/PlayAnimationPacket.java (89%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/network/toserver/PlayAnimationRidePacket.java (90%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/network/toserver/RequestAnimationPacket.java (89%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/network/toserver/StopAnimationPacket.java (86%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/register/AnimationCapabilities.java (66%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/register/AnimationChannels.java (85%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/register/AnimationCommands.java (75%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/register/AnimationEntities.java (80%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/register/AnimationRegistry.java (86%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/register/RawAnimationRegistry.java (84%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/service/AnimationService.java (90%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/service/IAnimationService.java (95%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/service/RawAnimationService.java (88%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/utils/AnimationUtils.java (92%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/utils/ApiBack.java (91%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/animation/utils/FileUtils.java (97%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/capability/CapabilityUtils.java (92%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/capability/data/ICapabilitySync.java (92%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/capability/data/entity/EntityCapabilityHandler.java (88%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/capability/data/entity/EntityCapabilityProvider.java (92%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/capability/data/entity/EntityCapabilityRegistry.java (94%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/capability/data/entity/EntityCapabilityRemainder.java (90%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/capability/data/entity/SimpleEntityCapabilitySync.java (94%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/capability/data/player/PlayerCapabilityHandler.java (90%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/capability/data/player/PlayerCapabilityProvider.java (92%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/capability/data/player/PlayerCapabilityRegistry.java (93%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/capability/data/player/PlayerCapabilityRemainder.java (94%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/capability/data/player/SimplePlayerCapabilitySync.java (92%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/capability/network/CapabilityChannel.java (86%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/capability/network/ICapabilityPacket.java (90%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/capability/network/SimpleCapabilityPacket.java (80%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/core/IModLazyRun.java (95%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/core/ModChannel.java (84%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/core/ModCommands.java (85%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/core/ModCompatRun.java (94%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/core/configs/ModConfigs.java (98%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/core/datagen/DataGenEvent.java (71%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/core/datagen/ModLang.java (96%) create mode 100644 src/main/java/top/leisuretimedock/animationcore/core/datagen/provider/ModAnimationLayerProvider.java rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/core/datagen/provider/ModAnimationProvider.java (62%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/core/datagen/provider/ModLangProvider.java (89%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/example/animation/ModAnimation.java (82%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/example/animation/event/ExamplePlayerAttackEvent.java (90%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/example/capability/ModCapability.java (82%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/example/capability/data/ISheepData.java (73%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/example/capability/data/SheepDataCapability.java (85%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/example/capability/event/PlayerAttackEvent.java (87%) rename src/main/java/{com/linearpast/sccore/mixin/SCCoreMixinPlugin.java => top/leisuretimedock/animationcore/mixin/AnimCoreMixinPlugin.java} (78%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/mixin/animation/MixinEntity.java (88%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/mixin/animation/client/MixinEntity.java (90%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/mixin/animation/client/MixinHumanoidModel.java (89%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/mixin/animation/client/MixinKeyframeAnimationPlayer.java (76%) rename src/main/java/{com/linearpast/sccore => top/leisuretimedock/animationcore}/mixin/animation/client/MixinPlayerAnimationFactoryHolder.java (93%) rename src/main/resources/{sccore.mixins.json => animcore.mixins.json} (66%) diff --git a/LICENSE.AC b/LICENSE.AC new file mode 100644 index 0000000..0ad25db --- /dev/null +++ b/LICENSE.AC @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/README.md b/README.md index ae39c01..2861c17 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# SnowyCrescentCore +# AnimationCore ### Project Introduction diff --git a/build.gradle b/build.gradle index f9ef6dc..c87bdd5 100644 --- a/build.gradle +++ b/build.gradle @@ -238,14 +238,6 @@ publishing { password = System.getenv('LTDNexusPassword') ?: '' } } - maven { - name = 'MafuyuNexus' - url = 'https://maven.sighs.cc/repository/maven-releases/' - credentials { - username = System.getenv('MafuyuNexusUsername') ?: '' - password = System.getenv('MafuyuNexusPassword') ?: '' - } - } } } diff --git a/gradle.properties b/gradle.properties index a54dbb9..7ff6869 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,12 +9,12 @@ loader_version_range=[47,) mapping_channel=parchment mapping_version=2023.09.03-1.20.1 -mod_id=sccore -mod_name=SnowyCrescentCore +mod_id=animcore +mod_name=AnimationCore mod_license=GNU AGPL 3.0 -mod_version=1.20.1-0.1.9 -mod_group_id=com.linearpast -mod_authors=LostInLinearPast -mod_description=A lib about capability and player animator. +mod_version=1.20.1-26H1 +mod_group_id=top.leisuiretimedock.animationcore +mod_authors=LostInLinearPast,R3944Realms +mod_description=A lib about player animator(modified by R3944Realms). mod_credits= -mod_url=https://github.com/Linearpast/SnowyCrescentCore +mod_url= diff --git a/out/production/resources/pack.mcmeta b/out/production/resources/pack.mcmeta index 8e5eb33..a7f10ab 100644 --- a/out/production/resources/pack.mcmeta +++ b/out/production/resources/pack.mcmeta @@ -1,6 +1,6 @@ { "pack": { - "description": "SnowyCrescentCore resources", + "description": "AnimationCore resources", "pack_format": 15 } } diff --git a/out/production/resources/sccore.mixins.json b/out/production/resources/sccore.mixins.json index 79ee70e..64dc502 100644 --- a/out/production/resources/sccore.mixins.json +++ b/out/production/resources/sccore.mixins.json @@ -1,10 +1,10 @@ { "required": true, "minVersion": "0.8", - "package": "com.linearpast.sccore.mixin", + "package": "top.leisuretimedock.animationcore.mixin", "compatibilityLevel": "JAVA_8", "refmap": "sccore.refmap.json", - "plugin": "com.linearpast.sccore.mixin.SCCoreMixinPlugin", + "plugin": "top.leisuretimedock.animationcore.mixin.SCCoreMixinPlugin", "mixins": [ "animation.MixinEntity", "animation.client.MixinPlayerAnimationFactoryHolder" diff --git a/settings.gradle b/settings.gradle index 57bdc40..8b2fa8d 100644 --- a/settings.gradle +++ b/settings.gradle @@ -13,4 +13,4 @@ plugins { id 'org.gradle.toolchains.foojay-resolver-convention' version '0.7.0' } -rootProject.name = 'SnowyCrescentCore' +rootProject.name = 'AnimationCore' diff --git a/src/generated/resources/.cache/2a65ee2815744be1ef1ffdae1c9a37f2a9cbe2ac b/src/generated/resources/.cache/2a65ee2815744be1ef1ffdae1c9a37f2a9cbe2ac index 509b57e..cda856c 100644 --- a/src/generated/resources/.cache/2a65ee2815744be1ef1ffdae1c9a37f2a9cbe2ac +++ b/src/generated/resources/.cache/2a65ee2815744be1ef1ffdae1c9a37f2a9cbe2ac @@ -1,2 +1,2 @@ -// 1.20.1 2026-01-12T12:57:53.3841242 Languages: zh_cn -5a0677ff9ef6fd59ce316b70b9e796c12aa2ca3a assets/sccore/lang/zh_cn.json +// 1.20.1 2026-01-13T10:48:06.5809965 Languages: zh_cn +28620aef6acf68c887244c604393f326e8d7a2ef assets/animcore/lang/zh_cn.json diff --git a/src/generated/resources/.cache/61acbbbaada2083c247adc1ae9d8e917cd10f737 b/src/generated/resources/.cache/61acbbbaada2083c247adc1ae9d8e917cd10f737 deleted file mode 100644 index 1823da1..0000000 --- a/src/generated/resources/.cache/61acbbbaada2083c247adc1ae9d8e917cd10f737 +++ /dev/null @@ -1,3 +0,0 @@ -// 1.20.1 2026-01-12T13:25:00.4308564 Animations: sccore -784975521a546e0773d97b6cd53e6b38e45e6241 data/sccore/scc_animations/waltz_gentleman.anim.json -8f8fb0ecd48254b9fddacec6decffe8f9de56e23 data/sccore/scc_animations/waltz_lady.anim.json diff --git a/src/generated/resources/.cache/7f03ba6e657d7cfe0009cfdf678b3b794c6aaf37 b/src/generated/resources/.cache/7f03ba6e657d7cfe0009cfdf678b3b794c6aaf37 new file mode 100644 index 0000000..fcdaac7 --- /dev/null +++ b/src/generated/resources/.cache/7f03ba6e657d7cfe0009cfdf678b3b794c6aaf37 @@ -0,0 +1,2 @@ +// 1.20.1 2026-01-13T10:48:06.5779981 Animation Layer Data: animcore +643d9b82415b5fbac109dcfb4476752f16363326 data/animcore/ac_animations/animation.layer.json diff --git a/src/generated/resources/.cache/8d4a9f2e2cfb72704a9beb2c8fd13d8c15f78bd2 b/src/generated/resources/.cache/8d4a9f2e2cfb72704a9beb2c8fd13d8c15f78bd2 new file mode 100644 index 0000000..48e07bf --- /dev/null +++ b/src/generated/resources/.cache/8d4a9f2e2cfb72704a9beb2c8fd13d8c15f78bd2 @@ -0,0 +1,3 @@ +// 1.20.1 2026-01-13T10:48:06.5819961 Animations: animcore +730671616cc7fa1e8763c64f8cdcf5ce981583d2 data/animcore/ac_animations/waltz_gentleman.anim.json +ea25ceb6798cd833d1b613517e5016df989b4d40 data/animcore/ac_animations/waltz_lady.anim.json diff --git a/src/generated/resources/.cache/c622617f6fabf890a00b9275cd5f643584a8a2c8 b/src/generated/resources/.cache/c622617f6fabf890a00b9275cd5f643584a8a2c8 index 84bebb2..d6126d0 100644 --- a/src/generated/resources/.cache/c622617f6fabf890a00b9275cd5f643584a8a2c8 +++ b/src/generated/resources/.cache/c622617f6fabf890a00b9275cd5f643584a8a2c8 @@ -1,2 +1,2 @@ -// 1.20.1 2026-01-12T12:57:53.3876407 Languages: en_us -cb12ddd7129449cbee2282fc61d9d50dc514d62a assets/sccore/lang/en_us.json +// 1.20.1 2026-01-13T10:48:06.5829971 Languages: en_us +12951874f3a152154b6a388d367095c1bb30d2b3 assets/animcore/lang/en_us.json diff --git a/src/generated/resources/.cache/e2498d4cca70fa6756057cb576783dab07d8a759 b/src/generated/resources/.cache/e2498d4cca70fa6756057cb576783dab07d8a759 deleted file mode 100644 index 228d991..0000000 --- a/src/generated/resources/.cache/e2498d4cca70fa6756057cb576783dab07d8a759 +++ /dev/null @@ -1,2 +0,0 @@ -// 1.20.1 2026-01-12T13:25:00.4276551 Animation Layer Data: sccore -183c6a30f08de7f1a086b30b922164ba302e7ad2 data/sccore/scc_animations/animation.layer.json diff --git a/src/generated/resources/assets/animcore/lang/en_us.json b/src/generated/resources/assets/animcore/lang/en_us.json new file mode 100644 index 0000000..806122c --- /dev/null +++ b/src/generated/resources/assets/animcore/lang/en_us.json @@ -0,0 +1,32 @@ +{ + "translation.animcore.command.animation.accept_apply_success": "%s has accepted the application of %s.", + "translation.animcore.command.animation.accept_invite_success": "Invitation accepted.", + "translation.animcore.command.animation.accept_message_click": "Click here to accept.", + "translation.animcore.command.animation.accept_request_success": "Request accepted.", + "translation.animcore.command.animation.animation_cooldown": "You cannot perform this operation: Cooling down (%s second(s)).", + "translation.animcore.command.animation.animation_expire": "You cannot perform this operation: It has expired.", + "translation.animcore.command.animation.animation_json_path": "%s", + "translation.animcore.command.animation.animation_operation_cancelled": "Exception: Operation cancelled.", + "translation.animcore.command.animation.animation_operation_unsupported": "Error: Unsupported operation.", + "translation.animcore.command.animation.animation_out_range": "You cannot perform this operation: The distance is not within %s blocks.", + "translation.animcore.command.animation.animation_resource_not_found": "Error: Resource not found, please check if there are any errors in the resource or operation : %s", + "translation.animcore.command.animation.animation_to_json": "The animation %s has been stored in the path on %s:", + "translation.animcore.command.animation.applied_join_message": "%S§b§l Apply for §r to join your animation. ", + "translation.animcore.command.animation.apply_join_message": "Application sent.", + "translation.animcore.command.animation.apply_success": "%s has accepted your animation application.", + "translation.animcore.command.animation.clear_animations": "Animation cleared.", + "translation.animcore.command.animation.command_run_fail": "Command run fail.", + "translation.animcore.command.animation.command_run_success": "Command run success.", + "translation.animcore.command.animation.invite_message": "Invitation sent.", + "translation.animcore.command.animation.invite_success": "%s has accepted your animation invitation.", + "translation.animcore.command.animation.invited_message": "%s§c§l invites§r you to animation: %s. ", + "translation.animcore.command.animation.list_animation_resource": "The %2$s on %1$s has : %s", + "translation.animcore.command.animation.play_animation_fail": "Fail to play animation with: %s", + "translation.animcore.command.animation.play_animation_success": "Successfully played animation on %s player(s).", + "translation.animcore.command.animation.refresh_animations": "Animation refreshed.", + "translation.animcore.command.animation.remove_animation_fail": "Fail to remove animation with: %s", + "translation.animcore.command.animation.remove_animation_success": "Successfully removed animation on %s player(s).", + "translation.animcore.command.animation.request_message": "Request sent.", + "translation.animcore.command.animation.request_success": "%s has accepted your animation request.", + "translation.animcore.command.animation.requested_message": "%s§d§l requests§r you to animation: %s. " +} \ No newline at end of file diff --git a/src/generated/resources/assets/animcore/lang/zh_cn.json b/src/generated/resources/assets/animcore/lang/zh_cn.json new file mode 100644 index 0000000..8bb8f92 --- /dev/null +++ b/src/generated/resources/assets/animcore/lang/zh_cn.json @@ -0,0 +1,32 @@ +{ + "translation.animcore.command.animation.accept_apply_success": "%s 接受了 %s 的申请。", + "translation.animcore.command.animation.accept_invite_success": "已接受邀请。", + "translation.animcore.command.animation.accept_message_click": "单击此处同意。", + "translation.animcore.command.animation.accept_request_success": "已接受请求。", + "translation.animcore.command.animation.animation_cooldown": "你不能执行该操作: 冷却中(%s秒)。", + "translation.animcore.command.animation.animation_expire": "你不能执行该操作: 已过期。", + "translation.animcore.command.animation.animation_json_path": "%s", + "translation.animcore.command.animation.animation_operation_cancelled": "异常: 操作被取消。", + "translation.animcore.command.animation.animation_operation_unsupported": "错误: 不支持这样做。", + "translation.animcore.command.animation.animation_out_range": "你不能执行该操作: 距离不在%s格以内。", + "translation.animcore.command.animation.animation_resource_not_found": "错误: 资源未找到,请检查资源或操作是否有误: %s", + "translation.animcore.command.animation.animation_to_json": "动画%s已经存储到%s路径:", + "translation.animcore.command.animation.applied_join_message": "%s§b§l 申请§r加入动画。", + "translation.animcore.command.animation.apply_join_message": "已发送申请。", + "translation.animcore.command.animation.apply_success": "%s 接受了你的动画申请。", + "translation.animcore.command.animation.clear_animations": "动画已清除。", + "translation.animcore.command.animation.command_run_fail": "命令执行失败。", + "translation.animcore.command.animation.command_run_success": "命令执行成功。", + "translation.animcore.command.animation.invite_message": "已发送邀请。", + "translation.animcore.command.animation.invite_success": "%s 接受了你的动画邀请。", + "translation.animcore.command.animation.invited_message": "%s§c§l 邀请§r你进行动画:%s。", + "translation.animcore.command.animation.list_animation_resource": "%s侧的%s有:%s", + "translation.animcore.command.animation.play_animation_fail": "在这些玩家上播放动画失败:%s", + "translation.animcore.command.animation.play_animation_success": "在%s个玩家上播放动画成功。", + "translation.animcore.command.animation.refresh_animations": "动画同步状态已刷新。", + "translation.animcore.command.animation.remove_animation_fail": "在这些玩家上移除动画失败:%s", + "translation.animcore.command.animation.remove_animation_success": "在%s个玩家上移除动画成功。", + "translation.animcore.command.animation.request_message": "已发送请求。", + "translation.animcore.command.animation.request_success": "%s 接受了你的动画请求。", + "translation.animcore.command.animation.requested_message": "%s§d§l 请求§r你进行动画:%s。" +} \ No newline at end of file diff --git a/src/generated/resources/assets/sccore/lang/en_us.json b/src/generated/resources/assets/sccore/lang/en_us.json deleted file mode 100644 index fe8cfe7..0000000 --- a/src/generated/resources/assets/sccore/lang/en_us.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "translation.sccore.command.animation.accept_apply_success": "%s has accepted the application of %s.", - "translation.sccore.command.animation.accept_invite_success": "Invitation accepted.", - "translation.sccore.command.animation.accept_message_click": "Click here to accept.", - "translation.sccore.command.animation.accept_request_success": "Request accepted.", - "translation.sccore.command.animation.animation_cooldown": "You cannot perform this operation: Cooling down (%s second(s)).", - "translation.sccore.command.animation.animation_expire": "You cannot perform this operation: It has expired.", - "translation.sccore.command.animation.animation_json_path": "%s", - "translation.sccore.command.animation.animation_operation_cancelled": "Exception: Operation cancelled.", - "translation.sccore.command.animation.animation_operation_unsupported": "Error: Unsupported operation.", - "translation.sccore.command.animation.animation_out_range": "You cannot perform this operation: The distance is not within %s blocks.", - "translation.sccore.command.animation.animation_resource_not_found": "Error: Resource not found, please check if there are any errors in the resource or operation : %s", - "translation.sccore.command.animation.animation_to_json": "The animation %s has been stored in the path on %s:", - "translation.sccore.command.animation.applied_join_message": "%S§b§l Apply for §r to join your animation. ", - "translation.sccore.command.animation.apply_join_message": "Application sent.", - "translation.sccore.command.animation.apply_success": "%s has accepted your animation application.", - "translation.sccore.command.animation.clear_animations": "Animation cleared.", - "translation.sccore.command.animation.command_run_fail": "Command run fail.", - "translation.sccore.command.animation.command_run_success": "Command run success.", - "translation.sccore.command.animation.invite_message": "Invitation sent.", - "translation.sccore.command.animation.invite_success": "%s has accepted your animation invitation.", - "translation.sccore.command.animation.invited_message": "%s§c§l invites§r you to animation: %s. ", - "translation.sccore.command.animation.list_animation_resource": "The %2$s on %1$s has : %s", - "translation.sccore.command.animation.play_animation_fail": "Fail to play animation with: %s", - "translation.sccore.command.animation.play_animation_success": "Successfully played animation on %s player(s).", - "translation.sccore.command.animation.refresh_animations": "Animation refreshed.", - "translation.sccore.command.animation.remove_animation_fail": "Fail to remove animation with: %s", - "translation.sccore.command.animation.remove_animation_success": "Successfully removed animation on %s player(s).", - "translation.sccore.command.animation.request_message": "Request sent.", - "translation.sccore.command.animation.request_success": "%s has accepted your animation request.", - "translation.sccore.command.animation.requested_message": "%s§d§l requests§r you to animation: %s. " -} \ No newline at end of file diff --git a/src/generated/resources/assets/sccore/lang/zh_cn.json b/src/generated/resources/assets/sccore/lang/zh_cn.json deleted file mode 100644 index f2238d8..0000000 --- a/src/generated/resources/assets/sccore/lang/zh_cn.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "translation.sccore.command.animation.accept_apply_success": "%s 接受了 %s 的申请。", - "translation.sccore.command.animation.accept_invite_success": "已接受邀请。", - "translation.sccore.command.animation.accept_message_click": "单击此处同意。", - "translation.sccore.command.animation.accept_request_success": "已接受请求。", - "translation.sccore.command.animation.animation_cooldown": "你不能执行该操作: 冷却中(%s秒)。", - "translation.sccore.command.animation.animation_expire": "你不能执行该操作: 已过期。", - "translation.sccore.command.animation.animation_json_path": "%s", - "translation.sccore.command.animation.animation_operation_cancelled": "异常: 操作被取消。", - "translation.sccore.command.animation.animation_operation_unsupported": "错误: 不支持这样做。", - "translation.sccore.command.animation.animation_out_range": "你不能执行该操作: 距离不在%s格以内。", - "translation.sccore.command.animation.animation_resource_not_found": "错误: 资源未找到,请检查资源或操作是否有误: %s", - "translation.sccore.command.animation.animation_to_json": "动画%s已经存储到%s路径:", - "translation.sccore.command.animation.applied_join_message": "%s§b§l 申请§r加入动画。", - "translation.sccore.command.animation.apply_join_message": "已发送申请。", - "translation.sccore.command.animation.apply_success": "%s 接受了你的动画申请。", - "translation.sccore.command.animation.clear_animations": "动画已清除。", - "translation.sccore.command.animation.command_run_fail": "命令执行失败。", - "translation.sccore.command.animation.command_run_success": "命令执行成功。", - "translation.sccore.command.animation.invite_message": "已发送邀请。", - "translation.sccore.command.animation.invite_success": "%s 接受了你的动画邀请。", - "translation.sccore.command.animation.invited_message": "%s§c§l 邀请§r你进行动画:%s。", - "translation.sccore.command.animation.list_animation_resource": "%s侧的%s有:%s", - "translation.sccore.command.animation.play_animation_fail": "在这些玩家上播放动画失败:%s", - "translation.sccore.command.animation.play_animation_success": "在%s个玩家上播放动画成功。", - "translation.sccore.command.animation.refresh_animations": "动画同步状态已刷新。", - "translation.sccore.command.animation.remove_animation_fail": "在这些玩家上移除动画失败:%s", - "translation.sccore.command.animation.remove_animation_success": "在%s个玩家上移除动画成功。", - "translation.sccore.command.animation.request_message": "已发送请求。", - "translation.sccore.command.animation.request_success": "%s 接受了你的动画请求。", - "translation.sccore.command.animation.requested_message": "%s§d§l 请求§r你进行动画:%s。" -} \ No newline at end of file diff --git a/src/generated/resources/data/animcore/ac_animations/animation.layer.json b/src/generated/resources/data/animcore/ac_animations/animation.layer.json new file mode 100644 index 0000000..9344877 --- /dev/null +++ b/src/generated/resources/data/animcore/ac_animations/animation.layer.json @@ -0,0 +1,6 @@ +[ + { + "key": "animcore:normal_layers", + "priority": 42 + } +] \ No newline at end of file diff --git a/src/generated/resources/data/sccore/scc_animations/waltz_gentleman.anim.json b/src/generated/resources/data/animcore/ac_animations/waltz_gentleman.anim.json similarity index 83% rename from src/generated/resources/data/sccore/scc_animations/waltz_gentleman.anim.json rename to src/generated/resources/data/animcore/ac_animations/waltz_gentleman.anim.json index 674a278..9caeb0c 100644 --- a/src/generated/resources/data/sccore/scc_animations/waltz_gentleman.anim.json +++ b/src/generated/resources/data/animcore/ac_animations/waltz_gentleman.anim.json @@ -6,12 +6,12 @@ "z": 1.0 }, "heightModifier": 1.0, - "key": "sccore:waltz_gentleman", + "key": "animcore:waltz_gentleman", "name": "Waltz-Gentleman", "priority": 0, "withRide": { "componentsAnimation": [ - "sccore:waltz_lady" + "animcore:waltz_lady" ], "existTick": 0, "offset": { diff --git a/src/generated/resources/data/sccore/scc_animations/waltz_lady.anim.json b/src/generated/resources/data/animcore/ac_animations/waltz_lady.anim.json similarity index 80% rename from src/generated/resources/data/sccore/scc_animations/waltz_lady.anim.json rename to src/generated/resources/data/animcore/ac_animations/waltz_lady.anim.json index 4e7aadd..7dc0c2b 100644 --- a/src/generated/resources/data/sccore/scc_animations/waltz_lady.anim.json +++ b/src/generated/resources/data/animcore/ac_animations/waltz_lady.anim.json @@ -1,12 +1,12 @@ { "camYaw": 180.0, "heightModifier": 1.0, - "key": "sccore:waltz_lady", + "key": "animcore:waltz_lady", "name": "Waltz-Lady", "priority": 0, "withRide": { "componentsAnimation": [ - "sccore:waltz_gentleman" + "animcore:waltz_gentleman" ], "existTick": 0, "offset": { diff --git a/src/generated/resources/data/sccore/scc_animations/animation.layer.json b/src/generated/resources/data/sccore/scc_animations/animation.layer.json deleted file mode 100644 index a081382..0000000 --- a/src/generated/resources/data/sccore/scc_animations/animation.layer.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "key": "sccore:normal_layers", - "priority": 42 - } -] \ No newline at end of file diff --git a/src/main/java/com/linearpast/sccore/animation/event/server/ResourceReloadListener.java b/src/main/java/com/linearpast/sccore/animation/event/server/ResourceReloadListener.java deleted file mode 100644 index 82c570e..0000000 --- a/src/main/java/com/linearpast/sccore/animation/event/server/ResourceReloadListener.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.linearpast.sccore.animation.event.server; - -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.animation.register.AnimationRegistry; -import net.minecraftforge.api.distmarker.Dist; -import net.minecraftforge.event.AddReloadListenerEvent; -import net.minecraftforge.eventbus.api.SubscribeEvent; -import net.minecraftforge.fml.common.Mod; - -@Mod.EventBusSubscriber(modid = SnowyCrescentCore.MODID, value = Dist.DEDICATED_SERVER, bus = Mod.EventBusSubscriber.Bus.MOD) -public class ResourceReloadListener { - @SubscribeEvent - public static void init (AddReloadListenerEvent event) { - event.addListener(AnimationRegistry.AnimationDataManager.INSTANCE); - event.addListener(AnimationRegistry.LayerDataManager.INSTANCE); - } -} diff --git a/src/main/java/com/linearpast/sccore/core/datagen/provider/ModAnimationLayerProvider.java b/src/main/java/com/linearpast/sccore/core/datagen/provider/ModAnimationLayerProvider.java deleted file mode 100644 index c2e6357..0000000 --- a/src/main/java/com/linearpast/sccore/core/datagen/provider/ModAnimationLayerProvider.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.linearpast.sccore.core.datagen.provider; - -import com.linearpast.sccore.SnowyCrescentCore; - -import com.linearpast.sccore.animation.data.util.SCCAnimationLayerProvider; -import com.linearpast.sccore.example.animation.ModAnimation; -import net.minecraft.data.DataGenerator; - -public class ModAnimationLayerProvider extends SCCAnimationLayerProvider { - public ModAnimationLayerProvider(DataGenerator generator) { - super(generator, SnowyCrescentCore.MODID); - } - - - @Override - protected LayerBuilder createLayerData() { - return LayerBuilder.create() - .addCustomLayer(ModAnimation.normalLayers, 42); - } -} diff --git a/src/main/java/com/linearpast/sccore/SnowyCrescentCore.java b/src/main/java/top/leisuretimedock/animationcore/AnimationCore.java similarity index 58% rename from src/main/java/com/linearpast/sccore/SnowyCrescentCore.java rename to src/main/java/top/leisuretimedock/animationcore/AnimationCore.java index ec6f8ca..cb0909f 100644 --- a/src/main/java/com/linearpast/sccore/SnowyCrescentCore.java +++ b/src/main/java/top/leisuretimedock/animationcore/AnimationCore.java @@ -1,13 +1,13 @@ -package com.linearpast.sccore; +package top.leisuretimedock.animationcore; -import com.linearpast.sccore.animation.service.IAnimationService; -import com.linearpast.sccore.capability.CapabilityUtils; -import com.linearpast.sccore.core.ModChannel; -import com.linearpast.sccore.core.ModCommands; -import com.linearpast.sccore.core.configs.ModConfigs; -import com.linearpast.sccore.example.animation.ModAnimation; -import com.linearpast.sccore.example.capability.ModCapability; +import top.leisuretimedock.animationcore.animation.service.IAnimationService; +import top.leisuretimedock.animationcore.capability.CapabilityUtils; +import top.leisuretimedock.animationcore.core.ModChannel; +import top.leisuretimedock.animationcore.core.ModCommands; +import top.leisuretimedock.animationcore.core.configs.ModConfigs; +import top.leisuretimedock.animationcore.example.animation.ModAnimation; +import top.leisuretimedock.animationcore.example.capability.ModCapability; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.fml.ModLoadingContext; @@ -19,13 +19,13 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@Mod(SnowyCrescentCore.MODID) -public class SnowyCrescentCore { - public static final Logger log = LoggerFactory.getLogger(SnowyCrescentCore.class); - public static final String MODID = "sccore"; - public static final String ENABLE_EXAMPLES_PROPERTY_KEY = "sccore.enable_examples"; +@Mod(AnimationCore.MOD_ID) +public class AnimationCore { + public static final Logger log = LoggerFactory.getLogger(AnimationCore.class); + public static final String MOD_ID = "animcore"; + public static final String ENABLE_EXAMPLES_PROPERTY_KEY = "animcore.enable_examples"; - public SnowyCrescentCore() { + public AnimationCore() { ModLoadingContext modLoadingContext = ModLoadingContext.get(); modLoadingContext.registerConfig(ModConfig.Type.SERVER, ModConfigs.Server.SPEC); diff --git a/src/main/java/com/linearpast/sccore/animation/AnimationApi.java b/src/main/java/top/leisuretimedock/animationcore/animation/AnimationApi.java similarity index 69% rename from src/main/java/com/linearpast/sccore/animation/AnimationApi.java rename to src/main/java/top/leisuretimedock/animationcore/animation/AnimationApi.java index d7d17ea..1939f7c 100644 --- a/src/main/java/com/linearpast/sccore/animation/AnimationApi.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/AnimationApi.java @@ -1,9 +1,9 @@ -package com.linearpast.sccore.animation; +package top.leisuretimedock.animationcore.animation; -import com.linearpast.sccore.animation.helper.AnimationDataHelper; -import com.linearpast.sccore.animation.helper.AnimationHelper; -import com.linearpast.sccore.animation.helper.AnimationJsonHelper; -import com.linearpast.sccore.animation.helper.AnimationServiceGetterHelper; +import top.leisuretimedock.animationcore.animation.helper.AnimationDataHelper; +import top.leisuretimedock.animationcore.animation.helper.AnimationHelper; +import top.leisuretimedock.animationcore.animation.helper.AnimationJsonHelper; +import top.leisuretimedock.animationcore.animation.helper.AnimationServiceGetterHelper; import net.minecraft.resources.ResourceLocation; import net.minecraft.server.MinecraftServer; import net.minecraft.world.entity.player.Player; diff --git a/src/main/java/com/linearpast/sccore/animation/capability/AnimationDataCapability.java b/src/main/java/top/leisuretimedock/animationcore/animation/capability/AnimationDataCapability.java similarity index 88% rename from src/main/java/com/linearpast/sccore/animation/capability/AnimationDataCapability.java rename to src/main/java/top/leisuretimedock/animationcore/animation/capability/AnimationDataCapability.java index f2e2381..035761f 100644 --- a/src/main/java/com/linearpast/sccore/animation/capability/AnimationDataCapability.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/capability/AnimationDataCapability.java @@ -1,14 +1,14 @@ -package com.linearpast.sccore.animation.capability; +package top.leisuretimedock.animationcore.animation.capability; -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.animation.capability.inter.IAnimationCapability; -import com.linearpast.sccore.animation.network.toclient.AnimationCapabilityPacket; -import com.linearpast.sccore.animation.register.AnimationRegistry; -import com.linearpast.sccore.animation.service.AnimationService; -import com.linearpast.sccore.capability.CapabilityUtils; -import com.linearpast.sccore.capability.data.ICapabilitySync; -import com.linearpast.sccore.capability.data.player.SimplePlayerCapabilitySync; -import com.linearpast.sccore.capability.network.SimpleCapabilityPacket; +import top.leisuretimedock.animationcore.AnimationCore; +import top.leisuretimedock.animationcore.animation.capability.inter.IAnimationCapability; +import top.leisuretimedock.animationcore.animation.network.toclient.AnimationCapabilityPacket; +import top.leisuretimedock.animationcore.animation.register.AnimationRegistry; +import top.leisuretimedock.animationcore.animation.service.AnimationService; +import top.leisuretimedock.animationcore.capability.CapabilityUtils; +import top.leisuretimedock.animationcore.capability.data.ICapabilitySync; +import top.leisuretimedock.animationcore.capability.data.player.SimplePlayerCapabilitySync; +import top.leisuretimedock.animationcore.capability.network.SimpleCapabilityPacket; import net.minecraft.nbt.CompoundTag; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.entity.player.Player; @@ -21,7 +21,7 @@ import java.util.Objects; import java.util.Optional; public class AnimationDataCapability extends SimplePlayerCapabilitySync implements IAnimationCapability { - public static final ResourceLocation key = new ResourceLocation(SnowyCrescentCore.MODID, "animation_data"); + public static final ResourceLocation key = new ResourceLocation(AnimationCore.MOD_ID, "animation_data"); public static final String AnimMap = "AnimMap"; public static final String RideAnimLayer = "RideAnimLayer"; diff --git a/src/main/java/com/linearpast/sccore/animation/capability/RawAnimationDataCapability.java b/src/main/java/top/leisuretimedock/animationcore/animation/capability/RawAnimationDataCapability.java similarity index 82% rename from src/main/java/com/linearpast/sccore/animation/capability/RawAnimationDataCapability.java rename to src/main/java/top/leisuretimedock/animationcore/animation/capability/RawAnimationDataCapability.java index fc4330d..d056787 100644 --- a/src/main/java/com/linearpast/sccore/animation/capability/RawAnimationDataCapability.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/capability/RawAnimationDataCapability.java @@ -1,12 +1,12 @@ -package com.linearpast.sccore.animation.capability; +package top.leisuretimedock.animationcore.animation.capability; -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.animation.network.toclient.RawAnimationCapabilityPacket; -import com.linearpast.sccore.animation.register.AnimationRegistry; -import com.linearpast.sccore.capability.CapabilityUtils; -import com.linearpast.sccore.capability.data.ICapabilitySync; -import com.linearpast.sccore.capability.data.player.SimplePlayerCapabilitySync; -import com.linearpast.sccore.capability.network.SimpleCapabilityPacket; +import top.leisuretimedock.animationcore.AnimationCore; +import top.leisuretimedock.animationcore.animation.network.toclient.RawAnimationCapabilityPacket; +import top.leisuretimedock.animationcore.animation.register.AnimationRegistry; +import top.leisuretimedock.animationcore.capability.CapabilityUtils; +import top.leisuretimedock.animationcore.capability.data.ICapabilitySync; +import top.leisuretimedock.animationcore.capability.data.player.SimplePlayerCapabilitySync; +import top.leisuretimedock.animationcore.capability.network.SimpleCapabilityPacket; import net.minecraft.nbt.CompoundTag; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.entity.player.Player; @@ -17,7 +17,7 @@ import java.util.Map; import java.util.Optional; public class RawAnimationDataCapability extends SimplePlayerCapabilitySync { - public static final ResourceLocation key = new ResourceLocation(SnowyCrescentCore.MODID, "raw_animation_data"); + public static final ResourceLocation key = new ResourceLocation(AnimationCore.MOD_ID, "raw_animation_data"); public static final String AnimMap = "AnimMap"; diff --git a/src/main/java/com/linearpast/sccore/animation/capability/inter/IAnimationCapability.java b/src/main/java/top/leisuretimedock/animationcore/animation/capability/inter/IAnimationCapability.java similarity index 85% rename from src/main/java/com/linearpast/sccore/animation/capability/inter/IAnimationCapability.java rename to src/main/java/top/leisuretimedock/animationcore/animation/capability/inter/IAnimationCapability.java index ab07430..6dd8dfe 100644 --- a/src/main/java/com/linearpast/sccore/animation/capability/inter/IAnimationCapability.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/capability/inter/IAnimationCapability.java @@ -1,6 +1,6 @@ -package com.linearpast.sccore.animation.capability.inter; +package top.leisuretimedock.animationcore.animation.capability.inter; -import com.linearpast.sccore.capability.data.ICapabilitySync; +import top.leisuretimedock.animationcore.capability.data.ICapabilitySync; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.entity.player.Player; import org.jetbrains.annotations.Nullable; diff --git a/src/main/java/com/linearpast/sccore/animation/command/ApplyCommand.java b/src/main/java/top/leisuretimedock/animationcore/animation/command/ApplyCommand.java similarity index 89% rename from src/main/java/com/linearpast/sccore/animation/command/ApplyCommand.java rename to src/main/java/top/leisuretimedock/animationcore/animation/command/ApplyCommand.java index 362d11c..6c4574c 100644 --- a/src/main/java/com/linearpast/sccore/animation/command/ApplyCommand.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/command/ApplyCommand.java @@ -1,11 +1,11 @@ -package com.linearpast.sccore.animation.command; +package top.leisuretimedock.animationcore.animation.command; -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.animation.AnimationApi; -import com.linearpast.sccore.animation.command.exception.ApiBackException; -import com.linearpast.sccore.animation.utils.ApiBack; -import com.linearpast.sccore.core.configs.ModConfigs; -import com.linearpast.sccore.core.datagen.ModLang; +import top.leisuretimedock.animationcore.AnimationCore; +import top.leisuretimedock.animationcore.animation.AnimationApi; +import top.leisuretimedock.animationcore.animation.command.exception.ApiBackException; +import top.leisuretimedock.animationcore.animation.utils.ApiBack; +import top.leisuretimedock.animationcore.core.configs.ModConfigs; +import top.leisuretimedock.animationcore.core.datagen.ModLang; import com.mojang.brigadier.builder.LiteralArgumentBuilder; import com.mojang.brigadier.context.CommandContext; import net.minecraft.ChatFormatting; @@ -54,7 +54,7 @@ public class ApplyCommand { //click event Style pStyle = Style.EMPTY.withBold(true).withColor(ChatFormatting.GREEN).withClickEvent( - new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/sccore anim apply accept " + player.getName().getString()) + new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/animationcore anim apply accept " + player.getName().getString()) ).withUnderlined(true); //send message to all participants @@ -76,7 +76,7 @@ public class ApplyCommand { source.sendFailure(Component.translatable( ModLang.TranslatableMessage.COMMAND_RUN_FAIL.getKey() ).withStyle(ChatFormatting.RED)); - SnowyCrescentCore.log.error(e.getMessage()); + AnimationCore.log.error(e.getMessage()); } return 0; } @@ -117,7 +117,7 @@ public class ApplyCommand { source.sendFailure(Component.translatable( ModLang.TranslatableMessage.COMMAND_RUN_FAIL.getKey() ).withStyle(ChatFormatting.RED)); - SnowyCrescentCore.log.error(e.getMessage()); + AnimationCore.log.error(e.getMessage()); return 0; } return 1; diff --git a/src/main/java/com/linearpast/sccore/animation/command/InviteCommand.java b/src/main/java/top/leisuretimedock/animationcore/animation/command/InviteCommand.java similarity index 86% rename from src/main/java/com/linearpast/sccore/animation/command/InviteCommand.java rename to src/main/java/top/leisuretimedock/animationcore/animation/command/InviteCommand.java index ed5a070..362a072 100644 --- a/src/main/java/com/linearpast/sccore/animation/command/InviteCommand.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/command/InviteCommand.java @@ -1,13 +1,13 @@ -package com.linearpast.sccore.animation.command; +package top.leisuretimedock.animationcore.animation.command; -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.animation.AnimationApi; -import com.linearpast.sccore.animation.command.argument.AnimationArgument; -import com.linearpast.sccore.animation.command.argument.AnimationLayerArgument; -import com.linearpast.sccore.animation.command.exception.ApiBackException; -import com.linearpast.sccore.animation.utils.ApiBack; -import com.linearpast.sccore.core.configs.ModConfigs; -import com.linearpast.sccore.core.datagen.ModLang; +import top.leisuretimedock.animationcore.AnimationCore; +import top.leisuretimedock.animationcore.animation.AnimationApi; +import top.leisuretimedock.animationcore.animation.command.argument.AnimationArgument; +import top.leisuretimedock.animationcore.animation.command.argument.AnimationLayerArgument; +import top.leisuretimedock.animationcore.animation.command.exception.ApiBackException; +import top.leisuretimedock.animationcore.animation.utils.ApiBack; +import top.leisuretimedock.animationcore.core.configs.ModConfigs; +import top.leisuretimedock.animationcore.core.datagen.ModLang; import com.mojang.brigadier.builder.LiteralArgumentBuilder; import com.mojang.brigadier.context.CommandContext; import net.minecraft.ChatFormatting; @@ -67,7 +67,7 @@ public class InviteCommand { //click event Style pStyle = Style.EMPTY.withBold(true).withColor(ChatFormatting.GREEN).withClickEvent( - new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/sccore anim invite accept " + player.getName().getString()) + new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/animationcore anim invite accept " + player.getName().getString()) ).withUnderlined(true); //send message for (ServerPlayer target : players) { @@ -89,7 +89,7 @@ public class InviteCommand { source.sendFailure(Component.translatable( ModLang.TranslatableMessage.COMMAND_RUN_FAIL.getKey() ).withStyle(ChatFormatting.RED)); - SnowyCrescentCore.log.error(e.getMessage()); + AnimationCore.log.error(e.getMessage()); } return 0; } @@ -120,7 +120,7 @@ public class InviteCommand { source.sendFailure(Component.translatable( ModLang.TranslatableMessage.COMMAND_RUN_FAIL.getKey() ).withStyle(ChatFormatting.RED)); - SnowyCrescentCore.log.error(e.getMessage()); + AnimationCore.log.error(e.getMessage()); } return 0; } diff --git a/src/main/java/com/linearpast/sccore/animation/command/JsonCommand.java b/src/main/java/top/leisuretimedock/animationcore/animation/command/JsonCommand.java similarity index 92% rename from src/main/java/com/linearpast/sccore/animation/command/JsonCommand.java rename to src/main/java/top/leisuretimedock/animationcore/animation/command/JsonCommand.java index 57efea7..2a8372e 100644 --- a/src/main/java/com/linearpast/sccore/animation/command/JsonCommand.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/command/JsonCommand.java @@ -1,8 +1,8 @@ -package com.linearpast.sccore.animation.command; +package top.leisuretimedock.animationcore.animation.command; -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.animation.helper.AnimationJsonHelper; -import com.linearpast.sccore.core.datagen.ModLang; +import top.leisuretimedock.animationcore.AnimationCore; +import top.leisuretimedock.animationcore.animation.helper.AnimationJsonHelper; +import top.leisuretimedock.animationcore.core.datagen.ModLang; import com.mojang.brigadier.arguments.BoolArgumentType; import com.mojang.brigadier.builder.LiteralArgumentBuilder; import com.mojang.brigadier.context.CommandContext; @@ -65,7 +65,7 @@ public class JsonCommand { source.sendFailure(Component.translatable( ModLang.TranslatableMessage.COMMAND_RUN_FAIL.getKey() ).withStyle(ChatFormatting.RED)); - SnowyCrescentCore.log.error(e.getMessage()); + AnimationCore.log.error(e.getMessage()); return 0; } return 1; @@ -80,7 +80,7 @@ public class JsonCommand { source.sendFailure(Component.translatable( ModLang.TranslatableMessage.COMMAND_RUN_FAIL.getKey() ).withStyle(ChatFormatting.RED)); - SnowyCrescentCore.log.error(e.getMessage()); + AnimationCore.log.error(e.getMessage()); return 0; } return 1; @@ -108,7 +108,7 @@ public class JsonCommand { source.sendFailure(Component.translatable( ModLang.TranslatableMessage.COMMAND_RUN_FAIL.getKey() ).withStyle(ChatFormatting.RED)); - SnowyCrescentCore.log.error(e.getMessage()); + AnimationCore.log.error(e.getMessage()); return 0; } return 1; diff --git a/src/main/java/com/linearpast/sccore/animation/command/ListServerCommand.java b/src/main/java/top/leisuretimedock/animationcore/animation/command/ListServerCommand.java similarity index 93% rename from src/main/java/com/linearpast/sccore/animation/command/ListServerCommand.java rename to src/main/java/top/leisuretimedock/animationcore/animation/command/ListServerCommand.java index 3a7908f..b692f2e 100644 --- a/src/main/java/com/linearpast/sccore/animation/command/ListServerCommand.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/command/ListServerCommand.java @@ -1,7 +1,7 @@ -package com.linearpast.sccore.animation.command; +package top.leisuretimedock.animationcore.animation.command; -import com.linearpast.sccore.animation.register.AnimationRegistry; -import com.linearpast.sccore.core.datagen.ModLang; +import top.leisuretimedock.animationcore.animation.register.AnimationRegistry; +import top.leisuretimedock.animationcore.core.datagen.ModLang; import com.mojang.brigadier.builder.LiteralArgumentBuilder; import com.mojang.brigadier.context.CommandContext; import net.minecraft.ChatFormatting; diff --git a/src/main/java/com/linearpast/sccore/animation/command/PlayCommand.java b/src/main/java/top/leisuretimedock/animationcore/animation/command/PlayCommand.java similarity index 90% rename from src/main/java/com/linearpast/sccore/animation/command/PlayCommand.java rename to src/main/java/top/leisuretimedock/animationcore/animation/command/PlayCommand.java index 1b2ab85..7c1b1d0 100644 --- a/src/main/java/com/linearpast/sccore/animation/command/PlayCommand.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/command/PlayCommand.java @@ -1,19 +1,19 @@ -package com.linearpast.sccore.animation.command; +package top.leisuretimedock.animationcore.animation.command; -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.animation.AnimationApi; -import com.linearpast.sccore.animation.command.argument.AnimationArgument; -import com.linearpast.sccore.animation.command.argument.AnimationLayerArgument; -import com.linearpast.sccore.animation.command.exception.ApiBackException; -import com.linearpast.sccore.animation.data.AnimationData; -import com.linearpast.sccore.animation.helper.AnimationHelper; -import com.linearpast.sccore.animation.helper.AnimationServiceGetterHelper; -import com.linearpast.sccore.animation.network.toclient.AnimationClearPacket; -import com.linearpast.sccore.animation.service.IAnimationService; -import com.linearpast.sccore.animation.service.RawAnimationService; -import com.linearpast.sccore.animation.utils.ApiBack; -import com.linearpast.sccore.core.ModChannel; -import com.linearpast.sccore.core.datagen.ModLang; +import top.leisuretimedock.animationcore.AnimationCore; +import top.leisuretimedock.animationcore.animation.AnimationApi; +import top.leisuretimedock.animationcore.animation.command.argument.AnimationArgument; +import top.leisuretimedock.animationcore.animation.command.argument.AnimationLayerArgument; +import top.leisuretimedock.animationcore.animation.command.exception.ApiBackException; +import top.leisuretimedock.animationcore.animation.data.AnimationData; +import top.leisuretimedock.animationcore.animation.helper.AnimationHelper; +import top.leisuretimedock.animationcore.animation.helper.AnimationServiceGetterHelper; +import top.leisuretimedock.animationcore.animation.network.toclient.AnimationClearPacket; +import top.leisuretimedock.animationcore.animation.service.IAnimationService; +import top.leisuretimedock.animationcore.animation.service.RawAnimationService; +import top.leisuretimedock.animationcore.animation.utils.ApiBack; +import top.leisuretimedock.animationcore.core.ModChannel; +import top.leisuretimedock.animationcore.core.datagen.ModLang; import com.mojang.brigadier.arguments.BoolArgumentType; import com.mojang.brigadier.builder.LiteralArgumentBuilder; import com.mojang.brigadier.context.CommandContext; @@ -155,7 +155,7 @@ public class PlayCommand { source.sendFailure(Component.translatable( ModLang.TranslatableMessage.COMMAND_RUN_FAIL.getKey() ).withStyle(ChatFormatting.RED)); - SnowyCrescentCore.log.error(e.getMessage()); + AnimationCore.log.error(e.getMessage()); } return 0; @@ -215,7 +215,7 @@ public class PlayCommand { source.sendFailure(Component.translatable( ModLang.TranslatableMessage.COMMAND_RUN_FAIL.getKey() ).withStyle(ChatFormatting.RED)); - SnowyCrescentCore.log.error(e.getMessage()); + AnimationCore.log.error(e.getMessage()); } return 0; } @@ -240,7 +240,7 @@ public class PlayCommand { source.sendFailure(Component.translatable( ModLang.TranslatableMessage.COMMAND_RUN_FAIL.getKey() ).withStyle(ChatFormatting.RED)); - SnowyCrescentCore.log.error(e.getMessage()); + AnimationCore.log.error(e.getMessage()); } return 0; diff --git a/src/main/java/com/linearpast/sccore/animation/command/RequestCommand.java b/src/main/java/top/leisuretimedock/animationcore/animation/command/RequestCommand.java similarity index 86% rename from src/main/java/com/linearpast/sccore/animation/command/RequestCommand.java rename to src/main/java/top/leisuretimedock/animationcore/animation/command/RequestCommand.java index 777bd20..efa27fc 100644 --- a/src/main/java/com/linearpast/sccore/animation/command/RequestCommand.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/command/RequestCommand.java @@ -1,13 +1,13 @@ -package com.linearpast.sccore.animation.command; +package top.leisuretimedock.animationcore.animation.command; -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.animation.AnimationApi; -import com.linearpast.sccore.animation.command.argument.AnimationArgument; -import com.linearpast.sccore.animation.command.argument.AnimationLayerArgument; -import com.linearpast.sccore.animation.command.exception.ApiBackException; -import com.linearpast.sccore.animation.utils.ApiBack; -import com.linearpast.sccore.core.configs.ModConfigs; -import com.linearpast.sccore.core.datagen.ModLang; +import top.leisuretimedock.animationcore.AnimationCore; +import top.leisuretimedock.animationcore.animation.AnimationApi; +import top.leisuretimedock.animationcore.animation.command.argument.AnimationArgument; +import top.leisuretimedock.animationcore.animation.command.argument.AnimationLayerArgument; +import top.leisuretimedock.animationcore.animation.command.exception.ApiBackException; +import top.leisuretimedock.animationcore.animation.utils.ApiBack; +import top.leisuretimedock.animationcore.core.configs.ModConfigs; +import top.leisuretimedock.animationcore.core.datagen.ModLang; import com.mojang.brigadier.arguments.BoolArgumentType; import com.mojang.brigadier.builder.LiteralArgumentBuilder; import com.mojang.brigadier.context.CommandContext; @@ -68,7 +68,7 @@ public class RequestCommand { //click event Style pStyle = Style.EMPTY.withBold(true).withColor(ChatFormatting.GREEN).withClickEvent( - new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/sccore anim request acceptRequest " + player.getName().getString()) + new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/animationcore anim request acceptRequest " + player.getName().getString()) ).withUnderlined(true); //send message @@ -89,7 +89,7 @@ public class RequestCommand { source.sendFailure(Component.translatable( ModLang.TranslatableMessage.COMMAND_RUN_FAIL.getKey() ).withStyle(ChatFormatting.RED)); - SnowyCrescentCore.log.error(e.getMessage()); + AnimationCore.log.error(e.getMessage()); } return 0; } @@ -119,7 +119,7 @@ public class RequestCommand { source.sendFailure(Component.translatable( ModLang.TranslatableMessage.COMMAND_RUN_FAIL.getKey() ).withStyle(ChatFormatting.RED)); - SnowyCrescentCore.log.error(e.getMessage()); + AnimationCore.log.error(e.getMessage()); } return 0; } diff --git a/src/main/java/com/linearpast/sccore/animation/command/argument/AnimationArgument.java b/src/main/java/top/leisuretimedock/animationcore/animation/command/argument/AnimationArgument.java similarity index 92% rename from src/main/java/com/linearpast/sccore/animation/command/argument/AnimationArgument.java rename to src/main/java/top/leisuretimedock/animationcore/animation/command/argument/AnimationArgument.java index 31f7b5f..2e57f37 100644 --- a/src/main/java/com/linearpast/sccore/animation/command/argument/AnimationArgument.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/command/argument/AnimationArgument.java @@ -1,8 +1,8 @@ -package com.linearpast.sccore.animation.command.argument; +package top.leisuretimedock.animationcore.animation.command.argument; -import com.linearpast.sccore.animation.data.GenericAnimationData; -import com.linearpast.sccore.animation.register.AnimationRegistry; -import com.linearpast.sccore.animation.register.RawAnimationRegistry; +import top.leisuretimedock.animationcore.animation.data.GenericAnimationData; +import top.leisuretimedock.animationcore.animation.register.AnimationRegistry; +import top.leisuretimedock.animationcore.animation.register.RawAnimationRegistry; import com.mojang.brigadier.StringReader; import com.mojang.brigadier.arguments.ArgumentType; import com.mojang.brigadier.context.CommandContext; diff --git a/src/main/java/com/linearpast/sccore/animation/command/argument/AnimationLayerArgument.java b/src/main/java/top/leisuretimedock/animationcore/animation/command/argument/AnimationLayerArgument.java similarity index 94% rename from src/main/java/com/linearpast/sccore/animation/command/argument/AnimationLayerArgument.java rename to src/main/java/top/leisuretimedock/animationcore/animation/command/argument/AnimationLayerArgument.java index eb213bd..01fcc06 100644 --- a/src/main/java/com/linearpast/sccore/animation/command/argument/AnimationLayerArgument.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/command/argument/AnimationLayerArgument.java @@ -1,6 +1,6 @@ -package com.linearpast.sccore.animation.command.argument; +package top.leisuretimedock.animationcore.animation.command.argument; -import com.linearpast.sccore.animation.register.AnimationRegistry; +import top.leisuretimedock.animationcore.animation.register.AnimationRegistry; import com.mojang.brigadier.StringReader; import com.mojang.brigadier.arguments.ArgumentType; import com.mojang.brigadier.context.CommandContext; diff --git a/src/main/java/com/linearpast/sccore/animation/command/client/ListClientCommand.java b/src/main/java/top/leisuretimedock/animationcore/animation/command/client/ListClientCommand.java similarity index 82% rename from src/main/java/com/linearpast/sccore/animation/command/client/ListClientCommand.java rename to src/main/java/top/leisuretimedock/animationcore/animation/command/client/ListClientCommand.java index 5fc9bba..835ba25 100644 --- a/src/main/java/com/linearpast/sccore/animation/command/client/ListClientCommand.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/command/client/ListClientCommand.java @@ -1,8 +1,8 @@ -package com.linearpast.sccore.animation.command.client; +package top.leisuretimedock.animationcore.animation.command.client; -import com.linearpast.sccore.animation.command.ListServerCommand; -import com.linearpast.sccore.animation.register.RawAnimationRegistry; -import com.linearpast.sccore.core.datagen.ModLang; +import top.leisuretimedock.animationcore.animation.command.ListServerCommand; +import top.leisuretimedock.animationcore.animation.register.RawAnimationRegistry; +import top.leisuretimedock.animationcore.core.datagen.ModLang; import com.mojang.brigadier.builder.LiteralArgumentBuilder; import com.mojang.brigadier.context.CommandContext; import net.minecraft.commands.CommandSourceStack; diff --git a/src/main/java/com/linearpast/sccore/animation/command/client/RefreshCommand.java b/src/main/java/top/leisuretimedock/animationcore/animation/command/client/RefreshCommand.java similarity index 85% rename from src/main/java/com/linearpast/sccore/animation/command/client/RefreshCommand.java rename to src/main/java/top/leisuretimedock/animationcore/animation/command/client/RefreshCommand.java index aee5180..7ffbb13 100644 --- a/src/main/java/com/linearpast/sccore/animation/command/client/RefreshCommand.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/command/client/RefreshCommand.java @@ -1,9 +1,9 @@ -package com.linearpast.sccore.animation.command.client; +package top.leisuretimedock.animationcore.animation.command.client; -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.animation.AnimationApi; -import com.linearpast.sccore.animation.register.AnimationRegistry; -import com.linearpast.sccore.core.datagen.ModLang; +import top.leisuretimedock.animationcore.AnimationCore; +import top.leisuretimedock.animationcore.animation.AnimationApi; +import top.leisuretimedock.animationcore.animation.register.AnimationRegistry; +import top.leisuretimedock.animationcore.core.datagen.ModLang; import com.mojang.brigadier.builder.LiteralArgumentBuilder; import com.mojang.brigadier.context.CommandContext; import dev.kosmx.playerAnim.api.layered.IAnimation; @@ -50,7 +50,7 @@ public class RefreshCommand { source.sendFailure(Component.translatable( ModLang.TranslatableMessage.COMMAND_RUN_FAIL.getKey() ).withStyle(ChatFormatting.RED)); - SnowyCrescentCore.log.error(e.getMessage()); + AnimationCore.log.error(e.getMessage()); return 0; } return 1; diff --git a/src/main/java/com/linearpast/sccore/animation/command/exception/ApiBackException.java b/src/main/java/top/leisuretimedock/animationcore/animation/command/exception/ApiBackException.java similarity index 89% rename from src/main/java/com/linearpast/sccore/animation/command/exception/ApiBackException.java rename to src/main/java/top/leisuretimedock/animationcore/animation/command/exception/ApiBackException.java index 8fb60eb..6b0bee7 100644 --- a/src/main/java/com/linearpast/sccore/animation/command/exception/ApiBackException.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/command/exception/ApiBackException.java @@ -1,7 +1,7 @@ -package com.linearpast.sccore.animation.command.exception; +package top.leisuretimedock.animationcore.animation.command.exception; -import com.linearpast.sccore.animation.utils.ApiBack; -import com.linearpast.sccore.core.datagen.ModLang; +import top.leisuretimedock.animationcore.animation.utils.ApiBack; +import top.leisuretimedock.animationcore.core.datagen.ModLang; import net.minecraft.network.chat.Component; import net.minecraft.network.chat.MutableComponent; diff --git a/src/main/java/com/linearpast/sccore/animation/command/exception/CommandComponentException.java b/src/main/java/top/leisuretimedock/animationcore/animation/command/exception/CommandComponentException.java similarity index 88% rename from src/main/java/com/linearpast/sccore/animation/command/exception/CommandComponentException.java rename to src/main/java/top/leisuretimedock/animationcore/animation/command/exception/CommandComponentException.java index e2d0e68..d62c9fe 100644 --- a/src/main/java/com/linearpast/sccore/animation/command/exception/CommandComponentException.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/command/exception/CommandComponentException.java @@ -1,6 +1,6 @@ -package com.linearpast.sccore.animation.command.exception; +package top.leisuretimedock.animationcore.animation.command.exception; -import com.linearpast.sccore.core.datagen.ModLang; +import top.leisuretimedock.animationcore.core.datagen.ModLang; import net.minecraft.ChatFormatting; import net.minecraft.network.chat.Component; import net.minecraft.network.chat.Style; diff --git a/src/main/java/com/linearpast/sccore/animation/data/AnimationData.java b/src/main/java/top/leisuretimedock/animationcore/animation/data/AnimationData.java similarity index 99% rename from src/main/java/com/linearpast/sccore/animation/data/AnimationData.java rename to src/main/java/top/leisuretimedock/animationcore/animation/data/AnimationData.java index 4878ffd..ac53351 100644 --- a/src/main/java/com/linearpast/sccore/animation/data/AnimationData.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/data/AnimationData.java @@ -1,4 +1,4 @@ -package com.linearpast.sccore.animation.data; +package top.leisuretimedock.animationcore.animation.data; import dev.kosmx.playerAnim.core.data.KeyframeAnimation; import dev.kosmx.playerAnim.minecraftApi.PlayerAnimationRegistry; diff --git a/src/main/java/com/linearpast/sccore/animation/data/GenericAnimationData.java b/src/main/java/top/leisuretimedock/animationcore/animation/data/GenericAnimationData.java similarity index 96% rename from src/main/java/com/linearpast/sccore/animation/data/GenericAnimationData.java rename to src/main/java/top/leisuretimedock/animationcore/animation/data/GenericAnimationData.java index f658b78..611bfd8 100644 --- a/src/main/java/com/linearpast/sccore/animation/data/GenericAnimationData.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/data/GenericAnimationData.java @@ -1,4 +1,4 @@ -package com.linearpast.sccore.animation.data; +package top.leisuretimedock.animationcore.animation.data; import net.minecraft.resources.ResourceLocation; import org.jetbrains.annotations.Nullable; diff --git a/src/main/java/com/linearpast/sccore/animation/data/RawAnimationData.java b/src/main/java/top/leisuretimedock/animationcore/animation/data/RawAnimationData.java similarity index 88% rename from src/main/java/com/linearpast/sccore/animation/data/RawAnimationData.java rename to src/main/java/top/leisuretimedock/animationcore/animation/data/RawAnimationData.java index 1019875..5308ab0 100644 --- a/src/main/java/com/linearpast/sccore/animation/data/RawAnimationData.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/data/RawAnimationData.java @@ -1,4 +1,4 @@ -package com.linearpast.sccore.animation.data; +package top.leisuretimedock.animationcore.animation.data; import net.minecraft.resources.ResourceLocation; diff --git a/src/main/java/com/linearpast/sccore/animation/data/Ride.java b/src/main/java/top/leisuretimedock/animationcore/animation/data/Ride.java similarity index 96% rename from src/main/java/com/linearpast/sccore/animation/data/Ride.java rename to src/main/java/top/leisuretimedock/animationcore/animation/data/Ride.java index ad7538e..6510563 100644 --- a/src/main/java/com/linearpast/sccore/animation/data/Ride.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/data/Ride.java @@ -1,4 +1,4 @@ -package com.linearpast.sccore.animation.data; +package top.leisuretimedock.animationcore.animation.data; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.phys.Vec3; diff --git a/src/main/java/com/linearpast/sccore/animation/data/util/SCCAnimationLayerProvider.java b/src/main/java/top/leisuretimedock/animationcore/animation/data/util/ACAnimationLayerProvider.java similarity index 92% rename from src/main/java/com/linearpast/sccore/animation/data/util/SCCAnimationLayerProvider.java rename to src/main/java/top/leisuretimedock/animationcore/animation/data/util/ACAnimationLayerProvider.java index 0d5636e..52ce19d 100644 --- a/src/main/java/com/linearpast/sccore/animation/data/util/SCCAnimationLayerProvider.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/data/util/ACAnimationLayerProvider.java @@ -1,8 +1,8 @@ -package com.linearpast.sccore.animation.data.util; +package top.leisuretimedock.animationcore.animation.data.util; import com.google.gson.JsonArray; import com.google.gson.JsonObject; -import com.linearpast.sccore.SnowyCrescentCore; +import top.leisuretimedock.animationcore.AnimationCore; import net.minecraft.data.CachedOutput; import net.minecraft.data.DataGenerator; import net.minecraft.data.DataProvider; @@ -13,7 +13,7 @@ import java.nio.file.Path; import java.util.*; import java.util.concurrent.CompletableFuture; -public abstract class SCCAnimationLayerProvider implements DataProvider { +public abstract class ACAnimationLayerProvider implements DataProvider { private final DataGenerator generator; private final String modId; @@ -24,7 +24,7 @@ public abstract class SCCAnimationLayerProvider implements DataProvider { * @param generator Data generator instance * @param modId Mod ID for namespace */ - public SCCAnimationLayerProvider(DataGenerator generator, String modId) { + public ACAnimationLayerProvider(DataGenerator generator, String modId) { this.generator = generator; this.modId = modId; } @@ -43,7 +43,7 @@ public abstract class SCCAnimationLayerProvider implements DataProvider { try { return DataProvider.saveStable(output, jsonArray, outputPath); } catch (Exception e) { - SnowyCrescentCore.log.error("Failed to save animation layer data", e); + AnimationCore.log.error("Failed to save animation layer data", e); return CompletableFuture.failedFuture(e); } } @@ -76,7 +76,7 @@ public abstract class SCCAnimationLayerProvider implements DataProvider { return generator.getPackOutput().getOutputFolder() .resolve("data") .resolve(modId) - .resolve("scc_animations") + .resolve("ac_animations") .resolve("animation.layer.json"); } diff --git a/src/main/java/com/linearpast/sccore/animation/data/util/SCCAnimationProvider.java b/src/main/java/top/leisuretimedock/animationcore/animation/data/util/ACAnimationProvider.java similarity index 93% rename from src/main/java/com/linearpast/sccore/animation/data/util/SCCAnimationProvider.java rename to src/main/java/top/leisuretimedock/animationcore/animation/data/util/ACAnimationProvider.java index 39b2de8..0e3d34c 100644 --- a/src/main/java/com/linearpast/sccore/animation/data/util/SCCAnimationProvider.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/data/util/ACAnimationProvider.java @@ -10,11 +10,11 @@ * */ -package com.linearpast.sccore.animation.data.util; +package top.leisuretimedock.animationcore.animation.data.util; import com.google.gson.JsonObject; -import com.linearpast.sccore.animation.data.GenericAnimationData; -import com.linearpast.sccore.animation.data.Ride; +import top.leisuretimedock.animationcore.animation.data.GenericAnimationData; +import top.leisuretimedock.animationcore.animation.data.Ride; import net.minecraft.data.CachedOutput; import net.minecraft.data.DataGenerator; import net.minecraft.data.DataProvider; @@ -32,7 +32,7 @@ import java.util.function.Consumer; * Abstract base class for animation data providers * Handles generation of animation JSON files in the scc_animations directory */ -public abstract class SCCAnimationProvider implements DataProvider { +public abstract class ACAnimationProvider implements DataProvider { private final DataGenerator generator; private final String modId; @@ -42,7 +42,7 @@ public abstract class SCCAnimationProvider implements DataProvider { * @param generator Data generator instance * @param modId Mod ID for namespace */ - protected SCCAnimationProvider(DataGenerator generator, String modId) { + protected ACAnimationProvider(DataGenerator generator, String modId) { this.generator = generator; this.modId = modId; } @@ -58,7 +58,7 @@ public abstract class SCCAnimationProvider implements DataProvider { Path path = outputFolder .resolve("data") .resolve(key.getNamespace()) - .resolve("scc_animations") + .resolve("ac_animations") .resolve(key.getPath() + ".anim.json"); JsonObject json = convertToJson(animation); diff --git a/src/main/java/com/linearpast/sccore/animation/data/util/AnimJson.java b/src/main/java/top/leisuretimedock/animationcore/animation/data/util/AnimJson.java similarity index 96% rename from src/main/java/com/linearpast/sccore/animation/data/util/AnimJson.java rename to src/main/java/top/leisuretimedock/animationcore/animation/data/util/AnimJson.java index bc9f70d..56357cc 100644 --- a/src/main/java/com/linearpast/sccore/animation/data/util/AnimJson.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/data/util/AnimJson.java @@ -1,10 +1,10 @@ -package com.linearpast.sccore.animation.data.util; +package top.leisuretimedock.animationcore.animation.data.util; import com.google.gson.*; -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.animation.data.AnimationData; -import com.linearpast.sccore.animation.data.GenericAnimationData; -import com.linearpast.sccore.animation.data.Ride; +import top.leisuretimedock.animationcore.AnimationCore; +import top.leisuretimedock.animationcore.animation.data.AnimationData; +import top.leisuretimedock.animationcore.animation.data.GenericAnimationData; +import top.leisuretimedock.animationcore.animation.data.Ride; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.phys.Vec3; import org.jetbrains.annotations.Nullable; @@ -130,7 +130,7 @@ public class AnimJson { } public static Path syntaxExample(Path directory) throws Exception { - ResourceLocation exampleLocation = new ResourceLocation(SnowyCrescentCore.MODID, Writer.example); + ResourceLocation exampleLocation = new ResourceLocation(AnimationCore.MOD_ID, Writer.example); GenericAnimationData example = (GenericAnimationData) GenericAnimationData .create(exampleLocation) .withName(Writer.example) diff --git a/src/main/java/com/linearpast/sccore/animation/data/util/AnimLayerJson.java b/src/main/java/top/leisuretimedock/animationcore/animation/data/util/AnimLayerJson.java similarity index 97% rename from src/main/java/com/linearpast/sccore/animation/data/util/AnimLayerJson.java rename to src/main/java/top/leisuretimedock/animationcore/animation/data/util/AnimLayerJson.java index 7123c8b..ee5c7b6 100644 --- a/src/main/java/com/linearpast/sccore/animation/data/util/AnimLayerJson.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/data/util/AnimLayerJson.java @@ -1,7 +1,7 @@ -package com.linearpast.sccore.animation.data.util; +package top.leisuretimedock.animationcore.animation.data.util; import com.google.gson.*; -import com.linearpast.sccore.animation.register.AnimationRegistry; +import top.leisuretimedock.animationcore.animation.register.AnimationRegistry; import net.minecraft.resources.ResourceLocation; import java.io.*; diff --git a/src/main/java/com/linearpast/sccore/animation/data/util/RawAnimJson.java b/src/main/java/top/leisuretimedock/animationcore/animation/data/util/RawAnimJson.java similarity index 94% rename from src/main/java/com/linearpast/sccore/animation/data/util/RawAnimJson.java rename to src/main/java/top/leisuretimedock/animationcore/animation/data/util/RawAnimJson.java index 68825f5..377f268 100644 --- a/src/main/java/com/linearpast/sccore/animation/data/util/RawAnimJson.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/data/util/RawAnimJson.java @@ -1,9 +1,9 @@ -package com.linearpast.sccore.animation.data.util; +package top.leisuretimedock.animationcore.animation.data.util; import com.google.gson.*; -import com.linearpast.sccore.animation.data.AnimationData; -import com.linearpast.sccore.animation.data.RawAnimationData; -import com.linearpast.sccore.animation.data.Ride; +import top.leisuretimedock.animationcore.animation.data.AnimationData; +import top.leisuretimedock.animationcore.animation.data.RawAnimationData; +import top.leisuretimedock.animationcore.animation.data.Ride; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.phys.Vec3; diff --git a/src/main/java/com/linearpast/sccore/animation/entity/AnimationRideEntity.java b/src/main/java/top/leisuretimedock/animationcore/animation/entity/AnimationRideEntity.java similarity index 93% rename from src/main/java/com/linearpast/sccore/animation/entity/AnimationRideEntity.java rename to src/main/java/top/leisuretimedock/animationcore/animation/entity/AnimationRideEntity.java index 7068a7a..c21bd87 100644 --- a/src/main/java/com/linearpast/sccore/animation/entity/AnimationRideEntity.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/entity/AnimationRideEntity.java @@ -1,11 +1,11 @@ -package com.linearpast.sccore.animation.entity; +package top.leisuretimedock.animationcore.animation.entity; -import com.linearpast.sccore.animation.capability.AnimationDataCapability; -import com.linearpast.sccore.animation.capability.inter.IAnimationCapability; -import com.linearpast.sccore.animation.data.AnimationData; -import com.linearpast.sccore.animation.data.Ride; -import com.linearpast.sccore.animation.register.AnimationEntities; -import com.linearpast.sccore.animation.service.AnimationService; +import top.leisuretimedock.animationcore.animation.capability.AnimationDataCapability; +import top.leisuretimedock.animationcore.animation.capability.inter.IAnimationCapability; +import top.leisuretimedock.animationcore.animation.data.AnimationData; +import top.leisuretimedock.animationcore.animation.data.Ride; +import top.leisuretimedock.animationcore.animation.register.AnimationEntities; +import top.leisuretimedock.animationcore.animation.service.AnimationService; import net.minecraft.core.BlockPos; import net.minecraft.nbt.CompoundTag; import net.minecraft.network.protocol.Packet; diff --git a/src/main/java/com/linearpast/sccore/animation/entity/renderer/AnimationRideRenderer.java b/src/main/java/top/leisuretimedock/animationcore/animation/entity/renderer/AnimationRideRenderer.java similarity index 90% rename from src/main/java/com/linearpast/sccore/animation/entity/renderer/AnimationRideRenderer.java rename to src/main/java/top/leisuretimedock/animationcore/animation/entity/renderer/AnimationRideRenderer.java index 7355404..6e8d040 100644 --- a/src/main/java/com/linearpast/sccore/animation/entity/renderer/AnimationRideRenderer.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/entity/renderer/AnimationRideRenderer.java @@ -1,6 +1,6 @@ -package com.linearpast.sccore.animation.entity.renderer; +package top.leisuretimedock.animationcore.animation.entity.renderer; -import com.linearpast.sccore.animation.entity.AnimationRideEntity; +import top.leisuretimedock.animationcore.animation.entity.AnimationRideEntity; import com.mojang.blaze3d.vertex.PoseStack; import net.minecraft.client.renderer.MultiBufferSource; import net.minecraft.client.renderer.culling.Frustum; diff --git a/src/main/java/com/linearpast/sccore/animation/event/PlayerTickEvent.java b/src/main/java/top/leisuretimedock/animationcore/animation/event/PlayerTickEvent.java similarity index 79% rename from src/main/java/com/linearpast/sccore/animation/event/PlayerTickEvent.java rename to src/main/java/top/leisuretimedock/animationcore/animation/event/PlayerTickEvent.java index 315b9b5..2187961 100644 --- a/src/main/java/com/linearpast/sccore/animation/event/PlayerTickEvent.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/event/PlayerTickEvent.java @@ -1,7 +1,7 @@ -package com.linearpast.sccore.animation.event; +package top.leisuretimedock.animationcore.animation.event; -import com.linearpast.sccore.animation.capability.AnimationDataCapability; -import com.linearpast.sccore.animation.entity.AnimationRideEntity; +import top.leisuretimedock.animationcore.animation.capability.AnimationDataCapability; +import top.leisuretimedock.animationcore.animation.entity.AnimationRideEntity; import net.minecraft.world.entity.player.Player; import net.minecraftforge.event.TickEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; diff --git a/src/main/java/com/linearpast/sccore/animation/event/client/CameraModify.java b/src/main/java/top/leisuretimedock/animationcore/animation/event/client/CameraModify.java similarity index 92% rename from src/main/java/com/linearpast/sccore/animation/event/client/CameraModify.java rename to src/main/java/top/leisuretimedock/animationcore/animation/event/client/CameraModify.java index eac264b..44b45ef 100644 --- a/src/main/java/com/linearpast/sccore/animation/event/client/CameraModify.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/event/client/CameraModify.java @@ -1,10 +1,10 @@ -package com.linearpast.sccore.animation.event.client; +package top.leisuretimedock.animationcore.animation.event.client; -import com.linearpast.sccore.animation.capability.AnimationDataCapability; -import com.linearpast.sccore.animation.capability.inter.IAnimationCapability; -import com.linearpast.sccore.animation.data.AnimationData; -import com.linearpast.sccore.animation.data.RawAnimationData; -import com.linearpast.sccore.animation.utils.AnimationUtils; +import top.leisuretimedock.animationcore.animation.capability.AnimationDataCapability; +import top.leisuretimedock.animationcore.animation.capability.inter.IAnimationCapability; +import top.leisuretimedock.animationcore.animation.data.AnimationData; +import top.leisuretimedock.animationcore.animation.data.RawAnimationData; +import top.leisuretimedock.animationcore.animation.utils.AnimationUtils; import dev.kosmx.playerAnim.core.util.MathHelper; import net.minecraft.client.Camera; import net.minecraft.client.Minecraft; diff --git a/src/main/java/com/linearpast/sccore/animation/event/client/ClientPlayerEvent.java b/src/main/java/top/leisuretimedock/animationcore/animation/event/client/ClientPlayerEvent.java similarity index 91% rename from src/main/java/com/linearpast/sccore/animation/event/client/ClientPlayerEvent.java rename to src/main/java/top/leisuretimedock/animationcore/animation/event/client/ClientPlayerEvent.java index 3aaeff8..dafdfc9 100644 --- a/src/main/java/com/linearpast/sccore/animation/event/client/ClientPlayerEvent.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/event/client/ClientPlayerEvent.java @@ -1,6 +1,6 @@ -package com.linearpast.sccore.animation.event.client; +package top.leisuretimedock.animationcore.animation.event.client; -import com.linearpast.sccore.animation.AnimationApi; +import top.leisuretimedock.animationcore.animation.AnimationApi; import net.minecraft.client.player.AbstractClientPlayer; import net.minecraft.world.entity.player.Player; import net.minecraftforge.api.distmarker.Dist; diff --git a/src/main/java/com/linearpast/sccore/animation/event/client/EntityRendererRegisterEvent.java b/src/main/java/top/leisuretimedock/animationcore/animation/event/client/EntityRendererRegisterEvent.java similarity index 61% rename from src/main/java/com/linearpast/sccore/animation/event/client/EntityRendererRegisterEvent.java rename to src/main/java/top/leisuretimedock/animationcore/animation/event/client/EntityRendererRegisterEvent.java index e844309..7ddab8f 100644 --- a/src/main/java/com/linearpast/sccore/animation/event/client/EntityRendererRegisterEvent.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/event/client/EntityRendererRegisterEvent.java @@ -1,7 +1,7 @@ -package com.linearpast.sccore.animation.event.client; +package top.leisuretimedock.animationcore.animation.event.client; -import com.linearpast.sccore.animation.entity.renderer.AnimationRideRenderer; -import com.linearpast.sccore.animation.register.AnimationEntities; +import top.leisuretimedock.animationcore.animation.entity.renderer.AnimationRideRenderer; +import top.leisuretimedock.animationcore.animation.register.AnimationEntities; import net.minecraftforge.client.event.EntityRenderersEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; diff --git a/src/main/java/com/linearpast/sccore/animation/event/create/AnimationEvent.java b/src/main/java/top/leisuretimedock/animationcore/animation/event/create/AnimationEvent.java similarity index 95% rename from src/main/java/com/linearpast/sccore/animation/event/create/AnimationEvent.java rename to src/main/java/top/leisuretimedock/animationcore/animation/event/create/AnimationEvent.java index 65ea9b2..06e59ec 100644 --- a/src/main/java/com/linearpast/sccore/animation/event/create/AnimationEvent.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/event/create/AnimationEvent.java @@ -1,6 +1,6 @@ -package com.linearpast.sccore.animation.event.create; +package top.leisuretimedock.animationcore.animation.event.create; -import com.linearpast.sccore.animation.data.AnimationData; +import top.leisuretimedock.animationcore.animation.data.AnimationData; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.entity.player.Player; import net.minecraftforge.eventbus.api.Cancelable; diff --git a/src/main/java/com/linearpast/sccore/animation/event/create/AnimationRegisterEvent.java b/src/main/java/top/leisuretimedock/animationcore/animation/event/create/AnimationRegisterEvent.java similarity index 84% rename from src/main/java/com/linearpast/sccore/animation/event/create/AnimationRegisterEvent.java rename to src/main/java/top/leisuretimedock/animationcore/animation/event/create/AnimationRegisterEvent.java index 6d11eb6..3d0dc3b 100644 --- a/src/main/java/com/linearpast/sccore/animation/event/create/AnimationRegisterEvent.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/event/create/AnimationRegisterEvent.java @@ -1,8 +1,8 @@ -package com.linearpast.sccore.animation.event.create; +package top.leisuretimedock.animationcore.animation.event.create; -import com.linearpast.sccore.animation.data.GenericAnimationData; -import com.linearpast.sccore.animation.data.RawAnimationData; -import com.linearpast.sccore.animation.register.RawAnimationRegistry; +import top.leisuretimedock.animationcore.animation.data.GenericAnimationData; +import top.leisuretimedock.animationcore.animation.data.RawAnimationData; +import top.leisuretimedock.animationcore.animation.register.RawAnimationRegistry; import net.minecraft.resources.ResourceLocation; import net.minecraftforge.eventbus.api.Event; diff --git a/src/main/java/com/linearpast/sccore/animation/helper/AnimationDataHelper.java b/src/main/java/top/leisuretimedock/animationcore/animation/helper/AnimationDataHelper.java similarity index 83% rename from src/main/java/com/linearpast/sccore/animation/helper/AnimationDataHelper.java rename to src/main/java/top/leisuretimedock/animationcore/animation/helper/AnimationDataHelper.java index a131a8a..a449507 100644 --- a/src/main/java/com/linearpast/sccore/animation/helper/AnimationDataHelper.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/helper/AnimationDataHelper.java @@ -1,10 +1,10 @@ -package com.linearpast.sccore.animation.helper; +package top.leisuretimedock.animationcore.animation.helper; -import com.linearpast.sccore.animation.AnimationApi; -import com.linearpast.sccore.animation.data.AnimationData; -import com.linearpast.sccore.animation.register.AnimationRegistry; -import com.linearpast.sccore.animation.register.RawAnimationRegistry; -import com.linearpast.sccore.animation.service.IAnimationService; +import top.leisuretimedock.animationcore.animation.AnimationApi; +import top.leisuretimedock.animationcore.animation.data.AnimationData; +import top.leisuretimedock.animationcore.animation.register.AnimationRegistry; +import top.leisuretimedock.animationcore.animation.register.RawAnimationRegistry; +import top.leisuretimedock.animationcore.animation.service.IAnimationService; import net.minecraft.nbt.CompoundTag; import net.minecraft.resources.ResourceLocation; import net.minecraftforge.api.distmarker.Dist; diff --git a/src/main/java/com/linearpast/sccore/animation/helper/AnimationHelper.java b/src/main/java/top/leisuretimedock/animationcore/animation/helper/AnimationHelper.java similarity index 96% rename from src/main/java/com/linearpast/sccore/animation/helper/AnimationHelper.java rename to src/main/java/top/leisuretimedock/animationcore/animation/helper/AnimationHelper.java index 8737066..69cb525 100644 --- a/src/main/java/com/linearpast/sccore/animation/helper/AnimationHelper.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/helper/AnimationHelper.java @@ -1,10 +1,10 @@ -package com.linearpast.sccore.animation.helper; +package top.leisuretimedock.animationcore.animation.helper; -import com.linearpast.sccore.animation.AnimationApi; -import com.linearpast.sccore.animation.data.AnimationData; -import com.linearpast.sccore.animation.service.IAnimationService; -import com.linearpast.sccore.animation.utils.ApiBack; -import com.linearpast.sccore.core.IModLazyRun; +import top.leisuretimedock.animationcore.animation.AnimationApi; +import top.leisuretimedock.animationcore.animation.data.AnimationData; +import top.leisuretimedock.animationcore.animation.service.IAnimationService; +import top.leisuretimedock.animationcore.animation.utils.ApiBack; +import top.leisuretimedock.animationcore.core.IModLazyRun; import net.minecraft.client.Minecraft; import net.minecraft.client.multiplayer.ClientLevel; import net.minecraft.client.player.AbstractClientPlayer; diff --git a/src/main/java/com/linearpast/sccore/animation/helper/AnimationJsonHelper.java b/src/main/java/top/leisuretimedock/animationcore/animation/helper/AnimationJsonHelper.java similarity index 88% rename from src/main/java/com/linearpast/sccore/animation/helper/AnimationJsonHelper.java rename to src/main/java/top/leisuretimedock/animationcore/animation/helper/AnimationJsonHelper.java index b376391..be39e54 100644 --- a/src/main/java/com/linearpast/sccore/animation/helper/AnimationJsonHelper.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/helper/AnimationJsonHelper.java @@ -1,9 +1,9 @@ -package com.linearpast.sccore.animation.helper; +package top.leisuretimedock.animationcore.animation.helper; -import com.linearpast.sccore.animation.data.GenericAnimationData; -import com.linearpast.sccore.animation.data.util.AnimJson; -import com.linearpast.sccore.animation.data.util.AnimLayerJson; -import com.linearpast.sccore.animation.register.AnimationRegistry; +import top.leisuretimedock.animationcore.animation.data.GenericAnimationData; +import top.leisuretimedock.animationcore.animation.data.util.AnimJson; +import top.leisuretimedock.animationcore.animation.data.util.AnimLayerJson; +import top.leisuretimedock.animationcore.animation.register.AnimationRegistry; import net.minecraft.server.MinecraftServer; import net.minecraft.world.level.storage.LevelResource; import org.jetbrains.annotations.Nullable; diff --git a/src/main/java/com/linearpast/sccore/animation/helper/AnimationServiceGetterHelper.java b/src/main/java/top/leisuretimedock/animationcore/animation/helper/AnimationServiceGetterHelper.java similarity index 89% rename from src/main/java/com/linearpast/sccore/animation/helper/AnimationServiceGetterHelper.java rename to src/main/java/top/leisuretimedock/animationcore/animation/helper/AnimationServiceGetterHelper.java index 82c4b87..e303e6c 100644 --- a/src/main/java/com/linearpast/sccore/animation/helper/AnimationServiceGetterHelper.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/helper/AnimationServiceGetterHelper.java @@ -1,7 +1,7 @@ -package com.linearpast.sccore.animation.helper; +package top.leisuretimedock.animationcore.animation.helper; -import com.linearpast.sccore.animation.data.AnimationData; -import com.linearpast.sccore.animation.service.IAnimationService; +import top.leisuretimedock.animationcore.animation.data.AnimationData; +import top.leisuretimedock.animationcore.animation.service.IAnimationService; import net.minecraft.nbt.CompoundTag; import net.minecraft.resources.ResourceLocation; import org.jetbrains.annotations.NotNull; diff --git a/src/main/java/com/linearpast/sccore/animation/helper/IAnimationServiceGetter.java b/src/main/java/top/leisuretimedock/animationcore/animation/helper/IAnimationServiceGetter.java similarity index 69% rename from src/main/java/com/linearpast/sccore/animation/helper/IAnimationServiceGetter.java rename to src/main/java/top/leisuretimedock/animationcore/animation/helper/IAnimationServiceGetter.java index 333a8a9..aabed59 100644 --- a/src/main/java/com/linearpast/sccore/animation/helper/IAnimationServiceGetter.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/helper/IAnimationServiceGetter.java @@ -1,8 +1,8 @@ -package com.linearpast.sccore.animation.helper; +package top.leisuretimedock.animationcore.animation.helper; -import com.linearpast.sccore.animation.service.AnimationService; -import com.linearpast.sccore.animation.service.IAnimationService; -import com.linearpast.sccore.animation.service.RawAnimationService; +import top.leisuretimedock.animationcore.animation.service.AnimationService; +import top.leisuretimedock.animationcore.animation.service.IAnimationService; +import top.leisuretimedock.animationcore.animation.service.RawAnimationService; import org.jetbrains.annotations.Nullable; import java.util.LinkedHashSet; diff --git a/src/main/java/com/linearpast/sccore/animation/mixin/IMixinKeyframeAnimationPlayer.java b/src/main/java/top/leisuretimedock/animationcore/animation/mixin/IMixinKeyframeAnimationPlayer.java similarity index 78% rename from src/main/java/com/linearpast/sccore/animation/mixin/IMixinKeyframeAnimationPlayer.java rename to src/main/java/top/leisuretimedock/animationcore/animation/mixin/IMixinKeyframeAnimationPlayer.java index 6facf88..0adccde 100644 --- a/src/main/java/com/linearpast/sccore/animation/mixin/IMixinKeyframeAnimationPlayer.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/mixin/IMixinKeyframeAnimationPlayer.java @@ -1,4 +1,4 @@ -package com.linearpast.sccore.animation.mixin; +package top.leisuretimedock.animationcore.animation.mixin; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.OnlyIn; diff --git a/src/main/java/com/linearpast/sccore/animation/mixin/IMixinPlayerAnimationFactoryHolder.java b/src/main/java/top/leisuretimedock/animationcore/animation/mixin/IMixinPlayerAnimationFactoryHolder.java similarity index 86% rename from src/main/java/com/linearpast/sccore/animation/mixin/IMixinPlayerAnimationFactoryHolder.java rename to src/main/java/top/leisuretimedock/animationcore/animation/mixin/IMixinPlayerAnimationFactoryHolder.java index a62f1fc..ae99738 100644 --- a/src/main/java/com/linearpast/sccore/animation/mixin/IMixinPlayerAnimationFactoryHolder.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/mixin/IMixinPlayerAnimationFactoryHolder.java @@ -1,4 +1,4 @@ -package com.linearpast.sccore.animation.mixin; +package top.leisuretimedock.animationcore.animation.mixin; import dev.kosmx.playerAnim.api.layered.IAnimation; import net.minecraft.resources.ResourceLocation; diff --git a/src/main/java/com/linearpast/sccore/animation/network/ServiceGetterPacket.java b/src/main/java/top/leisuretimedock/animationcore/animation/network/ServiceGetterPacket.java similarity index 76% rename from src/main/java/com/linearpast/sccore/animation/network/ServiceGetterPacket.java rename to src/main/java/top/leisuretimedock/animationcore/animation/network/ServiceGetterPacket.java index 19b969f..645143f 100644 --- a/src/main/java/com/linearpast/sccore/animation/network/ServiceGetterPacket.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/network/ServiceGetterPacket.java @@ -1,9 +1,9 @@ -package com.linearpast.sccore.animation.network; +package top.leisuretimedock.animationcore.animation.network; -import com.linearpast.sccore.animation.helper.IAnimationServiceGetter; -import com.linearpast.sccore.animation.service.AnimationService; -import com.linearpast.sccore.animation.service.IAnimationService; -import com.linearpast.sccore.animation.service.RawAnimationService; +import top.leisuretimedock.animationcore.animation.helper.IAnimationServiceGetter; +import top.leisuretimedock.animationcore.animation.service.AnimationService; +import top.leisuretimedock.animationcore.animation.service.IAnimationService; +import top.leisuretimedock.animationcore.animation.service.RawAnimationService; import net.minecraft.nbt.CompoundTag; import net.minecraft.resources.ResourceLocation; import org.jetbrains.annotations.Nullable; diff --git a/src/main/java/com/linearpast/sccore/animation/network/toclient/AnimationCapabilityPacket.java b/src/main/java/top/leisuretimedock/animationcore/animation/network/toclient/AnimationCapabilityPacket.java similarity index 85% rename from src/main/java/com/linearpast/sccore/animation/network/toclient/AnimationCapabilityPacket.java rename to src/main/java/top/leisuretimedock/animationcore/animation/network/toclient/AnimationCapabilityPacket.java index 19feec8..6da9414 100644 --- a/src/main/java/com/linearpast/sccore/animation/network/toclient/AnimationCapabilityPacket.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/network/toclient/AnimationCapabilityPacket.java @@ -1,11 +1,11 @@ -package com.linearpast.sccore.animation.network.toclient; +package top.leisuretimedock.animationcore.animation.network.toclient; -import com.linearpast.sccore.animation.capability.AnimationDataCapability; -import com.linearpast.sccore.animation.capability.inter.IAnimationCapability; -import com.linearpast.sccore.animation.utils.AnimationUtils; -import com.linearpast.sccore.capability.data.ICapabilitySync; -import com.linearpast.sccore.capability.data.player.SimplePlayerCapabilitySync; -import com.linearpast.sccore.capability.network.SimpleCapabilityPacket; +import top.leisuretimedock.animationcore.animation.capability.AnimationDataCapability; +import top.leisuretimedock.animationcore.animation.capability.inter.IAnimationCapability; +import top.leisuretimedock.animationcore.animation.utils.AnimationUtils; +import top.leisuretimedock.animationcore.capability.data.ICapabilitySync; +import top.leisuretimedock.animationcore.capability.data.player.SimplePlayerCapabilitySync; +import top.leisuretimedock.animationcore.capability.network.SimpleCapabilityPacket; import net.minecraft.client.Minecraft; import net.minecraft.client.multiplayer.ClientLevel; import net.minecraft.client.player.AbstractClientPlayer; diff --git a/src/main/java/com/linearpast/sccore/animation/network/toclient/AnimationClearPacket.java b/src/main/java/top/leisuretimedock/animationcore/animation/network/toclient/AnimationClearPacket.java similarity index 87% rename from src/main/java/com/linearpast/sccore/animation/network/toclient/AnimationClearPacket.java rename to src/main/java/top/leisuretimedock/animationcore/animation/network/toclient/AnimationClearPacket.java index f3f03d7..9f10e4c 100644 --- a/src/main/java/com/linearpast/sccore/animation/network/toclient/AnimationClearPacket.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/network/toclient/AnimationClearPacket.java @@ -1,7 +1,7 @@ -package com.linearpast.sccore.animation.network.toclient; +package top.leisuretimedock.animationcore.animation.network.toclient; -import com.linearpast.sccore.animation.register.AnimationRegistry; -import com.linearpast.sccore.animation.utils.AnimationUtils; +import top.leisuretimedock.animationcore.animation.register.AnimationRegistry; +import top.leisuretimedock.animationcore.animation.utils.AnimationUtils; import net.minecraft.client.Minecraft; import net.minecraft.client.player.LocalPlayer; import net.minecraft.network.FriendlyByteBuf; diff --git a/src/main/java/com/linearpast/sccore/animation/network/toclient/AnimationClientStatusPacket.java b/src/main/java/top/leisuretimedock/animationcore/animation/network/toclient/AnimationClientStatusPacket.java similarity index 90% rename from src/main/java/com/linearpast/sccore/animation/network/toclient/AnimationClientStatusPacket.java rename to src/main/java/top/leisuretimedock/animationcore/animation/network/toclient/AnimationClientStatusPacket.java index b2832d5..96d875e 100644 --- a/src/main/java/com/linearpast/sccore/animation/network/toclient/AnimationClientStatusPacket.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/network/toclient/AnimationClientStatusPacket.java @@ -1,6 +1,6 @@ -package com.linearpast.sccore.animation.network.toclient; +package top.leisuretimedock.animationcore.animation.network.toclient; -import com.linearpast.sccore.animation.register.AnimationRegistry; +import top.leisuretimedock.animationcore.animation.register.AnimationRegistry; import net.minecraft.network.FriendlyByteBuf; import net.minecraftforge.network.NetworkEvent; import org.jetbrains.annotations.Nullable; diff --git a/src/main/java/com/linearpast/sccore/animation/network/toclient/AnimationJsonPacket.java b/src/main/java/top/leisuretimedock/animationcore/animation/network/toclient/AnimationJsonPacket.java similarity index 77% rename from src/main/java/com/linearpast/sccore/animation/network/toclient/AnimationJsonPacket.java rename to src/main/java/top/leisuretimedock/animationcore/animation/network/toclient/AnimationJsonPacket.java index 45dbdfe..1bd32cb 100644 --- a/src/main/java/com/linearpast/sccore/animation/network/toclient/AnimationJsonPacket.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/network/toclient/AnimationJsonPacket.java @@ -1,11 +1,11 @@ -package com.linearpast.sccore.animation.network.toclient; +package top.leisuretimedock.animationcore.animation.network.toclient; import com.google.gson.JsonElement; import com.google.gson.JsonParser; -import com.linearpast.sccore.animation.data.GenericAnimationData; -import com.linearpast.sccore.animation.data.util.AnimJson; -import com.linearpast.sccore.animation.data.util.AnimLayerJson; -import com.linearpast.sccore.animation.register.AnimationRegistry; +import top.leisuretimedock.animationcore.animation.data.GenericAnimationData; +import top.leisuretimedock.animationcore.animation.data.util.AnimJson; +import top.leisuretimedock.animationcore.animation.data.util.AnimLayerJson; +import top.leisuretimedock.animationcore.animation.register.AnimationRegistry; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.resources.ResourceLocation; import net.minecraftforge.network.NetworkEvent; diff --git a/src/main/java/com/linearpast/sccore/animation/network/toclient/RawAnimationCapabilityPacket.java b/src/main/java/top/leisuretimedock/animationcore/animation/network/toclient/RawAnimationCapabilityPacket.java similarity index 84% rename from src/main/java/com/linearpast/sccore/animation/network/toclient/RawAnimationCapabilityPacket.java rename to src/main/java/top/leisuretimedock/animationcore/animation/network/toclient/RawAnimationCapabilityPacket.java index de7364e..8269193 100644 --- a/src/main/java/com/linearpast/sccore/animation/network/toclient/RawAnimationCapabilityPacket.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/network/toclient/RawAnimationCapabilityPacket.java @@ -1,10 +1,10 @@ -package com.linearpast.sccore.animation.network.toclient; +package top.leisuretimedock.animationcore.animation.network.toclient; -import com.linearpast.sccore.animation.capability.RawAnimationDataCapability; -import com.linearpast.sccore.animation.utils.AnimationUtils; -import com.linearpast.sccore.capability.data.ICapabilitySync; -import com.linearpast.sccore.capability.data.player.SimplePlayerCapabilitySync; -import com.linearpast.sccore.capability.network.SimpleCapabilityPacket; +import top.leisuretimedock.animationcore.animation.capability.RawAnimationDataCapability; +import top.leisuretimedock.animationcore.animation.utils.AnimationUtils; +import top.leisuretimedock.animationcore.capability.data.ICapabilitySync; +import top.leisuretimedock.animationcore.capability.data.player.SimplePlayerCapabilitySync; +import top.leisuretimedock.animationcore.capability.network.SimpleCapabilityPacket; import net.minecraft.client.Minecraft; import net.minecraft.client.multiplayer.ClientLevel; import net.minecraft.client.player.AbstractClientPlayer; diff --git a/src/main/java/com/linearpast/sccore/animation/network/toclient/SyncAnimationPacket.java b/src/main/java/top/leisuretimedock/animationcore/animation/network/toclient/SyncAnimationPacket.java similarity index 87% rename from src/main/java/com/linearpast/sccore/animation/network/toclient/SyncAnimationPacket.java rename to src/main/java/top/leisuretimedock/animationcore/animation/network/toclient/SyncAnimationPacket.java index db1361a..f39bdc5 100644 --- a/src/main/java/com/linearpast/sccore/animation/network/toclient/SyncAnimationPacket.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/network/toclient/SyncAnimationPacket.java @@ -1,7 +1,7 @@ -package com.linearpast.sccore.animation.network.toclient; +package top.leisuretimedock.animationcore.animation.network.toclient; -import com.linearpast.sccore.animation.event.client.ClientPlayerEvent; -import com.linearpast.sccore.animation.utils.AnimationUtils; +import top.leisuretimedock.animationcore.animation.event.client.ClientPlayerEvent; +import top.leisuretimedock.animationcore.animation.utils.AnimationUtils; import net.minecraft.client.Minecraft; import net.minecraft.client.multiplayer.ClientLevel; import net.minecraft.client.player.AbstractClientPlayer; diff --git a/src/main/java/com/linearpast/sccore/animation/network/toserver/ApplyAnimationPacket.java b/src/main/java/top/leisuretimedock/animationcore/animation/network/toserver/ApplyAnimationPacket.java similarity index 86% rename from src/main/java/com/linearpast/sccore/animation/network/toserver/ApplyAnimationPacket.java rename to src/main/java/top/leisuretimedock/animationcore/animation/network/toserver/ApplyAnimationPacket.java index 024625d..95c67d2 100644 --- a/src/main/java/com/linearpast/sccore/animation/network/toserver/ApplyAnimationPacket.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/network/toserver/ApplyAnimationPacket.java @@ -1,7 +1,7 @@ -package com.linearpast.sccore.animation.network.toserver; +package top.leisuretimedock.animationcore.animation.network.toserver; -import com.linearpast.sccore.animation.network.ServiceGetterPacket; -import com.linearpast.sccore.animation.service.IAnimationService; +import top.leisuretimedock.animationcore.animation.network.ServiceGetterPacket; +import top.leisuretimedock.animationcore.animation.service.IAnimationService; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.server.level.ServerPlayer; import net.minecraftforge.network.NetworkEvent; diff --git a/src/main/java/com/linearpast/sccore/animation/network/toserver/InviteAnimationPacket.java b/src/main/java/top/leisuretimedock/animationcore/animation/network/toserver/InviteAnimationPacket.java similarity index 88% rename from src/main/java/com/linearpast/sccore/animation/network/toserver/InviteAnimationPacket.java rename to src/main/java/top/leisuretimedock/animationcore/animation/network/toserver/InviteAnimationPacket.java index 19f71ca..fa3017d 100644 --- a/src/main/java/com/linearpast/sccore/animation/network/toserver/InviteAnimationPacket.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/network/toserver/InviteAnimationPacket.java @@ -1,8 +1,8 @@ -package com.linearpast.sccore.animation.network.toserver; +package top.leisuretimedock.animationcore.animation.network.toserver; -import com.linearpast.sccore.animation.data.AnimationData; -import com.linearpast.sccore.animation.network.ServiceGetterPacket; -import com.linearpast.sccore.animation.service.IAnimationService; +import top.leisuretimedock.animationcore.animation.data.AnimationData; +import top.leisuretimedock.animationcore.animation.network.ServiceGetterPacket; +import top.leisuretimedock.animationcore.animation.service.IAnimationService; import net.minecraft.nbt.CompoundTag; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.resources.ResourceLocation; diff --git a/src/main/java/com/linearpast/sccore/animation/network/toserver/PlayAnimationPacket.java b/src/main/java/top/leisuretimedock/animationcore/animation/network/toserver/PlayAnimationPacket.java similarity index 89% rename from src/main/java/com/linearpast/sccore/animation/network/toserver/PlayAnimationPacket.java rename to src/main/java/top/leisuretimedock/animationcore/animation/network/toserver/PlayAnimationPacket.java index 67b64f8..b781ab6 100644 --- a/src/main/java/com/linearpast/sccore/animation/network/toserver/PlayAnimationPacket.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/network/toserver/PlayAnimationPacket.java @@ -1,8 +1,8 @@ -package com.linearpast.sccore.animation.network.toserver; +package top.leisuretimedock.animationcore.animation.network.toserver; -import com.linearpast.sccore.animation.data.AnimationData; -import com.linearpast.sccore.animation.network.ServiceGetterPacket; -import com.linearpast.sccore.animation.service.IAnimationService; +import top.leisuretimedock.animationcore.animation.data.AnimationData; +import top.leisuretimedock.animationcore.animation.network.ServiceGetterPacket; +import top.leisuretimedock.animationcore.animation.service.IAnimationService; import net.minecraft.nbt.CompoundTag; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.resources.ResourceLocation; diff --git a/src/main/java/com/linearpast/sccore/animation/network/toserver/PlayAnimationRidePacket.java b/src/main/java/top/leisuretimedock/animationcore/animation/network/toserver/PlayAnimationRidePacket.java similarity index 90% rename from src/main/java/com/linearpast/sccore/animation/network/toserver/PlayAnimationRidePacket.java rename to src/main/java/top/leisuretimedock/animationcore/animation/network/toserver/PlayAnimationRidePacket.java index 2f251e8..a9e3ef2 100644 --- a/src/main/java/com/linearpast/sccore/animation/network/toserver/PlayAnimationRidePacket.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/network/toserver/PlayAnimationRidePacket.java @@ -1,8 +1,8 @@ -package com.linearpast.sccore.animation.network.toserver; +package top.leisuretimedock.animationcore.animation.network.toserver; -import com.linearpast.sccore.animation.data.AnimationData; -import com.linearpast.sccore.animation.network.ServiceGetterPacket; -import com.linearpast.sccore.animation.service.IAnimationService; +import top.leisuretimedock.animationcore.animation.data.AnimationData; +import top.leisuretimedock.animationcore.animation.network.ServiceGetterPacket; +import top.leisuretimedock.animationcore.animation.service.IAnimationService; import net.minecraft.nbt.CompoundTag; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.resources.ResourceLocation; diff --git a/src/main/java/com/linearpast/sccore/animation/network/toserver/RequestAnimationPacket.java b/src/main/java/top/leisuretimedock/animationcore/animation/network/toserver/RequestAnimationPacket.java similarity index 89% rename from src/main/java/com/linearpast/sccore/animation/network/toserver/RequestAnimationPacket.java rename to src/main/java/top/leisuretimedock/animationcore/animation/network/toserver/RequestAnimationPacket.java index d71d13b..755f5be 100644 --- a/src/main/java/com/linearpast/sccore/animation/network/toserver/RequestAnimationPacket.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/network/toserver/RequestAnimationPacket.java @@ -1,8 +1,8 @@ -package com.linearpast.sccore.animation.network.toserver; +package top.leisuretimedock.animationcore.animation.network.toserver; -import com.linearpast.sccore.animation.data.AnimationData; -import com.linearpast.sccore.animation.network.ServiceGetterPacket; -import com.linearpast.sccore.animation.service.IAnimationService; +import top.leisuretimedock.animationcore.animation.data.AnimationData; +import top.leisuretimedock.animationcore.animation.network.ServiceGetterPacket; +import top.leisuretimedock.animationcore.animation.service.IAnimationService; import net.minecraft.nbt.CompoundTag; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.resources.ResourceLocation; diff --git a/src/main/java/com/linearpast/sccore/animation/network/toserver/StopAnimationPacket.java b/src/main/java/top/leisuretimedock/animationcore/animation/network/toserver/StopAnimationPacket.java similarity index 86% rename from src/main/java/com/linearpast/sccore/animation/network/toserver/StopAnimationPacket.java rename to src/main/java/top/leisuretimedock/animationcore/animation/network/toserver/StopAnimationPacket.java index 335116e..1d3cb8b 100644 --- a/src/main/java/com/linearpast/sccore/animation/network/toserver/StopAnimationPacket.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/network/toserver/StopAnimationPacket.java @@ -1,6 +1,6 @@ -package com.linearpast.sccore.animation.network.toserver; +package top.leisuretimedock.animationcore.animation.network.toserver; -import com.linearpast.sccore.animation.AnimationApi; +import top.leisuretimedock.animationcore.animation.AnimationApi; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.resources.ResourceLocation; import net.minecraft.server.level.ServerPlayer; diff --git a/src/main/java/com/linearpast/sccore/animation/register/AnimationCapabilities.java b/src/main/java/top/leisuretimedock/animationcore/animation/register/AnimationCapabilities.java similarity index 66% rename from src/main/java/com/linearpast/sccore/animation/register/AnimationCapabilities.java rename to src/main/java/top/leisuretimedock/animationcore/animation/register/AnimationCapabilities.java index 1f1ba40..31cfc3d 100644 --- a/src/main/java/com/linearpast/sccore/animation/register/AnimationCapabilities.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/register/AnimationCapabilities.java @@ -1,14 +1,14 @@ -package com.linearpast.sccore.animation.register; +package top.leisuretimedock.animationcore.animation.register; -import com.linearpast.sccore.animation.capability.AnimationDataCapability; -import com.linearpast.sccore.animation.capability.RawAnimationDataCapability; -import com.linearpast.sccore.animation.capability.inter.IAnimationCapability; -import com.linearpast.sccore.animation.network.toclient.AnimationCapabilityPacket; -import com.linearpast.sccore.animation.network.toclient.RawAnimationCapabilityPacket; -import com.linearpast.sccore.capability.CapabilityUtils; -import com.linearpast.sccore.capability.data.player.PlayerCapabilityRegistry; -import com.linearpast.sccore.capability.network.CapabilityChannel; -import com.linearpast.sccore.core.ModChannel; +import top.leisuretimedock.animationcore.animation.capability.AnimationDataCapability; +import top.leisuretimedock.animationcore.animation.capability.RawAnimationDataCapability; +import top.leisuretimedock.animationcore.animation.capability.inter.IAnimationCapability; +import top.leisuretimedock.animationcore.animation.network.toclient.AnimationCapabilityPacket; +import top.leisuretimedock.animationcore.animation.network.toclient.RawAnimationCapabilityPacket; +import top.leisuretimedock.animationcore.capability.CapabilityUtils; +import top.leisuretimedock.animationcore.capability.data.player.PlayerCapabilityRegistry; +import top.leisuretimedock.animationcore.capability.network.CapabilityChannel; +import top.leisuretimedock.animationcore.core.ModChannel; import net.minecraftforge.common.capabilities.CapabilityManager; import net.minecraftforge.common.capabilities.CapabilityToken; diff --git a/src/main/java/com/linearpast/sccore/animation/register/AnimationChannels.java b/src/main/java/top/leisuretimedock/animationcore/animation/register/AnimationChannels.java similarity index 85% rename from src/main/java/com/linearpast/sccore/animation/register/AnimationChannels.java rename to src/main/java/top/leisuretimedock/animationcore/animation/register/AnimationChannels.java index 5f8c979..653e4ba 100644 --- a/src/main/java/com/linearpast/sccore/animation/register/AnimationChannels.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/register/AnimationChannels.java @@ -1,11 +1,11 @@ -package com.linearpast.sccore.animation.register; +package top.leisuretimedock.animationcore.animation.register; -import com.linearpast.sccore.animation.network.toclient.AnimationClearPacket; -import com.linearpast.sccore.animation.network.toclient.AnimationClientStatusPacket; -import com.linearpast.sccore.animation.network.toclient.AnimationJsonPacket; -import com.linearpast.sccore.animation.network.toclient.SyncAnimationPacket; -import com.linearpast.sccore.animation.network.toserver.*; -import com.linearpast.sccore.core.ModChannel; +import top.leisuretimedock.animationcore.animation.network.toclient.AnimationClearPacket; +import top.leisuretimedock.animationcore.animation.network.toclient.AnimationClientStatusPacket; +import top.leisuretimedock.animationcore.animation.network.toclient.AnimationJsonPacket; +import top.leisuretimedock.animationcore.animation.network.toclient.SyncAnimationPacket; +import top.leisuretimedock.animationcore.animation.network.toserver.*; +import top.leisuretimedock.animationcore.core.ModChannel; import net.minecraftforge.network.NetworkDirection; public class AnimationChannels { diff --git a/src/main/java/com/linearpast/sccore/animation/register/AnimationCommands.java b/src/main/java/top/leisuretimedock/animationcore/animation/register/AnimationCommands.java similarity index 75% rename from src/main/java/com/linearpast/sccore/animation/register/AnimationCommands.java rename to src/main/java/top/leisuretimedock/animationcore/animation/register/AnimationCommands.java index 3612894..031631d 100644 --- a/src/main/java/com/linearpast/sccore/animation/register/AnimationCommands.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/register/AnimationCommands.java @@ -1,11 +1,11 @@ -package com.linearpast.sccore.animation.register; +package top.leisuretimedock.animationcore.animation.register; -import com.linearpast.sccore.animation.command.*; -import com.linearpast.sccore.animation.command.argument.AnimationArgument; -import com.linearpast.sccore.animation.command.argument.AnimationLayerArgument; -import com.linearpast.sccore.animation.command.client.ListClientCommand; -import com.linearpast.sccore.animation.command.client.RefreshCommand; -import com.linearpast.sccore.animation.service.IAnimationService; +import top.leisuretimedock.animationcore.animation.command.*; +import top.leisuretimedock.animationcore.animation.command.argument.AnimationArgument; +import top.leisuretimedock.animationcore.animation.command.argument.AnimationLayerArgument; +import top.leisuretimedock.animationcore.animation.command.client.ListClientCommand; +import top.leisuretimedock.animationcore.animation.command.client.RefreshCommand; +import top.leisuretimedock.animationcore.animation.service.IAnimationService; import com.mojang.brigadier.builder.LiteralArgumentBuilder; import net.minecraft.commands.CommandSourceStack; import net.minecraft.commands.synchronization.ArgumentTypeInfo; diff --git a/src/main/java/com/linearpast/sccore/animation/register/AnimationEntities.java b/src/main/java/top/leisuretimedock/animationcore/animation/register/AnimationEntities.java similarity index 80% rename from src/main/java/com/linearpast/sccore/animation/register/AnimationEntities.java rename to src/main/java/top/leisuretimedock/animationcore/animation/register/AnimationEntities.java index fa574ca..3932b28 100644 --- a/src/main/java/com/linearpast/sccore/animation/register/AnimationEntities.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/register/AnimationEntities.java @@ -1,7 +1,7 @@ -package com.linearpast.sccore.animation.register; +package top.leisuretimedock.animationcore.animation.register; -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.animation.entity.AnimationRideEntity; +import top.leisuretimedock.animationcore.AnimationCore; +import top.leisuretimedock.animationcore.animation.entity.AnimationRideEntity; import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.MobCategory; @@ -13,7 +13,7 @@ import net.minecraftforge.registries.RegistryObject; public class AnimationEntities { - public static final DeferredRegister> REGISTER = DeferredRegister.create(ForgeRegistries.ENTITY_TYPES, SnowyCrescentCore.MODID); + public static final DeferredRegister> REGISTER = DeferredRegister.create(ForgeRegistries.ENTITY_TYPES, AnimationCore.MOD_ID); public static final RegistryObject> RIDE = register( "animation_ride_entity", EntityType.Builder.of((type, world) -> new AnimationRideEntity(world), MobCategory.MISC) diff --git a/src/main/java/com/linearpast/sccore/animation/register/AnimationRegistry.java b/src/main/java/top/leisuretimedock/animationcore/animation/register/AnimationRegistry.java similarity index 86% rename from src/main/java/com/linearpast/sccore/animation/register/AnimationRegistry.java rename to src/main/java/top/leisuretimedock/animationcore/animation/register/AnimationRegistry.java index 85bf5e2..8fd104d 100644 --- a/src/main/java/com/linearpast/sccore/animation/register/AnimationRegistry.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/register/AnimationRegistry.java @@ -1,26 +1,25 @@ -package com.linearpast.sccore.animation.register; +package top.leisuretimedock.animationcore.animation.register; -import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParseException; -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.animation.capability.AnimationDataCapability; -import com.linearpast.sccore.animation.capability.RawAnimationDataCapability; -import com.linearpast.sccore.animation.capability.inter.IAnimationCapability; -import com.linearpast.sccore.animation.data.GenericAnimationData; -import com.linearpast.sccore.animation.data.RawAnimationData; -import com.linearpast.sccore.animation.data.util.AnimJson; -import com.linearpast.sccore.animation.data.util.AnimLayerJson; -import com.linearpast.sccore.animation.event.create.AnimationRegisterEvent; -import com.linearpast.sccore.animation.mixin.IMixinPlayerAnimationFactoryHolder; -import com.linearpast.sccore.animation.network.toclient.AnimationClientStatusPacket; -import com.linearpast.sccore.animation.network.toclient.AnimationJsonPacket; -import com.linearpast.sccore.animation.service.RawAnimationService; -import com.linearpast.sccore.animation.utils.FileUtils; -import com.linearpast.sccore.core.ModChannel; +import top.leisuretimedock.animationcore.AnimationCore; +import top.leisuretimedock.animationcore.animation.capability.AnimationDataCapability; +import top.leisuretimedock.animationcore.animation.capability.RawAnimationDataCapability; +import top.leisuretimedock.animationcore.animation.capability.inter.IAnimationCapability; +import top.leisuretimedock.animationcore.animation.data.GenericAnimationData; +import top.leisuretimedock.animationcore.animation.data.RawAnimationData; +import top.leisuretimedock.animationcore.animation.data.util.AnimJson; +import top.leisuretimedock.animationcore.animation.data.util.AnimLayerJson; +import top.leisuretimedock.animationcore.animation.event.create.AnimationRegisterEvent; +import top.leisuretimedock.animationcore.animation.mixin.IMixinPlayerAnimationFactoryHolder; +import top.leisuretimedock.animationcore.animation.network.toclient.AnimationClientStatusPacket; +import top.leisuretimedock.animationcore.animation.network.toclient.AnimationJsonPacket; +import top.leisuretimedock.animationcore.animation.service.RawAnimationService; +import top.leisuretimedock.animationcore.animation.utils.FileUtils; +import top.leisuretimedock.animationcore.core.ModChannel; import dev.kosmx.playerAnim.api.layered.AnimationStack; import dev.kosmx.playerAnim.api.layered.IAnimation; import dev.kosmx.playerAnim.api.layered.KeyframeAnimationPlayer; @@ -60,7 +59,6 @@ import java.lang.reflect.Method; import java.nio.file.Files; import java.nio.file.Path; import java.util.*; -import java.util.stream.Collectors; public class AnimationRegistry { private static final Map animations = new HashMap<>(); @@ -100,7 +98,7 @@ public class AnimationRegistry { // Load animations from registration events loadFromRegistrationEvents(); - SnowyCrescentCore.log.info("Animation loading completed. Total animations: {}, Total layers: {}", + AnimationCore.log.info("Animation loading completed. Total animations: {}, Total layers: {}", animations.size(), layers.size()); } @@ -115,7 +113,7 @@ public class AnimationRegistry { try { Files.createDirectories(animationPath); } catch (IOException e) { - SnowyCrescentCore.log.error("Failed to create legacy animation directory", e); + AnimationCore.log.error("Failed to create legacy animation directory", e); return; } } @@ -161,10 +159,10 @@ public class AnimationRegistry { AnimJson.Reader reader = AnimJson.Reader.stream(path); GenericAnimationData anim = reader.parse(); animations.put(anim.getKey(), anim); - SnowyCrescentCore.log.info("Loaded legacy animation: {} -> {}", + AnimationCore.log.info("Loaded legacy animation: {} -> {}", anim.getKey(), anim.getName()); } catch (Exception e) { - SnowyCrescentCore.log.error("Failed to parse legacy animation JSON: {}", path, e); + AnimationCore.log.error("Failed to parse legacy animation JSON: {}", path, e); } } @@ -173,14 +171,14 @@ public class AnimationRegistry { AnimLayerJson.Reader reader = AnimLayerJson.Reader.stream(path); Map parse = reader.parse(); layers.putAll(parse); - SnowyCrescentCore.log.info("Loaded {} legacy layer configurations from {}", + AnimationCore.log.info("Loaded {} legacy layer configurations from {}", parse.size(), path); } catch (Exception e) { - SnowyCrescentCore.log.error("Failed to parse legacy layer JSON: {}", path, e); + AnimationCore.log.error("Failed to parse legacy layer JSON: {}", path, e); } } } catch (Exception e) { - SnowyCrescentCore.log.error("Error loading legacy animations", e); + AnimationCore.log.error("Error loading legacy animations", e); } } @@ -198,7 +196,7 @@ public class AnimationRegistry { Map layerMap = layerRegisterEvent.getLayers(); layers.putAll(layerMap); - SnowyCrescentCore.log.info("Loaded {} animations and {} layers from registration events", + AnimationCore.log.info("Loaded {} animations and {} layers from registration events", animationMap.size(), layerMap.size()); } @@ -212,14 +210,14 @@ public class AnimationRegistry { super(new GsonBuilder() .setPrettyPrinting() .disableHtmlEscaping() - .create(), "scc_animations"); + .create(), "ac_animations"); } @Override protected void apply(@Nonnull Map resources, @Nonnull ResourceManager resourceManager, @Nonnull ProfilerFiller profiler) { - SnowyCrescentCore.log.info("Loading animations from data packs..."); + AnimationCore.log.info("Loading animations from data packs..."); Map sorted = new LinkedHashMap<>(); @@ -227,17 +225,17 @@ public class AnimationRegistry { resourceManager.listPacks().forEach(packResources -> { Set namespaces = packResources.getNamespaces(PackType.SERVER_DATA); namespaces.forEach(namespace -> - packResources.listResources(PackType.SERVER_DATA, namespace, "scc_animations", + packResources.listResources(PackType.SERVER_DATA, namespace, "ac_animations", (resourceLocation, inputStreamIoSupplier) -> { String path = resourceLocation.getPath(); if (path.endsWith(".anim.json")) { ResourceLocation rl = new ResourceLocation(namespace, - path.substring("scc_animations/".length(), path.length() - ".json".length())); + path.substring("ac_animations/".length(), path.length() - ".json".length())); JsonElement el = resources.get(rl); if (el != null) { rl = new ResourceLocation(namespace, - path.substring("scc_animations/".length(), path.length() - ".anim.json".length())); + path.substring("ac_animations/".length(), path.length() - ".anim.json".length())); sorted.put(rl, el); } } @@ -259,21 +257,21 @@ public class AnimationRegistry { // Ensure the key matches if (!anim.getKey().equals(animKey)) { - SnowyCrescentCore.log.warn("Animation key mismatch: file={}, expected={}, actual={}", + AnimationCore.log.warn("Animation key mismatch: file={}, expected={}, actual={}", entry.getKey(), animKey, anim.getKey()); anim = anim.withName(animKey.getPath()); // Create a copy with correct key if possible } animations.put(animKey, anim); loadedCount++; - SnowyCrescentCore.log.debug("Loaded animation: {} -> {}", animKey, anim.getName()); + AnimationCore.log.debug("Loaded animation: {} -> {}", animKey, anim.getName()); } catch (IllegalArgumentException | JsonParseException e) { - SnowyCrescentCore.log.error("Parsing error loading animation {}", animKey, e); + AnimationCore.log.error("Parsing error loading animation {}", animKey, e); } } - SnowyCrescentCore.log.info("Loaded {} animations from data packs", loadedCount); + AnimationCore.log.info("Loaded {} animations from data packs", loadedCount); } } @@ -288,14 +286,14 @@ public class AnimationRegistry { super(new GsonBuilder() .setPrettyPrinting() .disableHtmlEscaping() - .create(), "scc_animations"); + .create(), "ac_animations"); } @Override protected void apply(@Nonnull Map resources, @Nonnull ResourceManager resourceManager, @Nonnull ProfilerFiller profiler) { - SnowyCrescentCore.log.info("Loading layer configurations from data packs..."); + AnimationCore.log.info("Loading layer configurations from data packs..."); Map sorted = new LinkedHashMap<>(); @@ -303,7 +301,7 @@ public class AnimationRegistry { resourceManager.listPacks().forEach(packResources -> { Set namespaces = packResources.getNamespaces(PackType.SERVER_DATA); namespaces.forEach(namespace -> - packResources.listResources(PackType.SERVER_DATA, namespace, "scc_animations", + packResources.listResources(PackType.SERVER_DATA, namespace, "ac_animations", (resourceLocation, inputStreamIoSupplier) -> { String path = resourceLocation.getPath(); if (path.endsWith("animation.layer.json")) { @@ -330,21 +328,21 @@ public class AnimationRegistry { // Merge layer configurations parsedLayers.forEach((layerKey, priority) -> { if (layers.containsKey(layerKey)) { - SnowyCrescentCore.log.debug("Overriding layer {} with priority {}", layerKey, priority); + AnimationCore.log.debug("Overriding layer {} with priority {}", layerKey, priority); } layers.put(layerKey, priority); }); loadedCount += parsedLayers.size(); - SnowyCrescentCore.log.debug("Loaded {} layer configurations from {}", + AnimationCore.log.debug("Loaded {} layer configurations from {}", parsedLayers.size(), entry.getKey().getNamespace()); } catch (IllegalArgumentException | JsonParseException e) { - SnowyCrescentCore.log.error("Parsing error loading layer configuration", e); + AnimationCore.log.error("Parsing error loading layer configuration", e); } } - SnowyCrescentCore.log.info("Loaded {} layer configurations from data packs", loadedCount); + AnimationCore.log.info("Loaded {} layer configurations from data packs", loadedCount); } } @@ -363,7 +361,7 @@ public class AnimationRegistry { * Send all animations and layers to the client */ private static void sendAnimationsToClient(ServerPlayer player) { - SnowyCrescentCore.log.debug("Sending animations to player: {}", player.getName().getString()); + AnimationCore.log.debug("Sending animations to player: {}", player.getName().getString()); // Clear client cache first ModChannel.sendToPlayer(new AnimationClientStatusPacket( @@ -392,7 +390,7 @@ public class AnimationRegistry { ModChannel.sendToPlayer(new AnimationClientStatusPacket( AnimationClientStatusPacket.Status.LAYER_REGISTER), player); - SnowyCrescentCore.log.debug("Sent {} animations and {} layers to player {}", + AnimationCore.log.debug("Sent {} animations and {} layers to player {}", animations.size(), layers.size(), player.getName().getString()); } @@ -462,7 +460,7 @@ public class AnimationRegistry { // Update existing players' animation stacks ClientLevel level = Minecraft.getInstance().level; if (level == null) { - SnowyCrescentCore.log.error("Level is null, cannot update animation layers"); + AnimationCore.log.error("Level is null, cannot update animation layers"); return; } @@ -471,7 +469,7 @@ public class AnimationRegistry { updatePlayerAnimationStack(player); } } catch (Exception e) { - SnowyCrescentCore.log.error("Failed to update player animation layers", e); + AnimationCore.log.error("Failed to update player animation layers", e); } } } @@ -535,7 +533,7 @@ public class AnimationRegistry { restorePlayingAnimations(player); } catch (Exception e) { - SnowyCrescentCore.log.error("Failed to update animation stack for player: {}", player, e); + AnimationCore.log.error("Failed to update animation stack for player: {}", player, e); } } @@ -587,7 +585,7 @@ public class AnimationRegistry { ); } } catch (Exception e) { - SnowyCrescentCore.log.error("Failed to restore playing animations for player: {}", player, e); + AnimationCore.log.error("Failed to restore playing animations for player: {}", player, e); } } diff --git a/src/main/java/com/linearpast/sccore/animation/register/RawAnimationRegistry.java b/src/main/java/top/leisuretimedock/animationcore/animation/register/RawAnimationRegistry.java similarity index 84% rename from src/main/java/com/linearpast/sccore/animation/register/RawAnimationRegistry.java rename to src/main/java/top/leisuretimedock/animationcore/animation/register/RawAnimationRegistry.java index 4ebbe0f..4de3163 100644 --- a/src/main/java/com/linearpast/sccore/animation/register/RawAnimationRegistry.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/register/RawAnimationRegistry.java @@ -1,11 +1,11 @@ -package com.linearpast.sccore.animation.register; +package top.leisuretimedock.animationcore.animation.register; -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.animation.command.argument.AnimationArgument; -import com.linearpast.sccore.animation.data.RawAnimationData; -import com.linearpast.sccore.animation.data.util.RawAnimJson; -import com.linearpast.sccore.animation.event.create.AnimationRegisterEvent; -import com.linearpast.sccore.animation.utils.FileUtils; +import top.leisuretimedock.animationcore.AnimationCore; +import top.leisuretimedock.animationcore.animation.command.argument.AnimationArgument; +import top.leisuretimedock.animationcore.animation.data.RawAnimationData; +import top.leisuretimedock.animationcore.animation.data.util.RawAnimJson; +import top.leisuretimedock.animationcore.animation.event.create.AnimationRegisterEvent; +import top.leisuretimedock.animationcore.animation.utils.FileUtils; import net.minecraft.client.Minecraft; import net.minecraft.resources.ResourceLocation; import net.minecraftforge.api.distmarker.Dist; @@ -76,7 +76,7 @@ public class RawAnimationRegistry { RawAnimationData anim = reader.parse(); animationDataMap.put(anim.getKey(), anim); } catch (Exception ignored) { - SnowyCrescentCore.log.error("Failed to parse raw animation JSON: {}", path.toString()); + AnimationCore.log.error("Failed to parse raw animation JSON: {}", path.toString()); } } registerAnimations(animationDataMap); @@ -94,7 +94,7 @@ public class RawAnimationRegistry { throw new RuntimeException("Duplicated animation on server: " + location); return true; } catch (RuntimeException e) { - SnowyCrescentCore.log.error(e.getMessage(), e); + AnimationCore.log.error(e.getMessage(), e); return false; } } diff --git a/src/main/java/com/linearpast/sccore/animation/service/AnimationService.java b/src/main/java/top/leisuretimedock/animationcore/animation/service/AnimationService.java similarity index 90% rename from src/main/java/com/linearpast/sccore/animation/service/AnimationService.java rename to src/main/java/top/leisuretimedock/animationcore/animation/service/AnimationService.java index 654a3b1..9267bfb 100644 --- a/src/main/java/com/linearpast/sccore/animation/service/AnimationService.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/service/AnimationService.java @@ -1,12 +1,12 @@ -package com.linearpast.sccore.animation.service; +package top.leisuretimedock.animationcore.animation.service; -import com.linearpast.sccore.animation.capability.AnimationDataCapability; -import com.linearpast.sccore.animation.capability.inter.IAnimationCapability; -import com.linearpast.sccore.animation.data.AnimationData; -import com.linearpast.sccore.animation.data.GenericAnimationData; -import com.linearpast.sccore.animation.register.AnimationRegistry; -import com.linearpast.sccore.animation.utils.AnimationUtils; -import com.linearpast.sccore.animation.utils.ApiBack; +import top.leisuretimedock.animationcore.animation.capability.AnimationDataCapability; +import top.leisuretimedock.animationcore.animation.capability.inter.IAnimationCapability; +import top.leisuretimedock.animationcore.animation.data.AnimationData; +import top.leisuretimedock.animationcore.animation.data.GenericAnimationData; +import top.leisuretimedock.animationcore.animation.register.AnimationRegistry; +import top.leisuretimedock.animationcore.animation.utils.AnimationUtils; +import top.leisuretimedock.animationcore.animation.utils.ApiBack; import net.minecraft.client.player.AbstractClientPlayer; import net.minecraft.nbt.CompoundTag; import net.minecraft.resources.ResourceLocation; diff --git a/src/main/java/com/linearpast/sccore/animation/service/IAnimationService.java b/src/main/java/top/leisuretimedock/animationcore/animation/service/IAnimationService.java similarity index 95% rename from src/main/java/com/linearpast/sccore/animation/service/IAnimationService.java rename to src/main/java/top/leisuretimedock/animationcore/animation/service/IAnimationService.java index ee58632..cc10d87 100644 --- a/src/main/java/com/linearpast/sccore/animation/service/IAnimationService.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/service/IAnimationService.java @@ -1,24 +1,24 @@ -package com.linearpast.sccore.animation.service; +package top.leisuretimedock.animationcore.animation.service; -import com.linearpast.sccore.animation.data.AnimationData; -import com.linearpast.sccore.animation.entity.AnimationRideEntity; -import com.linearpast.sccore.animation.event.PlayerTickEvent; -import com.linearpast.sccore.animation.event.client.CameraModify; -import com.linearpast.sccore.animation.event.client.ClientPlayerEvent; -import com.linearpast.sccore.animation.event.client.EntityRendererRegisterEvent; -import com.linearpast.sccore.animation.event.create.AnimationEvent; -import com.linearpast.sccore.animation.network.toclient.SyncAnimationPacket; -import com.linearpast.sccore.animation.network.toserver.*; -import com.linearpast.sccore.animation.register.AnimationCapabilities; -import com.linearpast.sccore.animation.register.AnimationChannels; -import com.linearpast.sccore.animation.register.AnimationEntities; -import com.linearpast.sccore.animation.register.AnimationRegistry; -import com.linearpast.sccore.animation.utils.AnimationUtils; -import com.linearpast.sccore.animation.utils.ApiBack; -import com.linearpast.sccore.capability.data.ICapabilitySync; -import com.linearpast.sccore.core.ModChannel; -import com.linearpast.sccore.core.ModCompatRun; -import com.linearpast.sccore.core.configs.ModConfigs; +import top.leisuretimedock.animationcore.animation.data.AnimationData; +import top.leisuretimedock.animationcore.animation.entity.AnimationRideEntity; +import top.leisuretimedock.animationcore.animation.event.PlayerTickEvent; +import top.leisuretimedock.animationcore.animation.event.client.CameraModify; +import top.leisuretimedock.animationcore.animation.event.client.ClientPlayerEvent; +import top.leisuretimedock.animationcore.animation.event.client.EntityRendererRegisterEvent; +import top.leisuretimedock.animationcore.animation.event.create.AnimationEvent; +import top.leisuretimedock.animationcore.animation.network.toclient.SyncAnimationPacket; +import top.leisuretimedock.animationcore.animation.network.toserver.*; +import top.leisuretimedock.animationcore.animation.register.AnimationCapabilities; +import top.leisuretimedock.animationcore.animation.register.AnimationChannels; +import top.leisuretimedock.animationcore.animation.register.AnimationEntities; +import top.leisuretimedock.animationcore.animation.register.AnimationRegistry; +import top.leisuretimedock.animationcore.animation.utils.AnimationUtils; +import top.leisuretimedock.animationcore.animation.utils.ApiBack; +import top.leisuretimedock.animationcore.capability.data.ICapabilitySync; +import top.leisuretimedock.animationcore.core.ModChannel; +import top.leisuretimedock.animationcore.core.ModCompatRun; +import top.leisuretimedock.animationcore.core.configs.ModConfigs; import dev.kosmx.playerAnim.core.data.KeyframeAnimation; import dev.kosmx.playerAnim.minecraftApi.PlayerAnimationRegistry; import net.minecraft.client.Minecraft; diff --git a/src/main/java/com/linearpast/sccore/animation/service/RawAnimationService.java b/src/main/java/top/leisuretimedock/animationcore/animation/service/RawAnimationService.java similarity index 88% rename from src/main/java/com/linearpast/sccore/animation/service/RawAnimationService.java rename to src/main/java/top/leisuretimedock/animationcore/animation/service/RawAnimationService.java index befa8f5..9d37c80 100644 --- a/src/main/java/com/linearpast/sccore/animation/service/RawAnimationService.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/service/RawAnimationService.java @@ -1,12 +1,12 @@ -package com.linearpast.sccore.animation.service; +package top.leisuretimedock.animationcore.animation.service; -import com.linearpast.sccore.animation.capability.RawAnimationDataCapability; -import com.linearpast.sccore.animation.data.AnimationData; -import com.linearpast.sccore.animation.data.RawAnimationData; -import com.linearpast.sccore.animation.event.create.AnimationRegisterEvent; -import com.linearpast.sccore.animation.register.RawAnimationRegistry; -import com.linearpast.sccore.animation.utils.AnimationUtils; -import com.linearpast.sccore.animation.utils.ApiBack; +import top.leisuretimedock.animationcore.animation.capability.RawAnimationDataCapability; +import top.leisuretimedock.animationcore.animation.data.AnimationData; +import top.leisuretimedock.animationcore.animation.data.RawAnimationData; +import top.leisuretimedock.animationcore.animation.event.create.AnimationRegisterEvent; +import top.leisuretimedock.animationcore.animation.register.RawAnimationRegistry; +import top.leisuretimedock.animationcore.animation.utils.AnimationUtils; +import top.leisuretimedock.animationcore.animation.utils.ApiBack; import net.minecraft.client.player.AbstractClientPlayer; import net.minecraft.nbt.CompoundTag; import net.minecraft.resources.ResourceLocation; diff --git a/src/main/java/com/linearpast/sccore/animation/utils/AnimationUtils.java b/src/main/java/top/leisuretimedock/animationcore/animation/utils/AnimationUtils.java similarity index 92% rename from src/main/java/com/linearpast/sccore/animation/utils/AnimationUtils.java rename to src/main/java/top/leisuretimedock/animationcore/animation/utils/AnimationUtils.java index 8ee7f33..0fb984e 100644 --- a/src/main/java/com/linearpast/sccore/animation/utils/AnimationUtils.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/utils/AnimationUtils.java @@ -1,18 +1,18 @@ -package com.linearpast.sccore.animation.utils; +package top.leisuretimedock.animationcore.animation.utils; -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.animation.AnimationApi; -import com.linearpast.sccore.animation.capability.AnimationDataCapability; -import com.linearpast.sccore.animation.capability.RawAnimationDataCapability; -import com.linearpast.sccore.animation.capability.inter.IAnimationCapability; -import com.linearpast.sccore.animation.data.AnimationData; -import com.linearpast.sccore.animation.data.GenericAnimationData; -import com.linearpast.sccore.animation.mixin.IMixinKeyframeAnimationPlayer; -import com.linearpast.sccore.animation.register.AnimationRegistry; -import com.linearpast.sccore.animation.service.AnimationService; -import com.linearpast.sccore.animation.service.IAnimationService; -import com.linearpast.sccore.animation.service.RawAnimationService; -import com.linearpast.sccore.core.datagen.ModLang; +import top.leisuretimedock.animationcore.AnimationCore; +import top.leisuretimedock.animationcore.animation.AnimationApi; +import top.leisuretimedock.animationcore.animation.capability.AnimationDataCapability; +import top.leisuretimedock.animationcore.animation.capability.RawAnimationDataCapability; +import top.leisuretimedock.animationcore.animation.capability.inter.IAnimationCapability; +import top.leisuretimedock.animationcore.animation.data.AnimationData; +import top.leisuretimedock.animationcore.animation.data.GenericAnimationData; +import top.leisuretimedock.animationcore.animation.mixin.IMixinKeyframeAnimationPlayer; +import top.leisuretimedock.animationcore.animation.register.AnimationRegistry; +import top.leisuretimedock.animationcore.animation.service.AnimationService; +import top.leisuretimedock.animationcore.animation.service.IAnimationService; +import top.leisuretimedock.animationcore.animation.service.RawAnimationService; +import top.leisuretimedock.animationcore.core.datagen.ModLang; import dev.kosmx.playerAnim.api.layered.IAnimation; import dev.kosmx.playerAnim.api.layered.KeyframeAnimationPlayer; import dev.kosmx.playerAnim.api.layered.ModifierLayer; @@ -187,7 +187,7 @@ public class AnimationUtils { new KeyframeAnimationPlayer(keyframeAnimation) ); }catch (Exception e) { - SnowyCrescentCore.log.error("Failed to play animation : {}", animation, e); + AnimationCore.log.error("Failed to play animation : {}", animation, e); } } diff --git a/src/main/java/com/linearpast/sccore/animation/utils/ApiBack.java b/src/main/java/top/leisuretimedock/animationcore/animation/utils/ApiBack.java similarity index 91% rename from src/main/java/com/linearpast/sccore/animation/utils/ApiBack.java rename to src/main/java/top/leisuretimedock/animationcore/animation/utils/ApiBack.java index 1d491f9..e3ae090 100644 --- a/src/main/java/com/linearpast/sccore/animation/utils/ApiBack.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/utils/ApiBack.java @@ -1,4 +1,4 @@ -package com.linearpast.sccore.animation.utils; +package top.leisuretimedock.animationcore.animation.utils; import org.jetbrains.annotations.Nullable; diff --git a/src/main/java/com/linearpast/sccore/animation/utils/FileUtils.java b/src/main/java/top/leisuretimedock/animationcore/animation/utils/FileUtils.java similarity index 97% rename from src/main/java/com/linearpast/sccore/animation/utils/FileUtils.java rename to src/main/java/top/leisuretimedock/animationcore/animation/utils/FileUtils.java index 8cc60d9..2bcc949 100644 --- a/src/main/java/com/linearpast/sccore/animation/utils/FileUtils.java +++ b/src/main/java/top/leisuretimedock/animationcore/animation/utils/FileUtils.java @@ -1,4 +1,4 @@ -package com.linearpast.sccore.animation.utils; +package top.leisuretimedock.animationcore.animation.utils; import java.io.InputStream; import java.io.OutputStream; diff --git a/src/main/java/com/linearpast/sccore/capability/CapabilityUtils.java b/src/main/java/top/leisuretimedock/animationcore/capability/CapabilityUtils.java similarity index 92% rename from src/main/java/com/linearpast/sccore/capability/CapabilityUtils.java rename to src/main/java/top/leisuretimedock/animationcore/capability/CapabilityUtils.java index 70d43cc..8491c2a 100644 --- a/src/main/java/com/linearpast/sccore/capability/CapabilityUtils.java +++ b/src/main/java/top/leisuretimedock/animationcore/capability/CapabilityUtils.java @@ -1,13 +1,13 @@ -package com.linearpast.sccore.capability; +package top.leisuretimedock.animationcore.capability; -import com.linearpast.sccore.capability.data.ICapabilitySync; -import com.linearpast.sccore.capability.data.entity.EntityCapabilityHandler; -import com.linearpast.sccore.capability.data.entity.EntityCapabilityRegistry; -import com.linearpast.sccore.capability.data.player.PlayerCapabilityHandler; -import com.linearpast.sccore.capability.data.player.PlayerCapabilityRegistry; -import com.linearpast.sccore.capability.network.CapabilityChannel; -import com.linearpast.sccore.capability.network.ICapabilityPacket; -import com.linearpast.sccore.core.ModChannel; +import top.leisuretimedock.animationcore.capability.data.ICapabilitySync; +import top.leisuretimedock.animationcore.capability.data.entity.EntityCapabilityHandler; +import top.leisuretimedock.animationcore.capability.data.entity.EntityCapabilityRegistry; +import top.leisuretimedock.animationcore.capability.data.player.PlayerCapabilityHandler; +import top.leisuretimedock.animationcore.capability.data.player.PlayerCapabilityRegistry; +import top.leisuretimedock.animationcore.capability.network.CapabilityChannel; +import top.leisuretimedock.animationcore.capability.network.ICapabilityPacket; +import top.leisuretimedock.animationcore.core.ModChannel; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.entity.Entity; diff --git a/src/main/java/com/linearpast/sccore/capability/data/ICapabilitySync.java b/src/main/java/top/leisuretimedock/animationcore/capability/data/ICapabilitySync.java similarity index 92% rename from src/main/java/com/linearpast/sccore/capability/data/ICapabilitySync.java rename to src/main/java/top/leisuretimedock/animationcore/capability/data/ICapabilitySync.java index af80f66..087ba92 100644 --- a/src/main/java/com/linearpast/sccore/capability/data/ICapabilitySync.java +++ b/src/main/java/top/leisuretimedock/animationcore/capability/data/ICapabilitySync.java @@ -1,7 +1,7 @@ -package com.linearpast.sccore.capability.data; +package top.leisuretimedock.animationcore.capability.data; -import com.linearpast.sccore.capability.network.SimpleCapabilityPacket; -import com.linearpast.sccore.core.ModChannel; +import top.leisuretimedock.animationcore.capability.network.SimpleCapabilityPacket; +import top.leisuretimedock.animationcore.core.ModChannel; import net.minecraft.nbt.CompoundTag; import net.minecraft.resources.ResourceLocation; import net.minecraft.server.level.ServerPlayer; diff --git a/src/main/java/com/linearpast/sccore/capability/data/entity/EntityCapabilityHandler.java b/src/main/java/top/leisuretimedock/animationcore/capability/data/entity/EntityCapabilityHandler.java similarity index 88% rename from src/main/java/com/linearpast/sccore/capability/data/entity/EntityCapabilityHandler.java rename to src/main/java/top/leisuretimedock/animationcore/capability/data/entity/EntityCapabilityHandler.java index 1faa539..6b65836 100644 --- a/src/main/java/com/linearpast/sccore/capability/data/entity/EntityCapabilityHandler.java +++ b/src/main/java/top/leisuretimedock/animationcore/capability/data/entity/EntityCapabilityHandler.java @@ -1,7 +1,7 @@ -package com.linearpast.sccore.capability.data.entity; +package top.leisuretimedock.animationcore.capability.data.entity; -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.capability.data.ICapabilitySync; +import top.leisuretimedock.animationcore.AnimationCore; +import top.leisuretimedock.animationcore.capability.data.ICapabilitySync; import net.minecraft.world.entity.Entity; import net.minecraftforge.common.capabilities.RegisterCapabilitiesEvent; import net.minecraftforge.event.AttachCapabilitiesEvent; @@ -12,7 +12,7 @@ import net.minecraftforge.fml.common.Mod; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@Mod.EventBusSubscriber(modid = SnowyCrescentCore.MODID, bus = Mod.EventBusSubscriber.Bus.FORGE) +@Mod.EventBusSubscriber(modid = AnimationCore.MOD_ID, bus = Mod.EventBusSubscriber.Bus.FORGE) public class EntityCapabilityHandler { private static final Logger log = LoggerFactory.getLogger(EntityCapabilityHandler.class); private static boolean isRegistered = false; @@ -20,7 +20,7 @@ public class EntityCapabilityHandler { /** * It should be called in the Forge mainline to listen to the capability registration
* Suggest calling it in the Mod constructor method
- * Normally SCCore will call it, so you should not call it + * Normally AnimCore will call it, so you should not call it * @param forgeBus forge event bus */ public static void register(IEventBus forgeBus) { diff --git a/src/main/java/com/linearpast/sccore/capability/data/entity/EntityCapabilityProvider.java b/src/main/java/top/leisuretimedock/animationcore/capability/data/entity/EntityCapabilityProvider.java similarity index 92% rename from src/main/java/com/linearpast/sccore/capability/data/entity/EntityCapabilityProvider.java rename to src/main/java/top/leisuretimedock/animationcore/capability/data/entity/EntityCapabilityProvider.java index 4d27acc..c79268f 100644 --- a/src/main/java/com/linearpast/sccore/capability/data/entity/EntityCapabilityProvider.java +++ b/src/main/java/top/leisuretimedock/animationcore/capability/data/entity/EntityCapabilityProvider.java @@ -1,6 +1,6 @@ -package com.linearpast.sccore.capability.data.entity; +package top.leisuretimedock.animationcore.capability.data.entity; -import com.linearpast.sccore.capability.data.ICapabilitySync; +import top.leisuretimedock.animationcore.capability.data.ICapabilitySync; import net.minecraft.core.Direction; import net.minecraft.nbt.CompoundTag; import net.minecraft.resources.ResourceLocation; diff --git a/src/main/java/com/linearpast/sccore/capability/data/entity/EntityCapabilityRegistry.java b/src/main/java/top/leisuretimedock/animationcore/capability/data/entity/EntityCapabilityRegistry.java similarity index 94% rename from src/main/java/com/linearpast/sccore/capability/data/entity/EntityCapabilityRegistry.java rename to src/main/java/top/leisuretimedock/animationcore/capability/data/entity/EntityCapabilityRegistry.java index 960536a..dfa71aa 100644 --- a/src/main/java/com/linearpast/sccore/capability/data/entity/EntityCapabilityRegistry.java +++ b/src/main/java/top/leisuretimedock/animationcore/capability/data/entity/EntityCapabilityRegistry.java @@ -1,6 +1,6 @@ -package com.linearpast.sccore.capability.data.entity; +package top.leisuretimedock.animationcore.capability.data.entity; -import com.linearpast.sccore.capability.data.ICapabilitySync; +import top.leisuretimedock.animationcore.capability.data.ICapabilitySync; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.entity.Entity; import net.minecraftforge.common.capabilities.Capability; diff --git a/src/main/java/com/linearpast/sccore/capability/data/entity/EntityCapabilityRemainder.java b/src/main/java/top/leisuretimedock/animationcore/capability/data/entity/EntityCapabilityRemainder.java similarity index 90% rename from src/main/java/com/linearpast/sccore/capability/data/entity/EntityCapabilityRemainder.java rename to src/main/java/top/leisuretimedock/animationcore/capability/data/entity/EntityCapabilityRemainder.java index d46944c..74d182b 100644 --- a/src/main/java/com/linearpast/sccore/capability/data/entity/EntityCapabilityRemainder.java +++ b/src/main/java/top/leisuretimedock/animationcore/capability/data/entity/EntityCapabilityRemainder.java @@ -1,8 +1,8 @@ -package com.linearpast.sccore.capability.data.entity; +package top.leisuretimedock.animationcore.capability.data.entity; -import com.linearpast.sccore.capability.CapabilityUtils; -import com.linearpast.sccore.capability.data.ICapabilitySync; -import com.linearpast.sccore.capability.data.player.PlayerCapabilityRegistry; +import top.leisuretimedock.animationcore.capability.CapabilityUtils; +import top.leisuretimedock.animationcore.capability.data.ICapabilitySync; +import top.leisuretimedock.animationcore.capability.data.player.PlayerCapabilityRegistry; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.LivingEntity; diff --git a/src/main/java/com/linearpast/sccore/capability/data/entity/SimpleEntityCapabilitySync.java b/src/main/java/top/leisuretimedock/animationcore/capability/data/entity/SimpleEntityCapabilitySync.java similarity index 94% rename from src/main/java/com/linearpast/sccore/capability/data/entity/SimpleEntityCapabilitySync.java rename to src/main/java/top/leisuretimedock/animationcore/capability/data/entity/SimpleEntityCapabilitySync.java index 1061ecb..6a83157 100644 --- a/src/main/java/com/linearpast/sccore/capability/data/entity/SimpleEntityCapabilitySync.java +++ b/src/main/java/top/leisuretimedock/animationcore/capability/data/entity/SimpleEntityCapabilitySync.java @@ -1,6 +1,6 @@ -package com.linearpast.sccore.capability.data.entity; +package top.leisuretimedock.animationcore.capability.data.entity; -import com.linearpast.sccore.capability.data.ICapabilitySync; +import top.leisuretimedock.animationcore.capability.data.ICapabilitySync; import net.minecraft.nbt.CompoundTag; import net.minecraft.world.entity.Entity; @@ -12,7 +12,7 @@ import net.minecraft.world.entity.Entity; *
  * {@code
  *     public static final ResourceLocation key =
- *          new ResourceLocation(MyMod.MODID, "sheep_data");
+ *          new ResourceLocation(MyMod.MOD_ID, "sheep_data");
  *     public static Optional getCapability(Sheep sheep){
  *         return Optional.ofNullable(CapabilityUtils.getEntityCapability(
  *             player, SheepDataCapability.key, SheepDataCapability.class
diff --git a/src/main/java/com/linearpast/sccore/capability/data/player/PlayerCapabilityHandler.java b/src/main/java/top/leisuretimedock/animationcore/capability/data/player/PlayerCapabilityHandler.java
similarity index 90%
rename from src/main/java/com/linearpast/sccore/capability/data/player/PlayerCapabilityHandler.java
rename to src/main/java/top/leisuretimedock/animationcore/capability/data/player/PlayerCapabilityHandler.java
index 54189ab..496ea9c 100644
--- a/src/main/java/com/linearpast/sccore/capability/data/player/PlayerCapabilityHandler.java
+++ b/src/main/java/top/leisuretimedock/animationcore/capability/data/player/PlayerCapabilityHandler.java
@@ -1,7 +1,7 @@
-package com.linearpast.sccore.capability.data.player;
+package top.leisuretimedock.animationcore.capability.data.player;
 
-import com.linearpast.sccore.SnowyCrescentCore;
-import com.linearpast.sccore.capability.data.ICapabilitySync;
+import top.leisuretimedock.animationcore.AnimationCore;
+import top.leisuretimedock.animationcore.capability.data.ICapabilitySync;
 import net.minecraft.world.entity.player.Player;
 import net.minecraftforge.common.capabilities.RegisterCapabilitiesEvent;
 import net.minecraftforge.event.AttachCapabilitiesEvent;
@@ -12,7 +12,7 @@ import net.minecraftforge.fml.common.Mod;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-@Mod.EventBusSubscriber(modid = SnowyCrescentCore.MODID, bus = Mod.EventBusSubscriber.Bus.FORGE)
+@Mod.EventBusSubscriber(modid = AnimationCore.MOD_ID, bus = Mod.EventBusSubscriber.Bus.FORGE)
 public class PlayerCapabilityHandler {
     private static final Logger log = LoggerFactory.getLogger(PlayerCapabilityHandler.class);
     private static boolean isRegistered = false;
diff --git a/src/main/java/com/linearpast/sccore/capability/data/player/PlayerCapabilityProvider.java b/src/main/java/top/leisuretimedock/animationcore/capability/data/player/PlayerCapabilityProvider.java
similarity index 92%
rename from src/main/java/com/linearpast/sccore/capability/data/player/PlayerCapabilityProvider.java
rename to src/main/java/top/leisuretimedock/animationcore/capability/data/player/PlayerCapabilityProvider.java
index 5e3b2e7..2d801ea 100644
--- a/src/main/java/com/linearpast/sccore/capability/data/player/PlayerCapabilityProvider.java
+++ b/src/main/java/top/leisuretimedock/animationcore/capability/data/player/PlayerCapabilityProvider.java
@@ -1,6 +1,6 @@
-package com.linearpast.sccore.capability.data.player;
+package top.leisuretimedock.animationcore.capability.data.player;
 
-import com.linearpast.sccore.capability.data.ICapabilitySync;
+import top.leisuretimedock.animationcore.capability.data.ICapabilitySync;
 import net.minecraft.core.Direction;
 import net.minecraft.nbt.CompoundTag;
 import net.minecraft.resources.ResourceLocation;
diff --git a/src/main/java/com/linearpast/sccore/capability/data/player/PlayerCapabilityRegistry.java b/src/main/java/top/leisuretimedock/animationcore/capability/data/player/PlayerCapabilityRegistry.java
similarity index 93%
rename from src/main/java/com/linearpast/sccore/capability/data/player/PlayerCapabilityRegistry.java
rename to src/main/java/top/leisuretimedock/animationcore/capability/data/player/PlayerCapabilityRegistry.java
index a8837ef..0251168 100644
--- a/src/main/java/com/linearpast/sccore/capability/data/player/PlayerCapabilityRegistry.java
+++ b/src/main/java/top/leisuretimedock/animationcore/capability/data/player/PlayerCapabilityRegistry.java
@@ -1,6 +1,6 @@
-package com.linearpast.sccore.capability.data.player;
+package top.leisuretimedock.animationcore.capability.data.player;
 
-import com.linearpast.sccore.capability.data.ICapabilitySync;
+import top.leisuretimedock.animationcore.capability.data.ICapabilitySync;
 import net.minecraft.resources.ResourceLocation;
 import net.minecraft.world.entity.player.Player;
 import net.minecraftforge.common.capabilities.Capability;
diff --git a/src/main/java/com/linearpast/sccore/capability/data/player/PlayerCapabilityRemainder.java b/src/main/java/top/leisuretimedock/animationcore/capability/data/player/PlayerCapabilityRemainder.java
similarity index 94%
rename from src/main/java/com/linearpast/sccore/capability/data/player/PlayerCapabilityRemainder.java
rename to src/main/java/top/leisuretimedock/animationcore/capability/data/player/PlayerCapabilityRemainder.java
index 4304f5f..e304574 100644
--- a/src/main/java/com/linearpast/sccore/capability/data/player/PlayerCapabilityRemainder.java
+++ b/src/main/java/top/leisuretimedock/animationcore/capability/data/player/PlayerCapabilityRemainder.java
@@ -1,7 +1,7 @@
-package com.linearpast.sccore.capability.data.player;
+package top.leisuretimedock.animationcore.capability.data.player;
 
-import com.linearpast.sccore.capability.CapabilityUtils;
-import com.linearpast.sccore.capability.data.ICapabilitySync;
+import top.leisuretimedock.animationcore.capability.CapabilityUtils;
+import top.leisuretimedock.animationcore.capability.data.ICapabilitySync;
 import net.minecraft.server.level.ServerPlayer;
 import net.minecraft.world.entity.player.Player;
 import net.minecraftforge.event.TickEvent;
diff --git a/src/main/java/com/linearpast/sccore/capability/data/player/SimplePlayerCapabilitySync.java b/src/main/java/top/leisuretimedock/animationcore/capability/data/player/SimplePlayerCapabilitySync.java
similarity index 92%
rename from src/main/java/com/linearpast/sccore/capability/data/player/SimplePlayerCapabilitySync.java
rename to src/main/java/top/leisuretimedock/animationcore/capability/data/player/SimplePlayerCapabilitySync.java
index e99424f..3d7021c 100644
--- a/src/main/java/com/linearpast/sccore/capability/data/player/SimplePlayerCapabilitySync.java
+++ b/src/main/java/top/leisuretimedock/animationcore/capability/data/player/SimplePlayerCapabilitySync.java
@@ -1,7 +1,7 @@
-package com.linearpast.sccore.capability.data.player;
+package top.leisuretimedock.animationcore.capability.data.player;
 
-import com.linearpast.sccore.capability.data.ICapabilitySync;
-import com.linearpast.sccore.capability.data.entity.SimpleEntityCapabilitySync;
+import top.leisuretimedock.animationcore.capability.data.ICapabilitySync;
+import top.leisuretimedock.animationcore.capability.data.entity.SimpleEntityCapabilitySync;
 import net.minecraft.nbt.CompoundTag;
 import net.minecraft.world.entity.player.Player;
 
@@ -15,7 +15,7 @@ import java.util.UUID;
  * 
  * {@code
  *     public static final ResourceLocation key =
- *          new ResourceLocation(MyMod.MODID, "my_data");
+ *          new ResourceLocation(MyMod.MOD_ID, "my_data");
  *     public static Optional getCapability(Player player){
  *         return Optional.ofNullable(CapabilityUtils.getPlayerCapability(
  *             player, MyDataCapability.key, MyDataCapability.class
diff --git a/src/main/java/com/linearpast/sccore/capability/network/CapabilityChannel.java b/src/main/java/top/leisuretimedock/animationcore/capability/network/CapabilityChannel.java
similarity index 86%
rename from src/main/java/com/linearpast/sccore/capability/network/CapabilityChannel.java
rename to src/main/java/top/leisuretimedock/animationcore/capability/network/CapabilityChannel.java
index 984ed3c..d311a67 100644
--- a/src/main/java/com/linearpast/sccore/capability/network/CapabilityChannel.java
+++ b/src/main/java/top/leisuretimedock/animationcore/capability/network/CapabilityChannel.java
@@ -1,4 +1,4 @@
-package com.linearpast.sccore.capability.network;
+package top.leisuretimedock.animationcore.capability.network;
 
 import net.minecraft.network.FriendlyByteBuf;
 import net.minecraftforge.network.NetworkDirection;
@@ -12,11 +12,11 @@ import java.util.function.Supplier;
 /**
  * Call createChannel in the Mod main class construction method logic. There are two ways:
*
- * 1. {@link com.linearpast.sccore.capability.CapabilityUtils#createChannel(SimpleChannel)}
+ * 1. {@link top.leisuretimedock.animationcore.capability.CapabilityUtils#createChannel(SimpleChannel)}
  * If you do this, you must override all the sendToPlayer methods in the Capability class, and call your Channel in the override
  * 
*
- * 2. {@link com.linearpast.sccore.capability.CapabilityUtils#createChannel()}
+ * 2. {@link top.leisuretimedock.animationcore.capability.CapabilityUtils#createChannel()}
  * If this is done, the network package will be registered with SCCore's Channel
  * 
* The added network packet must implement the ICapabilityPacket interface diff --git a/src/main/java/com/linearpast/sccore/capability/network/ICapabilityPacket.java b/src/main/java/top/leisuretimedock/animationcore/capability/network/ICapabilityPacket.java similarity index 90% rename from src/main/java/com/linearpast/sccore/capability/network/ICapabilityPacket.java rename to src/main/java/top/leisuretimedock/animationcore/capability/network/ICapabilityPacket.java index edeeb34..159f0d2 100644 --- a/src/main/java/com/linearpast/sccore/capability/network/ICapabilityPacket.java +++ b/src/main/java/top/leisuretimedock/animationcore/capability/network/ICapabilityPacket.java @@ -1,6 +1,6 @@ -package com.linearpast.sccore.capability.network; +package top.leisuretimedock.animationcore.capability.network; -import com.linearpast.sccore.capability.data.ICapabilitySync; +import top.leisuretimedock.animationcore.capability.data.ICapabilitySync; import net.minecraft.nbt.CompoundTag; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.world.entity.Entity; diff --git a/src/main/java/com/linearpast/sccore/capability/network/SimpleCapabilityPacket.java b/src/main/java/top/leisuretimedock/animationcore/capability/network/SimpleCapabilityPacket.java similarity index 80% rename from src/main/java/com/linearpast/sccore/capability/network/SimpleCapabilityPacket.java rename to src/main/java/top/leisuretimedock/animationcore/capability/network/SimpleCapabilityPacket.java index 54d1589..8526546 100644 --- a/src/main/java/com/linearpast/sccore/capability/network/SimpleCapabilityPacket.java +++ b/src/main/java/top/leisuretimedock/animationcore/capability/network/SimpleCapabilityPacket.java @@ -1,10 +1,10 @@ -package com.linearpast.sccore.capability.network; +package top.leisuretimedock.animationcore.capability.network; -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.capability.CapabilityUtils; -import com.linearpast.sccore.capability.data.ICapabilitySync; -import com.linearpast.sccore.capability.data.entity.SimpleEntityCapabilitySync; -import com.linearpast.sccore.capability.data.player.SimplePlayerCapabilitySync; +import top.leisuretimedock.animationcore.AnimationCore; +import top.leisuretimedock.animationcore.capability.CapabilityUtils; +import top.leisuretimedock.animationcore.capability.data.ICapabilitySync; +import top.leisuretimedock.animationcore.capability.data.entity.SimpleEntityCapabilitySync; +import top.leisuretimedock.animationcore.capability.data.player.SimplePlayerCapabilitySync; import net.minecraft.client.Minecraft; import net.minecraft.client.multiplayer.ClientLevel; import net.minecraft.nbt.CompoundTag; @@ -72,7 +72,7 @@ public class SimpleCapabilityPacket implements ICapabilityPack try { ICapabilitySync data = CapabilityUtils.getCapability(entity, key); if(data == null) { - SnowyCrescentCore.log.error("key {} not found when sync capability on entity {}", key, entity); + AnimationCore.log.error("key {} not found when sync capability on entity {}", key, entity); return; } syncData(nbt, data); diff --git a/src/main/java/com/linearpast/sccore/core/IModLazyRun.java b/src/main/java/top/leisuretimedock/animationcore/core/IModLazyRun.java similarity index 95% rename from src/main/java/com/linearpast/sccore/core/IModLazyRun.java rename to src/main/java/top/leisuretimedock/animationcore/core/IModLazyRun.java index d5eeab9..6bef27b 100644 --- a/src/main/java/com/linearpast/sccore/core/IModLazyRun.java +++ b/src/main/java/top/leisuretimedock/animationcore/core/IModLazyRun.java @@ -1,4 +1,4 @@ -package com.linearpast.sccore.core; +package top.leisuretimedock.animationcore.core; import java.util.concurrent.Callable; diff --git a/src/main/java/com/linearpast/sccore/core/ModChannel.java b/src/main/java/top/leisuretimedock/animationcore/core/ModChannel.java similarity index 84% rename from src/main/java/com/linearpast/sccore/core/ModChannel.java rename to src/main/java/top/leisuretimedock/animationcore/core/ModChannel.java index da9ef80..a9fb383 100644 --- a/src/main/java/com/linearpast/sccore/core/ModChannel.java +++ b/src/main/java/top/leisuretimedock/animationcore/core/ModChannel.java @@ -1,6 +1,6 @@ -package com.linearpast.sccore.core; +package top.leisuretimedock.animationcore.core; -import com.linearpast.sccore.SnowyCrescentCore; +import top.leisuretimedock.animationcore.AnimationCore; import net.minecraft.resources.ResourceLocation; import net.minecraft.server.level.ServerPlayer; import net.minecraftforge.fml.ModList; @@ -11,11 +11,11 @@ import net.minecraftforge.network.simple.SimpleChannel; public class ModChannel { private static int cid = 0; private static final String PROTOCOL_VERSION = ModList.get() - .getModContainerById(SnowyCrescentCore.MODID) + .getModContainerById(AnimationCore.MOD_ID) .map(c -> c.getModInfo().getVersion().toString()) .orElse("unknown"); public static final SimpleChannel INSTANCE = NetworkRegistry.newSimpleChannel( - new ResourceLocation(SnowyCrescentCore.MODID, SnowyCrescentCore.MODID), + new ResourceLocation(AnimationCore.MOD_ID, AnimationCore.MOD_ID), () -> PROTOCOL_VERSION, PROTOCOL_VERSION::equals, PROTOCOL_VERSION::equals diff --git a/src/main/java/com/linearpast/sccore/core/ModCommands.java b/src/main/java/top/leisuretimedock/animationcore/core/ModCommands.java similarity index 85% rename from src/main/java/com/linearpast/sccore/core/ModCommands.java rename to src/main/java/top/leisuretimedock/animationcore/core/ModCommands.java index 6d832e8..ee7a264 100644 --- a/src/main/java/com/linearpast/sccore/core/ModCommands.java +++ b/src/main/java/top/leisuretimedock/animationcore/core/ModCommands.java @@ -1,7 +1,7 @@ -package com.linearpast.sccore.core; +package top.leisuretimedock.animationcore.core; -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.animation.register.AnimationCommands; +import top.leisuretimedock.animationcore.AnimationCore; +import top.leisuretimedock.animationcore.animation.register.AnimationCommands; import com.mojang.brigadier.builder.LiteralArgumentBuilder; import net.minecraft.commands.CommandBuildContext; import net.minecraft.commands.CommandSourceStack; @@ -18,7 +18,7 @@ import java.util.Set; import static net.minecraft.commands.Commands.literal; public class ModCommands { - static final Set animationCommand = new HashSet<>(Set.of(SnowyCrescentCore.MODID, "sc", "scc")); + static final Set animationCommand = new HashSet<>(Set.of(AnimationCore.MOD_ID, "animationcore", "ac")); public static void addCommandAlias(String alias) { animationCommand.add(alias); } @@ -36,7 +36,6 @@ public class ModCommands { public static void commonCommandRegister(RegisterCommandsEvent event) { animationCommand.forEach(string -> { LiteralArgumentBuilder builder = literal(string); - CommandBuildContext buildContext = event.getBuildContext(); AnimationCommands.commonCommandRegister(builder); event.getDispatcher().register(builder); @@ -54,7 +53,7 @@ public class ModCommands { public static class Arguments { public static final DeferredRegister> REGISTRY = DeferredRegister.create( - ForgeRegistries.Keys.COMMAND_ARGUMENT_TYPES, SnowyCrescentCore.MODID + ForgeRegistries.Keys.COMMAND_ARGUMENT_TYPES, AnimationCore.MOD_ID ); public static void register(IEventBus eventBus) { AnimationCommands.registerArguments(REGISTRY); diff --git a/src/main/java/com/linearpast/sccore/core/ModCompatRun.java b/src/main/java/top/leisuretimedock/animationcore/core/ModCompatRun.java similarity index 94% rename from src/main/java/com/linearpast/sccore/core/ModCompatRun.java rename to src/main/java/top/leisuretimedock/animationcore/core/ModCompatRun.java index bc508db..310b58b 100644 --- a/src/main/java/com/linearpast/sccore/core/ModCompatRun.java +++ b/src/main/java/top/leisuretimedock/animationcore/core/ModCompatRun.java @@ -1,4 +1,4 @@ -package com.linearpast.sccore.core; +package top.leisuretimedock.animationcore.core; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.eventbus.api.IEventBus; diff --git a/src/main/java/com/linearpast/sccore/core/configs/ModConfigs.java b/src/main/java/top/leisuretimedock/animationcore/core/configs/ModConfigs.java similarity index 98% rename from src/main/java/com/linearpast/sccore/core/configs/ModConfigs.java rename to src/main/java/top/leisuretimedock/animationcore/core/configs/ModConfigs.java index 32273c8..2af15dd 100644 --- a/src/main/java/com/linearpast/sccore/core/configs/ModConfigs.java +++ b/src/main/java/top/leisuretimedock/animationcore/core/configs/ModConfigs.java @@ -1,4 +1,4 @@ -package com.linearpast.sccore.core.configs; +package top.leisuretimedock.animationcore.core.configs; import net.minecraftforge.common.ForgeConfigSpec; diff --git a/src/main/java/com/linearpast/sccore/core/datagen/DataGenEvent.java b/src/main/java/top/leisuretimedock/animationcore/core/datagen/DataGenEvent.java similarity index 71% rename from src/main/java/com/linearpast/sccore/core/datagen/DataGenEvent.java rename to src/main/java/top/leisuretimedock/animationcore/core/datagen/DataGenEvent.java index 89a2b60..1cf6e39 100644 --- a/src/main/java/com/linearpast/sccore/core/datagen/DataGenEvent.java +++ b/src/main/java/top/leisuretimedock/animationcore/core/datagen/DataGenEvent.java @@ -1,9 +1,9 @@ -package com.linearpast.sccore.core.datagen; +package top.leisuretimedock.animationcore.core.datagen; -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.core.datagen.provider.ModAnimationLayerProvider; -import com.linearpast.sccore.core.datagen.provider.ModAnimationProvider; -import com.linearpast.sccore.core.datagen.provider.ModLangProvider; +import top.leisuretimedock.animationcore.AnimationCore; +import top.leisuretimedock.animationcore.core.datagen.provider.ModAnimationLayerProvider; +import top.leisuretimedock.animationcore.core.datagen.provider.ModAnimationProvider; +import top.leisuretimedock.animationcore.core.datagen.provider.ModLangProvider; import net.minecraft.core.HolderLookup; import net.minecraft.data.DataGenerator; import net.minecraft.data.PackOutput; @@ -14,7 +14,7 @@ import net.minecraftforge.fml.common.Mod; import java.util.concurrent.CompletableFuture; -@Mod.EventBusSubscriber(modid = SnowyCrescentCore.MODID, bus = Mod.EventBusSubscriber.Bus.MOD) +@Mod.EventBusSubscriber(modid = AnimationCore.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD) public class DataGenEvent { @SubscribeEvent diff --git a/src/main/java/com/linearpast/sccore/core/datagen/ModLang.java b/src/main/java/top/leisuretimedock/animationcore/core/datagen/ModLang.java similarity index 96% rename from src/main/java/com/linearpast/sccore/core/datagen/ModLang.java rename to src/main/java/top/leisuretimedock/animationcore/core/datagen/ModLang.java index ec01b8b..3edeb0b 100644 --- a/src/main/java/com/linearpast/sccore/core/datagen/ModLang.java +++ b/src/main/java/top/leisuretimedock/animationcore/core/datagen/ModLang.java @@ -1,6 +1,6 @@ -package com.linearpast.sccore.core.datagen; +package top.leisuretimedock.animationcore.core.datagen; -import com.linearpast.sccore.SnowyCrescentCore; +import top.leisuretimedock.animationcore.AnimationCore; import net.minecraft.sounds.SoundEvent; import java.util.ArrayList; @@ -9,7 +9,7 @@ import java.util.List; public class ModLang { public record LangEntity(T key, String zhCn, String enUs) { } public static final List> langList = new ArrayList<>(); - private final static String translationString = "translation." + SnowyCrescentCore.MODID; + private final static String translationString = "translation." + AnimationCore.MOD_ID; private final static String command = ".command"; private static final String animation = ".animation"; public enum TranslatableMessage{ @@ -188,6 +188,6 @@ public class ModLang { } public static String getSoundKey(SoundEvent soundEvent){ - return "subtitle." + SnowyCrescentCore.MODID + ".sound." + soundEvent.getLocation().getPath(); + return "subtitle." + AnimationCore.MOD_ID + ".sound." + soundEvent.getLocation().getPath(); } } diff --git a/src/main/java/top/leisuretimedock/animationcore/core/datagen/provider/ModAnimationLayerProvider.java b/src/main/java/top/leisuretimedock/animationcore/core/datagen/provider/ModAnimationLayerProvider.java new file mode 100644 index 0000000..a87d520 --- /dev/null +++ b/src/main/java/top/leisuretimedock/animationcore/core/datagen/provider/ModAnimationLayerProvider.java @@ -0,0 +1,20 @@ +package top.leisuretimedock.animationcore.core.datagen.provider; + +import top.leisuretimedock.animationcore.AnimationCore; + +import top.leisuretimedock.animationcore.animation.data.util.ACAnimationLayerProvider; +import top.leisuretimedock.animationcore.example.animation.ModAnimation; +import net.minecraft.data.DataGenerator; + +public class ModAnimationLayerProvider extends ACAnimationLayerProvider { + public ModAnimationLayerProvider(DataGenerator generator) { + super(generator, AnimationCore.MOD_ID); + } + + + @Override + protected LayerBuilder createLayerData() { + return LayerBuilder.create() + .addCustomLayer(ModAnimation.normalLayers, 42); + } +} diff --git a/src/main/java/com/linearpast/sccore/core/datagen/provider/ModAnimationProvider.java b/src/main/java/top/leisuretimedock/animationcore/core/datagen/provider/ModAnimationProvider.java similarity index 62% rename from src/main/java/com/linearpast/sccore/core/datagen/provider/ModAnimationProvider.java rename to src/main/java/top/leisuretimedock/animationcore/core/datagen/provider/ModAnimationProvider.java index c6a4e32..361ee4c 100644 --- a/src/main/java/com/linearpast/sccore/core/datagen/provider/ModAnimationProvider.java +++ b/src/main/java/top/leisuretimedock/animationcore/core/datagen/provider/ModAnimationProvider.java @@ -1,21 +1,21 @@ -package com.linearpast.sccore.core.datagen.provider; +package top.leisuretimedock.animationcore.core.datagen.provider; -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.animation.data.GenericAnimationData; -import com.linearpast.sccore.animation.data.Ride; -import com.linearpast.sccore.animation.data.util.SCCAnimationProvider; +import top.leisuretimedock.animationcore.AnimationCore; +import top.leisuretimedock.animationcore.animation.data.GenericAnimationData; +import top.leisuretimedock.animationcore.animation.data.Ride; +import top.leisuretimedock.animationcore.animation.data.util.ACAnimationProvider; import net.minecraft.data.DataGenerator; import net.minecraft.world.phys.Vec3; import java.util.function.Consumer; -import static com.linearpast.sccore.example.animation.ModAnimation.WaltzGentleman; -import static com.linearpast.sccore.example.animation.ModAnimation.WaltzLady; +import static top.leisuretimedock.animationcore.example.animation.ModAnimation.WaltzGentleman; +import static top.leisuretimedock.animationcore.example.animation.ModAnimation.WaltzLady; -public class ModAnimationProvider extends SCCAnimationProvider { +public class ModAnimationProvider extends ACAnimationProvider { public ModAnimationProvider(DataGenerator generator) { - super(generator, SnowyCrescentCore.MODID); + super(generator, AnimationCore.MOD_ID); } @Override diff --git a/src/main/java/com/linearpast/sccore/core/datagen/provider/ModLangProvider.java b/src/main/java/top/leisuretimedock/animationcore/core/datagen/provider/ModLangProvider.java similarity index 89% rename from src/main/java/com/linearpast/sccore/core/datagen/provider/ModLangProvider.java rename to src/main/java/top/leisuretimedock/animationcore/core/datagen/provider/ModLangProvider.java index ba3735b..d7b69cd 100644 --- a/src/main/java/com/linearpast/sccore/core/datagen/provider/ModLangProvider.java +++ b/src/main/java/top/leisuretimedock/animationcore/core/datagen/provider/ModLangProvider.java @@ -1,7 +1,7 @@ -package com.linearpast.sccore.core.datagen.provider; +package top.leisuretimedock.animationcore.core.datagen.provider; -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.core.datagen.ModLang; +import top.leisuretimedock.animationcore.AnimationCore; +import top.leisuretimedock.animationcore.core.datagen.ModLang; import net.minecraft.data.PackOutput; import net.minecraft.sounds.SoundEvent; import net.minecraft.world.effect.MobEffect; @@ -22,7 +22,7 @@ public class ModLangProvider extends LanguageProvider { } public ModLangProvider(PackOutput output, Lang lang) { - super(output, SnowyCrescentCore.MODID, lang.getLangName()); + super(output, AnimationCore.MOD_ID, lang.getLangName()); this.lang = lang; } diff --git a/src/main/java/com/linearpast/sccore/example/animation/ModAnimation.java b/src/main/java/top/leisuretimedock/animationcore/example/animation/ModAnimation.java similarity index 82% rename from src/main/java/com/linearpast/sccore/example/animation/ModAnimation.java rename to src/main/java/top/leisuretimedock/animationcore/example/animation/ModAnimation.java index a553738..40a24ea 100644 --- a/src/main/java/com/linearpast/sccore/example/animation/ModAnimation.java +++ b/src/main/java/top/leisuretimedock/animationcore/example/animation/ModAnimation.java @@ -1,11 +1,11 @@ -package com.linearpast.sccore.example.animation; +package top.leisuretimedock.animationcore.example.animation; -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.animation.data.GenericAnimationData; -import com.linearpast.sccore.animation.data.Ride; -import com.linearpast.sccore.animation.event.create.AnimationRegisterEvent; -import com.linearpast.sccore.animation.service.AnimationService; -import com.linearpast.sccore.example.animation.event.ExamplePlayerAttackEvent; +import top.leisuretimedock.animationcore.AnimationCore; +import top.leisuretimedock.animationcore.animation.data.GenericAnimationData; +import top.leisuretimedock.animationcore.animation.data.Ride; +import top.leisuretimedock.animationcore.animation.event.create.AnimationRegisterEvent; +import top.leisuretimedock.animationcore.animation.service.AnimationService; +import top.leisuretimedock.animationcore.example.animation.event.ExamplePlayerAttackEvent; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.phys.Vec3; import net.minecraftforge.api.distmarker.Dist; @@ -19,18 +19,18 @@ public class ModAnimation { /** * This is an animation layer */ - public static final ResourceLocation normalLayers = new ResourceLocation(SnowyCrescentCore.MODID, "normal_layers"); + public static final ResourceLocation normalLayers = new ResourceLocation(AnimationCore.MOD_ID, "normal_layers"); /** *
      * They are animations
-     * {@code new ResourceLocation(modid, name)}
-     * Resource from "assets/{modid}/player_animation/{name}.json"
+ * {@code new ResourceLocation(MOD_ID, name)} + * Resource from "assets/{MOD_ID}/player_animation/{name}.json"
*/ - public static final ResourceLocation AmLyingToRightLying = new ResourceLocation(SnowyCrescentCore.MODID, "am_lying_to_right_lying"); - public static final ResourceLocation AmStandToLying = new ResourceLocation(SnowyCrescentCore.MODID, "am_stand_to_lying"); - public static final ResourceLocation WaltzGentleman = new ResourceLocation(SnowyCrescentCore.MODID, "waltz_gentleman"); - public static final ResourceLocation WaltzLady = new ResourceLocation(SnowyCrescentCore.MODID, "waltz_lady"); + public static final ResourceLocation AmLyingToRightLying = new ResourceLocation(AnimationCore.MOD_ID, "am_lying_to_right_lying"); + public static final ResourceLocation AmStandToLying = new ResourceLocation(AnimationCore.MOD_ID, "am_stand_to_lying"); + public static final ResourceLocation WaltzGentleman = new ResourceLocation(AnimationCore.MOD_ID, "waltz_gentleman"); + public static final ResourceLocation WaltzLady = new ResourceLocation(AnimationCore.MOD_ID, "waltz_lady"); /** * You can register animation layer by event or json
diff --git a/src/main/java/com/linearpast/sccore/example/animation/event/ExamplePlayerAttackEvent.java b/src/main/java/top/leisuretimedock/animationcore/example/animation/event/ExamplePlayerAttackEvent.java similarity index 90% rename from src/main/java/com/linearpast/sccore/example/animation/event/ExamplePlayerAttackEvent.java rename to src/main/java/top/leisuretimedock/animationcore/example/animation/event/ExamplePlayerAttackEvent.java index 20419a7..b580d9f 100644 --- a/src/main/java/com/linearpast/sccore/example/animation/event/ExamplePlayerAttackEvent.java +++ b/src/main/java/top/leisuretimedock/animationcore/example/animation/event/ExamplePlayerAttackEvent.java @@ -1,8 +1,8 @@ -package com.linearpast.sccore.example.animation.event; +package top.leisuretimedock.animationcore.example.animation.event; -import com.linearpast.sccore.animation.service.AnimationService; -import com.linearpast.sccore.animation.service.RawAnimationService; -import com.linearpast.sccore.example.animation.ModAnimation; +import top.leisuretimedock.animationcore.animation.service.AnimationService; +import top.leisuretimedock.animationcore.animation.service.RawAnimationService; +import top.leisuretimedock.animationcore.example.animation.ModAnimation; import net.minecraft.client.Minecraft; import net.minecraft.client.player.AbstractClientPlayer; import net.minecraft.client.player.LocalPlayer; diff --git a/src/main/java/com/linearpast/sccore/example/capability/ModCapability.java b/src/main/java/top/leisuretimedock/animationcore/example/capability/ModCapability.java similarity index 82% rename from src/main/java/com/linearpast/sccore/example/capability/ModCapability.java rename to src/main/java/top/leisuretimedock/animationcore/example/capability/ModCapability.java index acbe0c2..451ca28 100644 --- a/src/main/java/com/linearpast/sccore/example/capability/ModCapability.java +++ b/src/main/java/top/leisuretimedock/animationcore/example/capability/ModCapability.java @@ -1,12 +1,12 @@ -package com.linearpast.sccore.example.capability; +package top.leisuretimedock.animationcore.example.capability; -import com.linearpast.sccore.capability.CapabilityUtils; -import com.linearpast.sccore.capability.data.entity.EntityCapabilityRegistry; -import com.linearpast.sccore.capability.network.CapabilityChannel; -import com.linearpast.sccore.core.ModChannel; -import com.linearpast.sccore.example.capability.data.ISheepData; -import com.linearpast.sccore.example.capability.data.SheepDataCapability; -import com.linearpast.sccore.example.capability.event.PlayerAttackEvent; +import top.leisuretimedock.animationcore.capability.CapabilityUtils; +import top.leisuretimedock.animationcore.capability.data.entity.EntityCapabilityRegistry; +import top.leisuretimedock.animationcore.capability.network.CapabilityChannel; +import top.leisuretimedock.animationcore.core.ModChannel; +import top.leisuretimedock.animationcore.example.capability.data.ISheepData; +import top.leisuretimedock.animationcore.example.capability.data.SheepDataCapability; +import top.leisuretimedock.animationcore.example.capability.event.PlayerAttackEvent; import net.minecraft.world.entity.animal.Sheep; import net.minecraftforge.common.capabilities.CapabilityManager; import net.minecraftforge.common.capabilities.CapabilityToken; diff --git a/src/main/java/com/linearpast/sccore/example/capability/data/ISheepData.java b/src/main/java/top/leisuretimedock/animationcore/example/capability/data/ISheepData.java similarity index 73% rename from src/main/java/com/linearpast/sccore/example/capability/data/ISheepData.java rename to src/main/java/top/leisuretimedock/animationcore/example/capability/data/ISheepData.java index b7e49bc..a5869a7 100644 --- a/src/main/java/com/linearpast/sccore/example/capability/data/ISheepData.java +++ b/src/main/java/top/leisuretimedock/animationcore/example/capability/data/ISheepData.java @@ -1,6 +1,6 @@ -package com.linearpast.sccore.example.capability.data; +package top.leisuretimedock.animationcore.example.capability.data; -import com.linearpast.sccore.capability.data.ICapabilitySync; +import top.leisuretimedock.animationcore.capability.data.ICapabilitySync; import net.minecraft.world.entity.animal.Sheep; /** diff --git a/src/main/java/com/linearpast/sccore/example/capability/data/SheepDataCapability.java b/src/main/java/top/leisuretimedock/animationcore/example/capability/data/SheepDataCapability.java similarity index 85% rename from src/main/java/com/linearpast/sccore/example/capability/data/SheepDataCapability.java rename to src/main/java/top/leisuretimedock/animationcore/example/capability/data/SheepDataCapability.java index 23ce494..aaf2544 100644 --- a/src/main/java/com/linearpast/sccore/example/capability/data/SheepDataCapability.java +++ b/src/main/java/top/leisuretimedock/animationcore/example/capability/data/SheepDataCapability.java @@ -1,10 +1,10 @@ -package com.linearpast.sccore.example.capability.data; +package top.leisuretimedock.animationcore.example.capability.data; -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.capability.CapabilityUtils; -import com.linearpast.sccore.capability.data.ICapabilitySync; -import com.linearpast.sccore.capability.data.entity.SimpleEntityCapabilitySync; -import com.linearpast.sccore.capability.network.SimpleCapabilityPacket; +import top.leisuretimedock.animationcore.AnimationCore; +import top.leisuretimedock.animationcore.capability.CapabilityUtils; +import top.leisuretimedock.animationcore.capability.data.ICapabilitySync; +import top.leisuretimedock.animationcore.capability.data.entity.SimpleEntityCapabilitySync; +import top.leisuretimedock.animationcore.capability.network.SimpleCapabilityPacket; import net.minecraft.nbt.CompoundTag; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.resources.ResourceLocation; @@ -20,7 +20,7 @@ import java.util.Optional; * @see SimpleEntityCapabilitySync */ public class SheepDataCapability extends SimpleEntityCapabilitySync implements ISheepData { - public static final ResourceLocation key = new ResourceLocation(SnowyCrescentCore.MODID, "sheep_data"); + public static final ResourceLocation key = new ResourceLocation(AnimationCore.MOD_ID, "sheep_data"); public static final String Value = "Value"; @@ -70,7 +70,7 @@ public class SheepDataCapability extends SimpleEntityCapabilitySync imple /** * Network packet, you can rewrite any method inside. For the function of methods, please refer to
- * {@link com.linearpast.sccore.capability.network.ICapabilityPacket}
+ * {@link top.leisuretimedock.animationcore.capability.network.ICapabilityPacket}
* It is not necessary to include it in the internal class. I feel that the content is too limited and writing it inside makes it more compact and beautiful * @see SimpleCapabilityPacket */ @@ -98,7 +98,7 @@ public class SheepDataCapability extends SimpleEntityCapabilitySync imple */ @Override public ResourceLocation getKey() { - return new ResourceLocation(SnowyCrescentCore.MODID, "sheep_data"); + return new ResourceLocation(AnimationCore.MOD_ID, "sheep_data"); } /** diff --git a/src/main/java/com/linearpast/sccore/example/capability/event/PlayerAttackEvent.java b/src/main/java/top/leisuretimedock/animationcore/example/capability/event/PlayerAttackEvent.java similarity index 87% rename from src/main/java/com/linearpast/sccore/example/capability/event/PlayerAttackEvent.java rename to src/main/java/top/leisuretimedock/animationcore/example/capability/event/PlayerAttackEvent.java index 6925994..3c012c4 100644 --- a/src/main/java/com/linearpast/sccore/example/capability/event/PlayerAttackEvent.java +++ b/src/main/java/top/leisuretimedock/animationcore/example/capability/event/PlayerAttackEvent.java @@ -1,6 +1,6 @@ -package com.linearpast.sccore.example.capability.event; +package top.leisuretimedock.animationcore.example.capability.event; -import com.linearpast.sccore.example.capability.data.SheepDataCapability; +import top.leisuretimedock.animationcore.example.capability.data.SheepDataCapability; import net.minecraft.network.chat.Component; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.Entity; diff --git a/src/main/java/com/linearpast/sccore/mixin/SCCoreMixinPlugin.java b/src/main/java/top/leisuretimedock/animationcore/mixin/AnimCoreMixinPlugin.java similarity index 78% rename from src/main/java/com/linearpast/sccore/mixin/SCCoreMixinPlugin.java rename to src/main/java/top/leisuretimedock/animationcore/mixin/AnimCoreMixinPlugin.java index 11ca04f..741d9b8 100644 --- a/src/main/java/com/linearpast/sccore/mixin/SCCoreMixinPlugin.java +++ b/src/main/java/top/leisuretimedock/animationcore/mixin/AnimCoreMixinPlugin.java @@ -1,7 +1,7 @@ -package com.linearpast.sccore.mixin; +package top.leisuretimedock.animationcore.mixin; -import com.linearpast.sccore.SnowyCrescentCore; -import com.linearpast.sccore.animation.service.AnimationService; +import top.leisuretimedock.animationcore.AnimationCore; +import top.leisuretimedock.animationcore.animation.service.AnimationService; import net.minecraftforge.fml.loading.LoadingModList; import net.minecraftforge.fml.loading.moddiscovery.ModInfo; import org.objectweb.asm.tree.ClassNode; @@ -11,7 +11,7 @@ import org.spongepowered.asm.mixin.extensibility.IMixinInfo; import java.util.List; import java.util.Set; -public class SCCoreMixinPlugin implements IMixinConfigPlugin { +public class AnimCoreMixinPlugin implements IMixinConfigPlugin { @Override public void onLoad(String s) { @@ -27,7 +27,7 @@ public class SCCoreMixinPlugin implements IMixinConfigPlugin { if (targetClassName.startsWith("runData.")) { return "runData".equals(System.getProperty("gradle.task")); } - if (mixinClassName.startsWith("com.linearpast." + SnowyCrescentCore.MODID + ".mixin.animation.")) { + if (mixinClassName.startsWith("top.leisuretimedock." + AnimationCore.MOD_ID + ".mixin.animation.")) { return LoadingModList.get().getMods().stream().map(ModInfo::getModId).anyMatch( s -> s.equals(AnimationService.AnimModId) ); diff --git a/src/main/java/com/linearpast/sccore/mixin/animation/MixinEntity.java b/src/main/java/top/leisuretimedock/animationcore/mixin/animation/MixinEntity.java similarity index 88% rename from src/main/java/com/linearpast/sccore/mixin/animation/MixinEntity.java rename to src/main/java/top/leisuretimedock/animationcore/mixin/animation/MixinEntity.java index 1e79d7c..850d66c 100644 --- a/src/main/java/com/linearpast/sccore/mixin/animation/MixinEntity.java +++ b/src/main/java/top/leisuretimedock/animationcore/mixin/animation/MixinEntity.java @@ -1,9 +1,9 @@ -package com.linearpast.sccore.mixin.animation; +package top.leisuretimedock.animationcore.mixin.animation; -import com.linearpast.sccore.animation.data.AnimationData; -import com.linearpast.sccore.animation.data.GenericAnimationData; -import com.linearpast.sccore.animation.service.AnimationService; -import com.linearpast.sccore.animation.utils.AnimationUtils; +import top.leisuretimedock.animationcore.animation.data.AnimationData; +import top.leisuretimedock.animationcore.animation.data.GenericAnimationData; +import top.leisuretimedock.animationcore.animation.service.AnimationService; +import top.leisuretimedock.animationcore.animation.utils.AnimationUtils; import com.llamalad7.mixinextras.injector.ModifyReturnValue; import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.Pose; diff --git a/src/main/java/com/linearpast/sccore/mixin/animation/client/MixinEntity.java b/src/main/java/top/leisuretimedock/animationcore/mixin/animation/client/MixinEntity.java similarity index 90% rename from src/main/java/com/linearpast/sccore/mixin/animation/client/MixinEntity.java rename to src/main/java/top/leisuretimedock/animationcore/mixin/animation/client/MixinEntity.java index 872a0da..c7ccb68 100644 --- a/src/main/java/com/linearpast/sccore/mixin/animation/client/MixinEntity.java +++ b/src/main/java/top/leisuretimedock/animationcore/mixin/animation/client/MixinEntity.java @@ -1,7 +1,7 @@ -package com.linearpast.sccore.mixin.animation.client; +package top.leisuretimedock.animationcore.mixin.animation.client; -import com.linearpast.sccore.animation.data.GenericAnimationData; -import com.linearpast.sccore.animation.utils.AnimationUtils; +import top.leisuretimedock.animationcore.animation.data.GenericAnimationData; +import top.leisuretimedock.animationcore.animation.utils.AnimationUtils; import net.minecraft.client.Minecraft; import net.minecraft.util.Mth; import net.minecraft.world.entity.Entity; diff --git a/src/main/java/com/linearpast/sccore/mixin/animation/client/MixinHumanoidModel.java b/src/main/java/top/leisuretimedock/animationcore/mixin/animation/client/MixinHumanoidModel.java similarity index 89% rename from src/main/java/com/linearpast/sccore/mixin/animation/client/MixinHumanoidModel.java rename to src/main/java/top/leisuretimedock/animationcore/mixin/animation/client/MixinHumanoidModel.java index fb65e84..f4f9ef1 100644 --- a/src/main/java/com/linearpast/sccore/mixin/animation/client/MixinHumanoidModel.java +++ b/src/main/java/top/leisuretimedock/animationcore/mixin/animation/client/MixinHumanoidModel.java @@ -1,7 +1,7 @@ -package com.linearpast.sccore.mixin.animation.client; +package top.leisuretimedock.animationcore.mixin.animation.client; -import com.linearpast.sccore.animation.data.GenericAnimationData; -import com.linearpast.sccore.animation.utils.AnimationUtils; +import top.leisuretimedock.animationcore.animation.data.GenericAnimationData; +import top.leisuretimedock.animationcore.animation.utils.AnimationUtils; import net.minecraft.client.model.AgeableListModel; import net.minecraft.client.model.ArmedModel; import net.minecraft.client.model.HeadedModel; diff --git a/src/main/java/com/linearpast/sccore/mixin/animation/client/MixinKeyframeAnimationPlayer.java b/src/main/java/top/leisuretimedock/animationcore/mixin/animation/client/MixinKeyframeAnimationPlayer.java similarity index 76% rename from src/main/java/com/linearpast/sccore/mixin/animation/client/MixinKeyframeAnimationPlayer.java rename to src/main/java/top/leisuretimedock/animationcore/mixin/animation/client/MixinKeyframeAnimationPlayer.java index 8e8df05..0c8b964 100644 --- a/src/main/java/com/linearpast/sccore/mixin/animation/client/MixinKeyframeAnimationPlayer.java +++ b/src/main/java/top/leisuretimedock/animationcore/mixin/animation/client/MixinKeyframeAnimationPlayer.java @@ -1,6 +1,6 @@ -package com.linearpast.sccore.mixin.animation.client; +package top.leisuretimedock.animationcore.mixin.animation.client; -import com.linearpast.sccore.animation.mixin.IMixinKeyframeAnimationPlayer; +import top.leisuretimedock.animationcore.animation.mixin.IMixinKeyframeAnimationPlayer; import dev.kosmx.playerAnim.api.layered.KeyframeAnimationPlayer; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; diff --git a/src/main/java/com/linearpast/sccore/mixin/animation/client/MixinPlayerAnimationFactoryHolder.java b/src/main/java/top/leisuretimedock/animationcore/mixin/animation/client/MixinPlayerAnimationFactoryHolder.java similarity index 93% rename from src/main/java/com/linearpast/sccore/mixin/animation/client/MixinPlayerAnimationFactoryHolder.java rename to src/main/java/top/leisuretimedock/animationcore/mixin/animation/client/MixinPlayerAnimationFactoryHolder.java index eb200af..464579d 100644 --- a/src/main/java/com/linearpast/sccore/mixin/animation/client/MixinPlayerAnimationFactoryHolder.java +++ b/src/main/java/top/leisuretimedock/animationcore/mixin/animation/client/MixinPlayerAnimationFactoryHolder.java @@ -1,6 +1,6 @@ -package com.linearpast.sccore.mixin.animation.client; +package top.leisuretimedock.animationcore.mixin.animation.client; -import com.linearpast.sccore.animation.mixin.IMixinPlayerAnimationFactoryHolder; +import top.leisuretimedock.animationcore.animation.mixin.IMixinPlayerAnimationFactoryHolder; import dev.kosmx.playerAnim.api.layered.AnimationStack; import dev.kosmx.playerAnim.api.layered.IAnimation; import dev.kosmx.playerAnim.minecraftApi.PlayerAnimationFactory; diff --git a/src/main/resources/sccore.mixins.json b/src/main/resources/animcore.mixins.json similarity index 66% rename from src/main/resources/sccore.mixins.json rename to src/main/resources/animcore.mixins.json index 79ee70e..ec1f3f4 100644 --- a/src/main/resources/sccore.mixins.json +++ b/src/main/resources/animcore.mixins.json @@ -1,10 +1,11 @@ { "required": true, "minVersion": "0.8", - "package": "com.linearpast.sccore.mixin", - "compatibilityLevel": "JAVA_8", + "package": "top.leisuretimedock.animationcore.mixin", + "compatibilityLevel": "JAVA_17", "refmap": "sccore.refmap.json", - "plugin": "com.linearpast.sccore.mixin.SCCoreMixinPlugin", + "priority": -255, + "plugin": "top.leisuretimedock.animationcore.mixin.AnimCoreMixinPlugin", "mixins": [ "animation.MixinEntity", "animation.client.MixinPlayerAnimationFactoryHolder" diff --git a/src/main/resources/logo.png b/src/main/resources/logo.png index 2ddf3e34a99cd71082c679ad86851a3fc97ae8b6..6030bf0953a50b767d4cd419b40e34d4ae03b4ef 100644 GIT binary patch delta 6092 zcmV;-7c=P4EX^;FBnkm@Qb$4o*~u(_ks%j<7jj8NK~#90eOq~~9o2dN&Y8K(+aF#q ziEC`L*en$dVF@v235fs`_B9~N(k2b5TDAXHs#H}~rB+o`wMArskSGG8P!`n$NCK%+ zmKtcB+Tb_^gK=y>3Nglh&(CkU_s%)}mb1>ibgcXCotZN;=i7eY@B7ZUY{DrPa8vky z;U6G-3j9&o?0{qOw+dI;`~n8FDL?%`a7IUFoO* zn~0r?WT7smzu5L21vd%H=e%$V3RMJuL0iohG+Pa5wc0Q|JOo;6&_#(8wqPm)RaHT! z(}QjozZW~u#ozPu3y^QQuzo*&+n_A3oc{UyGqPWL;cart3vUxm=W0>mcXUe;v@A<# z4-G@R-C{w<#ztYqam!)dDQjW%+TVd=S1gC|@lj|EwV~N)@U2W`QTPrVJvs+}2M-*A z-EZ%MZNGdI_PnzX_U@SqLif9Usv2PBr*h=sAMbv4{<* zoJP@r3oqUP8!tWwp8xSH@bGtk1RuPA5EaqIF;P^@Pw<}Uu^|^eRfzL|95DJdmtWv- zNZ%z|e#z1$aM2|j;ilVvu0@MY;^fidXmv{#H}X(2uo&42__>Tof+|%AbbCx;MQITS z??vI*#ZRx-Lx?Hif=kYWGtW5R42P1kHfcOT{nlRKIu&IsTZ775uama{~kYqd&$C>x{*5mu2#Y{i1O z9GD0~_p_`h4k8Sv;jwY}%Aej0pIEsJ9)0*Zn46vNGhm%J^qo@@a%Gyc>(H0p#Q&9j z4Wr{@aPw_f!?ibF4LyS{kHU-V=HAo86xUfanBEL}0it~u5b-UHj+W49B0?03g%bXP z0+Ornj!vFk@Pkc%C8r8i!qCVlT>quZU=l(1TmSqRrp(2}+9?UjIYYn->pUQ*1^@r% zF@VzB?RQ-d*WG*#3fOYO_opW7jH#5BbmzjLi;~REDHy`NR?ANiJ;56OSm*u>ZYnBW zRD|OUX~96*RPgyt=kr6p@lTI4f5{?L4VpN1M3=Fz4mxGcf(n5 z+nu-I^&{wi`X4X6$BhCf-)afqRXq|-G$5`|N#udhfTs%q&jwDlC{vQ77;H6V z4bwvcwH*H9ukL`a-Su@?Ks?BV2O)PkE`$(B(?-AWe&Fw&c{&2#l`t~CECIZz9YX4= zhhW$9t}c}UxhYw@(Lf~(l>x|jj3q%8(FGJ=0FjCzln1|sClvgg3eVwvY{^QLe}yQ) zXcnV?Yr5#6E8+LQd^tRD?^CWQ$~j9allPJg15}VFFOb%punIP8JP+2Lb_#=&O-fs9 zCDnC16)bj80UaSP6v~w%TBA7SRfg&W%>t9>uywt@4Vy?f0x1BWP&uqH>?U+wg>;&@ zm1g=(us^j*)wlc?1<|2-6a*@cA9 z{|OZah_T^Z#GNj&Tpgd7-~tC!BO^M0WO*VtizxhJx5xVxvp$2g6=N68*=`kVRiU*Y zxZv`jcI3x@gYy7libSC~-J!J$Be+mm<&vXJkP0k|9-)~tRa_Gkls>vxL?KDK{Hk-| zp$C74xKsrK6iHD8{W9*5<(&?0mpK`Zm=QVqb;Vg>*PLVCCoCjxW~%tlmAN;ytm)59?( zdcx-}I~$(-;ma^HGcSc!&9l8SYH2Vh#qFUsR(b2N;%iHF2NJMkNv606c)dz;d6yM} zAXu5GXB~l+gf2?S@j5vU-s7x)3mfp|fObG)*t1Fs4`v5Ial!XCh-J$3QsE0ML7T{6j$gZqQBwjBTno!G+EZLx0zE7H zqy+L3vJ@ddqqY*Eg%OgAvz*TDt-}--bXI0T9H9|96&l$hks-?%A%28^$Bko^M5Ks5 z5@s#(N%euCf+J(Ir)=_xE| zpJqxtp<$tgb2#~w>}_XIT+ zIAndXBC)r!A;K3$-W;!Q(Hq?JIc1{Tm*VoJw$id=`Yc#PfJ?d7u+j`0ij+;dT()!q zOZEx);Jw2*wgT68$vhz;LXrM>fhU(vLaW^t>`n3?rz?J-Oa|P4ylJuxw0slORg(mF z!c*_F&^60P))j=894!Zx_k=QSc&R|QDGQL|tFAWyUWK*9aNBtW9w?ib#l}Z)4kdb-(wk%ZizTpnEd z?J@Yd6ltl+B7jVuM=?m)z=e_q*Mieo3QV!C^jb+-pbv(B9+C*drpX(M1a1lyV4bz3 zWhHJ%=d^QonmAjp-Y9a`?)73jP`mMU?+E8nL0IodTcmQuS69j+!T|zdjh@i*)u@3$ z>V$0RftjGJcT2tSOfyjd^zk}NSTK(ww%2F@S7Z$0#>6pcwy9sQav_OA6PYP>pQG?h zjN|ZBH7e(SF;p4P&x z2xe{g$Dr$RUC;%tV~z6+EPk$cWEU@rs2rbR7|wloSjqE^QhEu#yX*_BvJq1? z;SP0@8RPtfKqZSlNeK9-rdZ%=E|@uT6qb)H8#HZyxk5{!;z*l3--tmRH2_oONw%&8 zZ$M)r7Nnao-Xj4kKE=u=0f`qj|uD4+_J`aQRDfs487jP%X z#UZ<`fq=$EO)%yD5Mk+b@@eI1Kz0{80+=LxWgHK{`!`#b!-4L>BvJvBFG`1$EojkX zey$_sd3Z{V3ad;bd5-+m>$~8T)7QhsON`Wi07jS>-JJ6-NWD%e$W+Otkc2>eOJcy+ z29yqUGA|EObWd7GSnNoyXN7vt(sEsa+NB->I7}!U@uF1m-qaza!E<7mM0h_1Dvj3*W&>QCFzLjZk5TZ5-K9I^qDiCwW5Bf&AE%=#|4HtfY7RDxy zW6+^KzHfUI`V$N5E(-clXz)rjq1QMvwVhP3VY;SQJ=&tvF08*M^HWwE|g9+Ufl$E}VaY|zx;8we9w7U2wBk)3p zbq!V5W}_MO@ZvXj?uGx^u@8Su5Y}Xe>i3dP-!0%h|QG>uYw*XsTc^%F=`wUpI zapE$ zt!QiK4dMmOrU*{%Pb)+sw&+fevUB76kBD0T{ja^Ldf2k9`BD2#7gbx{e24o<`U z_dbp&I}2A_b0IfR2@~24Sq^Krr3+)pLm&!I{X^>Jknog$-$S-A(oXkHL(dA8$5Ka@ zr~>rD6Z@kD)1UwJ4S49m7hsNsuU9rYkt0(Bj7yv z&CRfT*FL!C&u@TBnDxgU26!1*Q+rvrLU*M2REp4qY=OgY!1Lm*Pl_@}fq(x)2e4RrjY15U*Z@)DKU%lh+ z;ScV)625rt2DDTQ^@d@g3R%kX!c$*A=>td)F;{>ulHALsycR$m=SFFm==|u3t?<}G zFSFH&jEOhJx5M&C_tjUF$cA6C`L&v0edW|22c|;TzvCXg2l(xO*$glL#~X0#otMI= z&N`KU-|)~>KWJIiLl_0suhw|()P>i#?u92GeHDKB+PfTL;L;ck z_9-o8vH9%0?fd5*%9HvH(o`{6_*9qvjZh0aw(o)a{_zP|@rkAIg-z$d8E3A?v^jSHl|pM@o>c=yQc3~b%8A6|Wb@lE*X;4Ez4y06yRg&=%BzX9`B@p-A7 zp(mI|c&dbWL;ASY$RK|HK)wQfoT{*?{Rg=i+5FfG%p1-+cO9%+eJm_nJ^`(vA!c{{ z`Wr~uZ7>fWonM4QA037Ldk(5m?zyt~7Ymf^CnL0b)jmGo z&5!QI%(dxQOSfia*|Q1ROOhpzDEr8NLY6zd+na1^X^_NU>GBVK7d){vnB--q)CLhh z))_)n|1$%$9ogMU6#Hi)yD#pobP#HKeF;sS|F#D zdumk-E7$OvwNHmJW9mlm<;INtL2~@In!*5}Pl2g|@;T+1ipNv^Y2*cKlb9-hOg7%f zdVV7qlD#Gu?c1N`yf;Xyu4Yhxao~5rpaBjKNcb^zRha0k-HiJ;!4dnfFs^P7PdH*9 z!Tmejo=(2Ks4)%a%C9Fl+N0NBS~P9}_lASa3Y>?;*{8tm30GJf?2ls|l$Tdh{Cf=l zVDW0^ak6c!6&lJB`6KqJn(~T&M2RBkgt`+vNtv2to#ckrn=#78)d%!=(xHC|F)ce67C9jPOUrXVm^Hp zYEpd_a!iWxdkn^WDxBCxAsDN6s(663zOjiszFd~ESvi~mVlrLMbi4uxP6;LC;o@J* z@S87Ddm!-80`Zi{D$?~iaK}^IOI?)bCeKS!aCRaMd5qy>%7a~+x$0Z+fWfir8CTSH z>GrEcjQX|d#|zjuWQFC51xP3CugQYUi`MskS#nJPHGYvMda&)kUwVBC=>G?^{L!#B SzI-hJ0000tB$3LsP_de&|J9B3;naPBNVP--y zNr=V!C143?2^6A8h>&PNC{eWZ53tHAWBH3!{%RqL2qJ*aC-`)*(|cs$ zMGS~w#2^BQiPxxt#`C=@qM$l{##G?pTd9nAD;bTiRO(de;It6C6iJzinJ?Cry`(`X z3S{8~E4CMOR?nzse-*RYoXyP*j4>GNP*s8tc<*VNj<)qQ%Z9e;*xz3;-p0b_@58(H z%F4=F9e+L&zq>5F7KgI%T4;K#7U@3^u#AE_=a_G7GM~@b+}z;c!2=w>{1|7hJI%?{ z&*rk@$JpLJz-(hqT~#0uywWrc7ccJd!b+Y7x4`%*Ok zW+cbhebV_Npo1c%=6a>LNCiY?<<`&an{i;)7&f=IICOZMD^Fa>HD{j73t#*^PMo}w ztpf*e)*;qnj0H^tm4K)sCc#`uE&@iBopU>U`HnmJ?ce~!7E<%GJf#YFXOVyk7J#~Us8AgYphJMZ>og4 zt~qr05ZB*uEjPa7EnI!(49?XA1QCm>iSW|`hWTz1e-Jv1@t~x09jazHE`iDhYO4fV z{_*o)|Abd|NgKkWMu;wp|FyObY({cE`C zmbbEX@Gz=23XbW84go>{&`5rLL{yA;jC6paY6$93ECU`RLWB-63fghu{4O8BKYfp^jkR2M+n8Pk4VKAANkW3*f57%OKlARl@z$Gu5@aJr# zexPjwT^DG(K-VhH3dY2jwTh7tpQRFo9l2$)U~&yBf~za8d)_II9688cU%ij6^CLlr z@ec|ZzZ(RJ2pB`WWPw#O5nyw3lUv{Wc5ZyZ+5x;mxn-oj-dMs+)9Sz3>o2E4F`FwUPDHyFoApG$_Fjim57tbLkv0w5`%KO4n%wLQpgWLa(qq@Uf~@l-Wkj znKM^%_g(k%J^-N@e2N%ap}}(O@?-qk zZ@i27#(ae0o)5Gnb<^W}gn)ISF8_VOi++HcZ@r0Uoj5&;)!E!ZqtHzgUu_d;+NcB# zigkjkEY2FL%Jgnvj9{x|01bGJe@OA3=rTk%F$SzL(PapOHFM=BfulzbV4U!^|NP%x z)Nu|lj%x8JgV zv176CSu6uxmx>jQ;mjI~7y}`aoiPTJtHJ=CCq|D}=~|D54hV<_pi8*4fB0Ys-lFRG zsheKI6;~cjb}>mg<8Y`22b5XEND*aJIC}I_Uim{W2Wr6fXDiW4%cbYyevI`^)8V^7 z>jR-vTCX&1L`2)fP#AolzUA^AL9m9%7lm>=4^0mm|@PYF|U14Z%LB?TC~x3nH! z{o3bq{P>YkLnOKipko8~E>Nb!Sx8q^Y#%zrD_-?7kZKg}LWo4Qe_VK$ZATXr?*seG zz}~{MT!xhX#yhHNWOfaJkLj)WlnO^hSOd-pbtP0r5F3-8C}i}o%nWrwHmvDoH6`T7)u1q|XIyst7^j|lI$1vnui!hSX*_KkP_J}e zSu6v~MTp@n#qzAKf^p;JwlX zC1{8Gj;4udIeOUArMp(Q%5U6OnR!y zP}h;nT(W3vnePl3Ja0rNEy?_-kF$RSYT`mNr3xWnkyb>@NQM6KKmEoG} zp2LCdO?G$ohuUIdXfs5|sg}SR%jVWbp`bKaRW#%Ze=X(#stRIoMwrbE&I*+STM4d` z9?E8Y=G@;qA|bklwNN{unhA9+R0hPx(fBSVOI;W6OK6%{L$p3}Q~-`%dWa*J9>Q8n ztT6L7kf9rP4E^CO@Zn1jGn>zoj}}cZllpcR#OKk25uvJux;E4<3hgSWDzIi^c^R(D z!ix-Oe~^p>S2nyPDJVt(?-k!>1AsQLIZvoi#nlzt+grHG#YC#`{rq@0>=-(#8S4kO zwx}xCVgW z`-?GcR(w!IgvAmzQbWlagLM{bEklJkc6SF%e|8Qg>bjO$?P&b4&j?_Ix=JZq06$lP zL}{uVy3#9KkO}ldAoU06335<DZ`g)(RS9vnr{}LtnxhW!fa_t=)B*Q&MCo>#M>w zf6(Y|p^djvpNg+GhS07HbU`s*nWcMc$U!!`ridB(3#9_aWzWC_ir_ns?|iSbG7T04 zYYo*5LWpPxAq?k~(PnzRjD_?u1;CjVprAx+iX;L|h;ah@`w>a1^xY&e^e~F4^H2u> zu`tr1{xCXv+|WqMe!tvbu7s^Dgf&FAf3FRdlQ{aIDLh8_QV8{o0U-4OR0peN1!*Ww zQvt73E@p-%6;C#WURMpF+F9tjR40T?EU7RmxWJT|AW9P`am@jN?7`6{uHfE8?t&2!lELz&ue-nZh z$xt3e41=a52W2Q2Vuwc9d3rY$Fl$Clgro-T;UAK~A!TZP^pvq4v-SGhm8NIBUqei_ z7fWTih`qx_tG&xuE0D58Lv#;SSnRhn%NC!~^RWq1Z)gC#j1FhbKYI4@UJ6x;mRHQi zn$E|u2nR|U)2VD1Tyf1X>On+R=x35$JL>}%=^K)a0EuUrvPi1!o`e5YL4 z-D7{R!Fw&AOgWEeWTcUCzWm=`|6jiSz$38%kp#>o@ZO?hvDdL!dX{bI8=m=gy$ejY zLc_T>h^?{Vm}t&0VX=s>*fCB$1|Nyjdk~{B)S47dQ{shs9zFXsyE}V*e`{@=3P;4d zvIrVVMoB^_Pkiqw7JGZt^O~*`_V+uQWk?|r9vx0U!uiLRD5L=XM~;edwl1C$GLc6KSh#qarFCQTVP?f0j*Pf6ueGAK2fI zrEiXxN+MJj+22_K0uOxadpz>c6Esan>E6@U-zW^`q2<$6p;#z_x%O~ zJ5OKap07Q?laKGFe`IK^@{$RPw)h~t_MZ(Qz=IE*<&H0W1#1KIxuvdcKf7y9Og*4<@ewdAEZSPd0wDbza-2_Jg@VK2bw_J#K@EVzj865Q8lS*jN`CI=|aah?|q1G z-19IO&o5GLF?r>Kj6ZN+nL8xUZ62N)tl?6~aiTx7Xuc>as7VK$qkiOunOh~O&2 zd>%{Um@3Caf5oP$@P3}JbOaf~UeiVL3m!so5*59*<*+uA=X?&cN|?8*LV2#{f`fsY7hNV5rcFE0wn!6h3IBDS)plK&OY)O2exKhbL|PNvHffg zXe@;2Axg91H)t-w&S9Q$vVv|*Iw&kDy z?k+y_$ve1kp;;sRYKA+coXG{&FF+htTPe2pe;FSF&9de0JMU+6!*R{ESK=hF^okXj z*TU9Tj1;Dd(9f37362l3n)6;G8d6U$S4%l7l-yZLF}`w8=l2?{@%-CAe4USd=wG?8 zvmmT2_bL}f74I?_*1Cj%vTZX)!W0>T56ZG>xch7O^VoME=Y=o3ngg4L0~^9@BTr+; zfAvB+Z9jZ*@(gQ`~Qe+te$y~FSR&gZ!2&WG5$u%MeHJN>kH-cwBM z3^FE!Z17s0=41mRrtn$G-O>YLHgml9{Xfo|-})+?n}OL(3#d%&$Pfsj#dlHS+{(&@ zQK^8;0T^&5cAP60Py(O-tFQ3skN-P6=k{qDpL!MRxGP(G_&!eZdIY>qOY8T9f7hQ_ z3cZSgax+G_;rXYz`Q1Op3tw_QDl=5;WRXA!T}+Ytj4&xsi^d5Wo2kTU^STanZOi|B z{UJX4sW0)>FMk{DSCd6eiPDqZm<67B>?;Zw!9HnjJvpvJ%TOeV2v?ps%JFAi%8$P3 zl|27N*K)~`gQ&)aLF^m2IN7RMe*xN)WR%P!!1)WieB+)+_|om)li+q~rEXE<^4GL9ZQ z#B5^&XH8rlLoB;P=efAQrGS8rn?Lx>gONc`zqM;%a8 zSU#WOR+5F@SEiO8v_4kGe>0m%)pZIhuNkxX2(F`%W*5*x!K;mBO+VquXj0MQ z2O*Q5U^34{I125X{>=RMync4{z-_q+fL;BIV&BdE=Ux3||M{TYf{YRqSht#UHK$*V zSX1{MDI*zF$(%sXAw^?)0B<=}HVrK$?VZ=pa!_uhw3H;_56V0Ge|_im&)Ak**ws(4 zEkD~o>AZe|ZFv`&+=lo3#339{!`nK~F1H8{p){|SSEMif+~DB3c^i5qc{*td=Yw)1 z=k+uF72ERD{qYjYhvb%Ge;Oc$L-Ot(RlEAp{yvA~Jpi23Kjg5yk8}DV01nG9^e%c% zKiHptiTrX}#*?2ce?xLLd2-*ZNiw;SXY~gLUKpjp6Mhh2Ti)J>pk4hG+wzWHLHRWd zVtj4hcJ!l3=y+^LKf)pT`J{voMZpoy=^t=d-p@JxAcy6b`n#Uf4{%t1rMN#m%(K6b zelAn^hAS@;l|qyK>4PvSWaT3&N#ARJWj2M}`13P`tf?1Af2-&756k=eyPVVCquk2K zF~~C+Q$dD#bHgLc#mD2JOof98l=I=!9F(8#$!NR{mfq2ib4YGo*?+FL{8Skee_i2# z1pCo*WpZ6<^<=Oj;grk~Tf9lfsqdJ9$FID4U_imHeyV@q!1ltfexlfaYd@47{aC+$ z4EqoF`wz?ee;6SDi?A}L2>WuoM1HlO`!C&Yyh=R%?Oh$@0B6P(fqbXdT~mb?_Z~(v6>``QL$a1rp=mCYuW-{WaGfWX$QW`w8Tniv zUq?zTtG?2e#<6>N#;|E|jZE%Qwz*4X_J)*9cBNvbL|feFRv|wOvW)FxjjqP!X?nc+ zGxn(xWFpA=d_&iAOM34~Z8#DO%GLXo*OwUiKR7&hQTZY0umAu607*qoM6N<$f|C*n A!2kdN diff --git a/src/main/resources/pack.mcmeta b/src/main/resources/pack.mcmeta index 8e5eb33..a7f10ab 100644 --- a/src/main/resources/pack.mcmeta +++ b/src/main/resources/pack.mcmeta @@ -1,6 +1,6 @@ { "pack": { - "description": "SnowyCrescentCore resources", + "description": "AnimationCore resources", "pack_format": 15 } }