MCItemEntity

导入相关包

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.

import crafttweaker.api.entity.MCItemEntity;

Extending MCEntity

MCItemEntity extends MCEntity. That means all methods available in MCEntity are also available in MCItemEntity

Constructor #构造函数

new MCItemEntity(world as MCWorld, x as double, y as double, z as double, stack as ItemStack) as MCItemEntity
参数类型描述
worldMCWorldNo description provided
xdoubleNo description provided
ydoubleNo description provided
zdoubleNo description provided
stack物品应用No description provided

参数

名称类型可获得可设置
itemIItemStacktruetrue