Slot constructor
The Slot object gives you certain utils to manipulate Inventories and Containers with the Item, Replaceitem or Data.
Every Slot has a String(slot) like inventory.10
used in replaceitem and an id like 19
that is used with nbt data.
objD should change between these values automatically for the specific usecase.
Implementation
const Slot({this.slot, this.id});