-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dad4c9e
commit 75a4b23
Showing
2 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
src/main/java/tv/alterNERD/VaultModTweaks/integration/mixin/MixinPlayerExpertisesData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* Copyright 2023 alterNERDtive. | ||
* | ||
* This file is part of Vault Mod Tweaks. | ||
* | ||
* Vault Mod Tweaks is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Vault Mod Tweaks 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 General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with Vault Mod Tweaks. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
package tv.alterNERD.VaultModTweaks.integration.mixin; | ||
|
||
import java.util.UUID; | ||
|
||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Overwrite; | ||
import org.spongepowered.asm.mixin.Shadow; | ||
import iskallia.vault.skill.tree.ExpertiseTree; | ||
import iskallia.vault.world.data.PlayerExpertisesData; | ||
import net.minecraft.world.entity.player.Player; | ||
|
||
@Mixin(PlayerExpertisesData.class) | ||
public abstract class MixinPlayerExpertisesData { | ||
@Overwrite(remap=false) | ||
ExpertiseTree getExpertises(Player player) { | ||
// SkillContext.of(player) | ||
// something something LearnableSkill.learn(context) auf den Expertise skill für jeweler | ||
return this.getExpertises(player.getUUID()); | ||
} | ||
|
||
@Shadow(remap=false) | ||
ExpertiseTree getExpertises(UUID uuid) { | ||
return null; | ||
} | ||
} |