All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.groovymc.gml.GMod.groovy Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
/*
 * Copyright (c) Matyrobbrt
 * SPDX-License-Identifier: MIT
 */

package org.groovymc.gml

import groovy.transform.CompileStatic
import org.codehaus.groovy.transform.GroovyASTTransformationClass

import java.lang.annotation.Documented
import java.lang.annotation.ElementType
import java.lang.annotation.Retention
import java.lang.annotation.RetentionPolicy
import java.lang.annotation.Target

/**
 * This annotation defines a GML mod. 
* Any class found with this annotation applied will be loaded as a Mod. The instance that is loaded will represent the mod to other Mods in the system.
* It will be sent various subclasses of {@link net.minecraftforge.fml.event.lifecycle.ModLifecycleEvent} at pre-defined times during the loading of the game. */ @Documented @CompileStatic @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @GroovyASTTransformationClass(value = 'org.groovymc.gml.transform.gmods.ModIdentificationTransformer') @interface GMod { /** * The unique mod identifier for this mod. * Required to be lowercased in the english locale for compatibility. Will be truncated to 64 characters long. * * This will be used to identify your mod for third parties (other mods), it will be used to identify your mod for registries such as block and item registries. * By default, you will have a resource domain that matches the modid. All these uses require that constraints are imposed on the format of the modid. */ String value() }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy