MCTagWithAmount<T : Object>
Link to mctagwithamountt--object
导入类
Link to 导入类
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport crafttweaker.api.tag.MCTagWithAmount;
已实现的接口
Link to 已实现的接口
MCTagWithAmount implements the following interfaces. That means all methods defined in these interfaces are also available in MCTagWithAmount
使用方式
Link to 使用方式
Name: getAmount
Return Type: int
ZenScript Copy// MCTagWithAmount.getAmount() as int
myMCTagWithAmount.getAmount();
Name: getTag
Return Type: MCTag<T>
ZenScript Copy// MCTagWithAmount.getTag() as MCTag<T>
myMCTagWithAmount.getTag();
Name: setAmount
Return Type: MCTagWithAmount<T>
ZenScript CopyMCTagWithAmount.setAmount(amount as int) as MCTagWithAmount<T>
参数 | 类型 | 描述 |
---|---|---|
参数 amount | 类型 int | 描述 No Description Provided |
名称 | 类型 | 可获得 | 可设置 | 描述 |
---|---|---|---|---|
名称 amount | 类型 int | 可获得 true | 可设置 true | 描述 No Description Provided |
名称 tag #标签 | 类型 MCTag<T> | 可获得 true | 可设置 false | 描述 No Description Provided |