MCTagWithAmount<T : Object>

Link to mctagwithamountt--object

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
Copy
import crafttweaker.api.tag.MCTagWithAmount;

已实现的接口

Link to 已实现的接口

MCTagWithAmount implements the following interfaces. That means all methods defined in these interfaces are also available in MCTagWithAmount

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
Copy
MCTagWithAmount.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