@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface ModComponent
Block or Item.
and this class will be registered into Minecraft when game start.
This is equivalent with
GameRegistry.registerBlock(Block, String)
GameRegistry.registerItem(Item, String)
| 限定符和类型 | 可选元素和说明 |
|---|---|
java.lang.String |
name |