CraftTweaker

CraftTweaker

151M Downloads

Docs generator puts chained optional arguments on the same line

Hubry opened this issue ยท 0 comments

commented

Issue Description:

If you have a method with two or more @ZenCodeType.Optional (or the specialized optional versions) arguments, the table generated by the annotation processor puts the info for these arguments on a single line.

Input method:

	/**
	 * Example
	 * @param test Test
	 * @param test2 test2
	 * @param test3 test3
	 */
	@ZenCodeType.Method
	public void test(@ZenCodeType.Optional IItemStack test, @ZenCodeType.Optional IItemStack test2, @ZenCodeType.Optional IItemStack test3) {
	}

What happens:

| Parameter | Type | Description | Optional | DefaultValue |
|-----------|------|-------------|----------|--------------|
| test | [IItemStack](/vanilla/api/items/IItemStack) | Test | true |  || test2 | [IItemStack](/vanilla/api/items/IItemStack) | test2 | true |  || test3 | [IItemStack](/vanilla/api/items/IItemStack) | test3 | true |  |

What you expected to happen:

| Parameter | Type | Description | Optional | DefaultValue |
|-----------|------|-------------|----------|--------------|
| test | [IItemStack](/vanilla/api/items/IItemStack) | Test | true |  |
| test2 | [IItemStack](/vanilla/api/items/IItemStack) | test2 | true |  |
| test3 | [IItemStack](/vanilla/api/items/IItemStack) | test3 | true |  |

Script used: n/a

crafttweaker.log file: n/a


Environment:

  • Minecraft Version: 1.16.5
  • Forge Version: 36.0.46
  • CraftTweaker Version: 7.1.0.291 (current latest)
  • Are you using a server: n/a (annotation processor issue)

Game log: n/a (annotation processor issue, compiler log has no info)