mirror of
https://github.com/architectury/architectury-api.git
synced 2026-04-02 13:37:43 -05:00
Adds CriteriaTriggersRegistry
This commit is contained in:
@@ -27,7 +27,7 @@ import net.minecraft.world.item.ItemStack;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
public final class CreativeTabs {
|
||||
public CreativeTabs() {}
|
||||
private CreativeTabs() {}
|
||||
|
||||
// I am sorry, fabric wants a resource location instead of the translation key for whatever reason
|
||||
@ExpectPlatform
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
package me.shedaniel.architectury.registry;
|
||||
|
||||
import me.shedaniel.architectury.ExpectPlatform;
|
||||
import net.minecraft.advancements.CriterionTrigger;
|
||||
|
||||
public final class CriteriaTriggersRegistry {
|
||||
private CriteriaTriggersRegistry() {}
|
||||
|
||||
/**
|
||||
* Invokes {@link net.minecraft.advancements.CriteriaTriggers#register(CriterionTrigger)}.
|
||||
*
|
||||
* @param trigger The trigger to register
|
||||
* @param <T> The type of trigger
|
||||
* @return The trigger registered
|
||||
*/
|
||||
@ExpectPlatform
|
||||
public static <T extends CriterionTrigger<?>> T register(T trigger) {
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user