public override int GetHashCode() { var hashCode = -596621668; hashCode = hashCode * -1521134295 + base.GetHashCode(); hashCode = hashCode * -1521134295 + IsEmpty.GetHashCode(); hashCode = hashCode * -1521134295 + BlockId.GetHashCode(); hashCode = hashCode * -1521134295 + ItemCount.GetHashCode(); hashCode = hashCode * -1521134295 + ItemDamage.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <NbtFile> .Default.GetHashCode(NBT); return(hashCode); }
public void SetDamage( float min, float max, Resistances res ) { itemDamages[ (int)res ] = new ItemDamage( min, max ); }