tryPick

final Item tryPick(GameEntity pickerEntity, ItemEntity itemEntity)

Tries to pick itemEntity as an Item.

If itemEntity is not ready to be picked, does nothing and returns null. Otherwise, converts itemEntity into an Item and then kills it using CreationEngine.

Return

The picked Item if it was actually picked, otherwise null.

Parameters

pickerEntity

The GameEntity that is trying to pick the item.

itemEntity

The ItemEntity being picked.