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-04-04 02:32:34 +00:00
|
|
|
package com.thebrokenrail.reliccraft.mixin;
|
|
|
|
|
2020-06-28 16:38:49 +00:00
|
|
|
import net.minecraft.advancement.criterion.Criteria;
|
2020-04-04 02:32:34 +00:00
|
|
|
import net.minecraft.advancement.criterion.Criterion;
|
|
|
|
import org.spongepowered.asm.mixin.Mixin;
|
|
|
|
import org.spongepowered.asm.mixin.gen.Invoker;
|
|
|
|
|
2020-06-28 16:38:49 +00:00
|
|
|
@Mixin(Criteria.class)
|
2020-04-04 02:32:34 +00:00
|
|
|
public interface CriteriaRegistryHook {
|
|
|
|
@Invoker("register")
|
|
|
|
static <T extends Criterion<?>> T callRegister(T criterion) {
|
|
|
|
return criterion;
|
|
|
|
}
|
|
|
|
}
|