ItemEntity
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.
import crafttweaker.api.entity.type.item.ItemEntity;Extending Entity
ItemEntity extends Entity. That means all methods available in Entity are also available in ItemEntity
Constructors
new ItemEntity(level as invalid, x as double, y as double, z as double, stack as ItemStack) as ItemEntity| Parameter | Type | Description | 
|---|---|---|
| Parameterlevel | Typeinvalid | DescriptionNo description provided | 
| Parameterx | Typedouble | DescriptionNo description provided | 
| Parametery | Typedouble | DescriptionNo description provided | 
| Parameterz | Typedouble | DescriptionNo description provided | 
| Parameterstack | TypeItemStack | DescriptionNo description provided | 
Methods
Gets the IItemStack inside this ItemEntity.
Returns: The IItemStack inside this ItemEntity.
Return Type: IItemStack
// ItemEntity.getItem() as IItemStack
myItemEntity.getItem();Return Type: boolean
// ItemEntity.hasPickUpDelay() as boolean
myItemEntity.hasPickUpDelay();Return Type: void
// ItemEntity.setDefaultPickUpDelay() as void
myItemEntity.setDefaultPickUpDelay();Sets the IItemStack inside this ItemEntity.
Return Type: void
// ItemEntity.setItem(stack as IItemStack) as void
myItemEntity.setItem(<item:minecraft:diamond>);| Parameter | Type | Description | 
|---|---|---|
| Parameterstack | TypeIItemStack | DescriptionThe new IItemStack. | 
Return Type: void
// ItemEntity.setNeverPickUp() as void
myItemEntity.setNeverPickUp();Return Type: void
// ItemEntity.setNoPickUpDelay() as void
myItemEntity.setNoPickUpDelay();Return Type: void
ItemEntity.setPickUpDelay(ticks as int) as void| Parameter | Type | Description | 
|---|---|---|
| Parameterticks | Typeint | DescriptionNo Description Provided | 
Properties
| Name | Type | Has Getter | Has Setter | Description | 
|---|---|---|---|---|
| NamehasPickupDelay | Typeboolean | Has Gettertrue | Has Setterfalse | DescriptionNo Description Provided | 
| Nameitem | TypeIItemStack | Has Gettertrue | Has Settertrue | DescriptionGets the IItemStack inside this ItemEntity. |