批注接口 GameTestHolder


@Retention(RUNTIME) @Target(TYPE) public @interface GameTestHolder
Marks a class as containing game tests that should be registered automatically. All methods annotated with GameTest or GameTestGenerator will be registered.
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    Used as the default namespace to use for templates for any game tests in the class.
    The default batch for all tests in this class that do not manually specify one.
  • 元素详细资料

    • value

      String value
      The default batch for all tests in this class that do not manually specify one. It it recommended that this includes your mod id.
      This is also used when filtering out which batches to run during automation. the filters will be tested against the prefix of the batch name. So it is recommended to be structured in a logical fashion.
       Examples:
       forge.tags.items
       forge.tags.blocks
       forge.global_loot_modifiers.block_drops
       forge.global_loot_modifiers.tool_filter
       
      The filter 'forge.global_loot_modifiers' would execute both the block_drops and tool_filter batches.

      This will default to your modid if it is on the same class that is annotated with @Mod

      默认值:
      ""
    • namespace

      String namespace
      Used as the default namespace to use for templates for any game tests in the class. Defaults to the modid if in a class with @Mod or else defaults to "minecraft"
      默认值:
      ""