public MLItem GetItem(IVariable raw) { string name = raw.GetValue(); this.isEnded = raw.isEnd(); if (isVanilla) { return(new VItem(name)); } MLItem item = new MLItem(ModContent.Find <ModItem>(this.Value.Name, name)); item.isEnded = this.isEnded; return(item); }
public void Add(MLItem item) { Value.Add(item); }
public MLRemove(MLItem item) { Value = item; }
public MLRemove() { Value = null; }
public MLRecipe(MLItem item) { this.Value = item; }