Vanilla Expansion

IItemStack 类和 IEntity 类提供了扩展方法

这意味着 IItemStack 类实例和 IEntity 类实例可以使用这些方法

Import

你完全没必要导包, 除非你想用类名调用扩展类方法

IItemStack Expansion

import mods.randomtweaker.thaumcraft.IItemStack;

IEntity Expansion

import mods.randomtweaker.thaumcraft.IEntity;

Static ZenMethod

IItemStack ZenMethod

方法名
返回值类型
方法描述

getAspects()

string[]

获取一个物品所具有的源质名称

IEntity ZenMethod

方法名
返回值类型
方法描述

getAspects()

string[]

获取一个实体所具有的源质名称

Example

Last updated