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.
Extending Entity
ItemEntity extends Entity. That means all methods available in Entity are also available in ItemEntity
Constructors
Parameter | Type | Description |
---|---|---|
Parameter level | Type invalid | Description No description provided |
Parameter x | Type double | Description No description provided |
Parameter y | Type double | Description No description provided |
Parameter z | Type double | Description No description provided |
Parameter stack | Type ItemStack | Description No description provided |
Methods
Gets the IItemStack inside this ItemEntity.
Returns: The IItemStack inside this ItemEntity.
Return Type: IItemStack
Return Type: boolean
Return Type: void
Sets the IItemStack inside this ItemEntity.
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter stack | Type IItemStack | Description The new IItemStack. |
Return Type: void
Return Type: void
Return Type: void
Parameter | Type | Description |
---|---|---|
Parameter ticks | Type int | Description No Description Provided |
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name hasPickupDelay | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |
Name item | Type IItemStack | Has Getter true | Has Setter true | Description Gets the IItemStack inside this ItemEntity. |