This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
2020-03-18 00:42:02 +00:00
|
|
|
package com.thebrokenrail.sorcerycraft.mixin;
|
|
|
|
|
2020-04-03 15:45:44 +00:00
|
|
|
import net.minecraft.advancement.criterion.Criteria;
|
2020-03-18 00:42:02 +00:00
|
|
|
import net.minecraft.advancement.criterion.Criterion;
|
|
|
|
import org.spongepowered.asm.mixin.Mixin;
|
|
|
|
import org.spongepowered.asm.mixin.gen.Invoker;
|
|
|
|
|
2020-04-03 15:45:44 +00:00
|
|
|
@Mixin(Criteria.class)
|
|
|
|
public interface CriteriaRegistryHook {
|
2020-03-18 00:42:02 +00:00
|
|
|
@Invoker("register")
|
|
|
|
static <T extends Criterion<?>> T callRegister(T criterion) {
|
|
|
|
return criterion;
|
|
|
|
}
|
|
|
|
}
|