-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
e3c613a
commit 6ce5b12
Showing
7 changed files
with
109 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../java/com/sammy/malum/common/item/curiosities/curios/sets/soulward/CurioMagebaneBelt.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
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
19 changes: 19 additions & 0 deletions
19
src/main/java/com/sammy/malum/mixin/HolderSetNamedMixin.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,19 @@ | ||
package com.sammy.malum.mixin; | ||
|
||
import com.sammy.malum.MalumMod; | ||
import net.minecraft.core.HolderOwner; | ||
import net.minecraft.core.HolderSet; | ||
import net.minecraft.tags.TagKey; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@Mixin(HolderSet.Named.class) | ||
public class HolderSetNamedMixin { | ||
|
||
@Inject(method = "<init>", at = @At("TAIL")) | ||
private void innfsdjh(HolderOwner owner, TagKey key, CallbackInfo ci) { | ||
MalumMod.innfsdjh(owner, key); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/com/sammy/malum/mixin/MappedRegistryMixin.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,28 @@ | ||
package com.sammy.malum.mixin; | ||
|
||
import com.sammy.malum.MalumMod; | ||
import net.minecraft.core.Holder; | ||
import net.minecraft.core.HolderSet; | ||
import net.minecraft.core.MappedRegistry; | ||
import net.minecraft.tags.TagKey; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
@Mixin(MappedRegistry.class) | ||
public class MappedRegistryMixin { | ||
|
||
@Inject(method = "bindTags", at = @At("HEAD")) | ||
private void gsdg(Map<TagKey<?>, List<Holder<?>>> tagMap, CallbackInfo ci) { | ||
|
||
} | ||
@Inject(method = "createTag", at = @At("HEAD")) | ||
private void gsdgdd(TagKey<?> key, CallbackInfoReturnable<HolderSet.Named<?>> cir) { | ||
MalumMod.innfddddsdjh(key); | ||
} | ||
} |
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,21 @@ | ||
package com.sammy.malum.mixin; | ||
|
||
import com.sammy.malum.MalumMod; | ||
import net.minecraft.core.Registry; | ||
import net.minecraft.resources.ResourceKey; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.tags.TagKey; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; | ||
|
||
@Mixin(TagKey.class) | ||
public class TagKeyMixin { | ||
@Inject(method = "create", at = @At("RETURN")) | ||
private static void aaa(ResourceKey<? extends Registry<?>> registry, ResourceLocation location, CallbackInfoReturnable<TagKey<?>> cir) { | ||
TagKey<?> returnValue = cir.getReturnValue(); | ||
MalumMod.aahhhh(registry, location, returnValue); | ||
} | ||
|
||
} |
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