Files
MinecraftForge/src/main/java/net/minecraftforge/gametest/GameTestNamespace.java
T
LexManos 0f3b8ee830 Add DeferredRegistryData to help with generating data driven registry entries.
Revive GameTest system and make all but one Forge Test mod pass.
2025-03-27 20:52:35 -07:00

29 lines
1.0 KiB
Java

/*
* Copyright (c) Forge Development LLC and contributors
* SPDX-License-Identifier: LGPL-2.1-only
*/
package net.minecraftforge.gametest;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Marks a class as containing game tests that should be registered automatically.
* All methods annotated with {@link GameTest} or {@link GameTestGenerator} will be registered.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface GameTestNamespace {
/**
* The default namespace for all tests in this class that do not manually specify one.
* It it recommended that this is your modid, but if you have multiple test mods that
* you want to group together you can use this to do so.
* <p>
* This will default to your modid if it is on the same class that is annotated with {@link net.minecraftforge.fml.common.Mod @Mod}
*/
String value() default "";
}