Attunement Recipe Complete Event
当配方完成时被触发
此事件实现了 IEventCancelable, 意味着 IEventCancelable 类可用方法在此事件中一样有效, 故可被取消, 取消后配方不输出物品
这个事件实现了 IEntityEvent, 所以 IEntityEvent 事件的可用 Getter 此事件也可使用
Import
import mods.randomtweaker.astralsorcery.AttunementRecipeCompleteEvent;ZenGetter
input
IItemStack
返回在共鸣祭坛上触发配方的物品
output
IItemStack
返回配方输出的物品
world
IWorld
返回共鸣祭坛所在的世界
constellation
string
返回共鸣的星座
entity (此为 IEntityEvent 的 Getter)
IEntity
返回与共鸣祭坛共鸣的实体
itemEntity
IEntityItem
返回与共鸣祭坛共鸣的物品实体
ZenSetter
output
IItemStack
设置配方输出的物品
ZenMethod
getInput()
IItemStack
与 input Getter 一致
getOutput()
IItemStack
与 output Getter 一致
setOutput(output as IItemStack)
void
与 output Setter 一致
getWorld()
IWorld
与 world Getter 一致
getItemEntity()
IEntityItem
与 itemEntity Getter 一致
getConstellation()
string
与 constellation Getter 一致
getAdditionalOutput()
List<IItemStack> (可当 [IItemStack] 处理)
获取额外输出的物品
addAdditionalOutput(additionalOutput as IItemStack)
void
添加额外输出的物品
Example
Last updated