blob: 19395f11a0755d003f6f4508898e760d04fba74a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package gregtech.api.recipe.metadata;
import javax.annotation.Nullable;
import javax.annotation.ParametersAreNonnullByDefault;
import gregtech.api.recipe.RecipeMetadataKey;
import gregtech.api.util.MethodsReturnNonnullByDefault;
import gregtech.nei.RecipeDisplayInfo;
/**
* Simple metadata key that does not draw anything on NEI.
*/
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
public class SimpleRecipeMetadataKey<T> extends RecipeMetadataKey<T> {
private SimpleRecipeMetadataKey(Class<T> clazz, String identifier) {
super(clazz, identifier);
}
public static <T> RecipeMetadataKey<T> create(Class<T> clazz, String identifier) {
return new SimpleRecipeMetadataKey<>(clazz, identifier);
}
@Override
public void drawInfo(RecipeDisplayInfo recipeInfo, @Nullable Object value) {}
}
|