MCItemEntity

Importing the class

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.entity.MCItemEntity;

Extending MCEntity

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

Constructors

ZenScript
Copy
new MCItemEntity(world as MCWorld, x as double, y as double, z as double, stack as ItemStack) as MCItemEntity
ParameterTypeDescription
worldMCWorldNessuna descrizione fornita
xdoubleNessuna descrizione fornita
ydoubleNessuna descrizione fornita
zdoubleNessuna descrizione fornita
stackItemStackNessuna descrizione fornita

Properties

NameTypeHa GetterHa Setter
itemIItemStacktruetrue