Sets a slot using a string, creating the Item object from the holder's world's items.
See the superclass's opIndexAssign documentation for more informations about this function.
player.inventory[1] = Items.APPLE; assert(player.inventory[1] == Slot(new Items.Apple());
See Implementation
Sets a slot using a string, creating the Item object from the holder's world's items.
See the superclass's opIndexAssign documentation for more informations about this function.