跳到主要内容

GameRuleReg

请勿使用

使用给定的 ID 注册此游戏规则。

@UnusedYet
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface GameRuleReg {
/**
* The name of game rule
*
* @return {@link String }
*/
String name() default "";

/**
* The type of game rule
*
* @return {@link GameRules.Category }
*/
GameRules.Category category();

/**
* Whether to use the mod id as prefix
* @return boolean
*/
boolean modIdPrefix() default true;
}