IndexOf(ObjectTag)

Returns the index of the given tag. If the given tag does not exist in the collection, returns -1.

Declaration Syntax

public int IndexOf(ObjectTag tag)

Parameters

tag(ObjectTag)

The item to get the index of.